- Implement custom metadata insertion as node properties during file upload.
- Add basic metadata filtering functionality to query API
--NOTE: While the base.py file has been modified, the base implementation is incomplete and untested. Only Neo4j database has been properly implemented and tested.
WIP: Query API is temporarily mocked for debugging. Full implementation with complex AND/OR filtering capabilities is in development.
# Conflicts:
# lightrag/base.py
# lightrag/lightrag.py
# lightrag/operate.py
• Add include_references param to QueryRequest
• Extend QueryResponse with references field
• Create unified QueryResult data structures
• Refactor kg_query and naive_query functions
• Update streaming to send references first
The top_k parameter already has a default value set in the QueryParam class (base.py), making these checks unnecessary. This change simplifies the code while maintaining the same functionality.
Changes:
Remove top_k check in query_text function
Remove top_k check in query_text_stream function