You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and this bug is not already filed.
I believe this is a legitimate bug, not just a question or feature request.
Describe the bug
Issue Description
When using LightRAG's mix mode for queries, the following error consistently appears in logs:
ERROR: Error in get_vector_context: 'file_path'
Despite this error, the mix mode continues to function and returns results successfully. The error appears to be non-critical but may indicate an underlying issue in the vector context retrieval process.
Environment
Python version: 3.10
OpenAI API version: 1.72.0
LightRAG version: 1.3.1 (lightrag-hku)
OS: Linux (Pop_OS)
Steps to Reproduce
Initialize LightRAG with OpenAI embeddings and GPT-4o-mini for completions
Add a document using ainsert()
Query using mix mode with aquery() and QueryParam(mode="mix")
Code Sample
importosimportasynciofromlightragimportLightRAG, QueryParamfromlightrag.llm.openaiimportgpt_4o_mini_complete, openai_embedfromlightrag.kg.shared_storageimportinitialize_pipeline_statusasyncdefmain():
# Initializerag=LightRAG(
working_dir="./resources/lightrag_test",
embedding_func=openai_embed,
llm_model_func=gpt_4o_mini_complete
)
awaitrag.initialize_storages()
awaitinitialize_pipeline_status()
# Add documentdoc_id=awaitrag.ainsert("Your test document content here")
# Query with mix moderesult=awaitrag.aquery(
"What is in this document?",
param=QueryParam(mode="mix")
)
# The error occurs during this query but doesn't prevent resultsif__name__=="__main__":
asyncio.run(main())
Debug Information
The error occurs during the retrieval step in mix mode:
Do you need to file an issue?
Describe the bug
Issue Description
When using LightRAG's mix mode for queries, the following error consistently appears in logs:
Despite this error, the mix mode continues to function and returns results successfully. The error appears to be non-critical but may indicate an underlying issue in the vector context retrieval process.
Environment
Steps to Reproduce
ainsert()
aquery()
andQueryParam(mode="mix")
Code Sample
Debug Information
The error occurs during the retrieval step in mix mode:
The error doesn't appear with other modes (naive, local, global, hybrid) - only with mix mode.
Attempted Solutions
I've tried various parameter adjustments with QueryParam, including:
None of these adjustments resolved the issue.
Impact
While the error doesn't seem to prevent getting results from the mix mode, it may:
Additional Notes
Any assistance in resolving this issue would be appreciated. If additional debug information is needed, please let me know.
Steps to reproduce
No response
Expected Behavior
No response
LightRAG Config Used
Paste your config here
Logs and screenshots
No response
Additional Information
The text was updated successfully, but these errors were encountered: