Find answers from the community

Updated 2 years ago

Persisting indexes

At a glance
@jerryjliu0 It seems like INDEX_STRUCT_TYPE_TO_INDEX_STRUCT_CLASS is missing a couple IndexStructType such as Chroma, Opensearch and Qdrant. We can save the indices with these types of index_struct, but not load them back after persisting them. Is this expected?
L
C
r
3 comments
These indexes actually don't need to be persisted as far as I know, everything should be stored in the vector store

If you setup the vector store and storage context to point to the vector store you used when inserting documents, you should be able to reconnect like this

index = GPTVectorStoreIndex([], storage_context=storage_context)
Thank you for the answer
Thank you Logan!
Add a reply
Sign up and join the conversation on Discord