LightRAG/lightrag
clssck d2c9e6e2ec test(lightrag): add orphan connection feature with quality validation tests
Implement automatic orphan entity connection system that identifies entities with
no relationships and creates meaningful connections via vector similarity + LLM
validation. This improves knowledge graph connectivity and retrieval quality.
Changes:
- Add orphan connection configuration parameters (thresholds, cross-connect settings)
- Implement aconnect_orphan_entities() method with 4-step validation pipeline
- Add SQL templates for efficient orphan and candidate entity queries
- Create POST /graph/orphans/connect API endpoint with configurable parameters
- Add orphan connection validation prompt for LLM-based relationship verification
- Include relationship density requirement in extraction prompts to prevent orphans
- Update docker-compose.test.yml with optimized extraction parameters
- Add quality validation test suite (run_quality_tests.py) for retrieval evaluation
- Add unit test framework (test_orphan_connection_quality.py) with test cases
- Enable auto-run of orphan connection after document processing
2025-11-28 18:23:30 +01:00
..
api test(lightrag): add orphan connection feature with quality validation tests 2025-11-28 18:23:30 +01:00
entity_resolution feat: add automatic entity resolution with 3-layer matching 2025-11-27 15:35:02 +01:00
evaluation Update LLM cache migration docs and improve UX prompts 2025-11-08 23:48:19 +08:00
kg test(lightrag): add orphan connection feature with quality validation tests 2025-11-28 18:23:30 +01:00
llm fix:exception handling order error 2025-11-25 16:36:41 +08:00
tools Refactor main function to provide sync CLI entry point 2025-11-21 13:11:55 +08:00
__init__.py Bump core version to 1.4.9.9 and API to 0252 2025-11-08 11:27:26 +08:00
base.py Remove unused chunk-based node/edge retrieval methods 2025-11-06 18:17:10 +08:00
constants.py Refactor entity merging with unified attribute merge function 2025-10-27 00:04:17 +08:00
exceptions.py Fix ChunkTokenLimitExceededError message formatting 2025-11-19 18:50:45 +08:00
lightrag.py test(lightrag): add orphan connection feature with quality validation tests 2025-11-28 18:23:30 +01:00
namespace.py Add entity/relation chunk tracking with configurable source ID limits 2025-10-20 15:24:15 +08:00
operate.py feat: add automatic entity resolution with 3-layer matching 2025-11-27 15:35:02 +01:00
prompt.py test(lightrag): add orphan connection feature with quality validation tests 2025-11-28 18:23:30 +01:00
rerank.py fix: Resolve default rerank config problem when env var missing 2025-08-23 01:07:59 +08:00
types.py
utils.py Fix double decoration in azure_openai_embed and document decorator usage 2025-11-21 18:03:53 +08:00
utils_graph.py Improve entity merge logging by removing redundant message and fixing typo 2025-10-31 17:16:59 +08:00