Find answers from the community

Updated 3 months ago

Redis store

Hi, I'm trying to use RedisVectorStore and already have the data ingested in. i can load the vector_store and when i print it it shows "<llama_index.vector_stores.redis.RedisVectorStore object at 0x7fb706476a10>". problem is that i cannot load the index back in chat app. code:
storage_context = StorageContext.from_defaults(vector_store=vector_store)
index = load_index_from_storage(storage_context=storage_context, service_context=service_context)
error: ValueError: No index in storage context, check if you specified the right persist_dir.
L
1 comment
You should be able to connect to an existing vector store like this

GPTVectorStoreIndex([], storage_context=storage_context)

Assuming you setup the storage context to point to your existing vector store. No need to call persist or load
Add a reply
Sign up and join the conversation on Discord