Find answers from the community

Home
Members
xehnida
x
xehnida
Offline, last seen 3 months ago
Joined September 25, 2024
i'm trying to integrate with AstraDB. i have executed generate.py and can observe the embeddings in the AstraDB.

when i try to load the storagecontext as index, it throws an error. going thru the LlamaIndex AstraDB documentation didnt mention anything about index.
Plain Text
    astra_db_store = AstraDBVectorStore(....)
    storage_context = StorageContext.from_defaults(vector_store=astra_db_store)
    index = load_index_from_storage(storage_context)
    index.as_chat_engine(chat_mode=ChatMode.CONDENSE_PLUS_CONTEXT)
    .....


Plain Text
File "...lib/python3.11/site-packages/llama_index/core/indices/loading.py", line 36, in load_index_from_storage
    raise ValueError(
ValueError: No index in storage context, check if you specified the right persist_dir.


am i missing something?
8 comments
x
W