Failing to retrieve documents because vector store is empty when storage context is loaded. #10963
Replies: 1 comment
-
🤖 Hey @rahulkrprajapati! Great to see you back here. Hope everything else is going smooth for you! 😊 Based on the information you've provided, it seems like you're encountering an issue with retrieving nodes due to an empty vector store. This could be due to a few reasons:
To resolve this issue, ensure that the storage context contains the correct indices, the persist_dir is correct, and the index_id is specified correctly when there are multiple indices. You can refer to the source code for more details. Additionally, there was a similar issue reported in the LlamaIndex repository: [Question]: Nodes from PineconeVectorStore is empty. . The suggested solution was to use the vector store API directly or set a high top-k and retrieve all the nodes stored. Here's the suggested code snippet: retriever = index.as_retriever(similarity_top_k=10000)
source_nodes = retriever.retrieve("fake")
nodes = [x.node for x in source_nodes] Please try these solutions and let me know if you still encounter any issues. Sources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Failing to retrieve documents because vector store is empty when storage context is loaded.
when setting this up an loading the data like after I close my app:
and the retrival is defined as:
this outputs empty retrieved nodes because I think that the vector store is empty.
Beta Was this translation helpful? Give feedback.
All reactions