Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Index
Index
Inactive
0
Follow
S
SNOWDEN_021
7 months ago
Β·
i am getting list[BaseIndex] i cant make query engin on the loaded index
but i can make query engine on index help please
L
S
9 comments
Share
Open in Discord
L
Logan M
7 months ago
What is the exact error?
S
SNOWDEN_021
7 months ago
i am creating index using VectorStoreIndex.from_documents() and it returns llama_index.core.indices.vector_store.base.VectorStoreIndex
S
SNOWDEN_021
7 months ago
i can create query engine on it using index.as_query_engine()
S
SNOWDEN_021
7 months ago
it works fine
S
SNOWDEN_021
7 months ago
but these index are in memoy and i want to store them in drive so i ams storing them as
index.storage_context.persist('./store')
S
SNOWDEN_021
7 months ago
and now i want to reuse these stored index and create query engine
S
SNOWDEN_021
7 months ago
so i load them using
Storage_context = StorageContext.from_defaults(persist_dir='./store/')
load_index = load_indices_from_storage(Storage_context)
S
SNOWDEN_021
7 months ago
but when i load them using this methode i get List[BaseIndex] on which i cant do as_query_engine()
S
SNOWDEN_021
7 months ago
Problem solved i made a typo insted of using load_index_from_storage i was using load_indices_from_storage
Add a reply
Sign up and join the conversation on Discord
Join on Discord