----------------------
Based on the latest LlamaIndex documentation, the import statements should be updated as follows:
from llama_index.core import (
SimpleDirectoryReader, StorageContext, load_index_from_storage, VectorStoreIndex
)
from llama_index.core import Document
from llama_index.llms.openai import OpenAI
from llama_index.embeddings.openai import OpenAIEmbedding
Please note that
ServiceContext
was deprecated in LlamaIndex v0.10.0, so it should be removed from your code.
As for
FLAREInstructQueryEngine
, it's not mentioned in the provided knowledge sources, so I can't provide the updated import statement for it. You might want to check the latest LlamaIndex documentation for the correct import statement.
Sources:
- Updating to v0.10.0 ()
- CitationQueryEngine Setup ()
- Jaguar Vector Store Imports ()
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------