LightRAG/lightrag/api/routers
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
..
__init__.py split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
document_routes.py feat: add automatic entity resolution with 3-layer matching 2025-11-27 15:35:02 +01:00
graph_routes.py test(lightrag): add orphan connection feature with quality validation tests 2025-11-28 18:23:30 +01:00
ollama_api.py Add comprehensive error logging across API routes 2025-11-19 22:50:06 +08:00
query_routes.py Add comprehensive error logging across API routes 2025-11-19 22:50:06 +08:00
table_routes.py chore(lightrag, lightrag_webui): improve code quality and security 2025-11-27 21:39:42 +01:00