ValueError: doc_id <id> not found while using KnowledgeGraphIndex #12256
-
Hi, I have a I am using local Neo4j and Redis Stack installations. With that said, this is what I am doing.
Database connection issues are not there as I can clearly see databases being populated and updated. All goes well when I try to use the knowledge graph index built in step 2 above. However, my problem appears on the step 3 below.
I can confirm every time from Redis that the specific ❓😕 Why is the document not found when it clearly exists? I must be missing something trivial. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @anirbanbasu, great to see you diving deep into the world of LlamaIndex again! How's the coding journey treating you this time? Based on the information you've provided, it seems like you've followed the correct steps to set up and use the
To diagnose and resolve the issue, you may need to verify the index prefix and document IDs, check the Redis logs and the output of the Redis Search module for any errors or warnings, ensure that the Redis instance has the Search module installed and that it's accessible from the application, and consider adding more logging around the index creation, document addition, and querying processes to capture any potential issues. You can refer to the RedisVectorStore implementation for more details. As for the
You can refer to the test cases for more details on how this function works. I hope this helps! If you have any more questions or need further clarification, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
-
I solved the problem. There is no |
Beta Was this translation helpful? Give feedback.
I solved the problem. There is no
storage_context.document_store
butstorage_context.docstore
! 😮 I wonder how the documents were getting stored in Redis.