Find answers from the community

Updated 3 months ago

Load weaviate

I'm persisting to Weaviate using WeaviateVectorStore, and it seems to store all the text as well as the embeddings in the database. Is there a way to load everything from Weaviate for searching? Right now I'm able to load the vector_store from Weaviate but it's also saving docstore/index_store to disk. So it's using a mix of Weaviate and persist dir for storage:
Plain Text
vector_store = WeaviateVectorStore(weaviate_client=client, class_prefix=class_prefix)
storage_context = StorageContext.from_defaults(vector_store=vector_store, persist_dir='./storage/index')
index = load_index_from_storage(storage_context)

I haven't found a way for it to work without the persist_dir.
L
C
2 comments
Can you setup the vector store/storage context (without the persist dir) and then do this?

index = GPTVectorStoreIndex([], storage_context=storage_context)
It worked, thank you!
Add a reply
Sign up and join the conversation on Discord