mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-13 07:12:11 +02:00
Enhance retrieval pipelines: 4-stage GraphRAG, DocRAG grounding, consistent PROV-O GraphRAG: - Split retrieval into 4 prompt stages: extract-concepts, kg-edge-scoring, kg-edge-reasoning, kg-synthesis (was single-stage) - Add concept extraction (grounding) for per-concept embedding - Filter main query to default graph, ignoring provenance/explainability edges - Add source document edges to knowledge graph DocumentRAG: - Add grounding step with concept extraction, matching GraphRAG's pattern: Question → Grounding → Exploration → Synthesis - Per-concept embedding and chunk retrieval with deduplication Cross-pipeline: - Make PROV-O derivation links consistent: wasGeneratedBy for first entity from Activity, wasDerivedFrom for entity-to-entity chains - Update CLIs (tg-invoke-agent, tg-invoke-graph-rag, tg-invoke-document-rag) for new explainability structure - Fix all affected unit and integration tests |
||
|---|---|---|
| .. | ||
| agent | ||
| chunking | ||
| config/service | ||
| cores | ||
| decoding | ||
| direct | ||
| embeddings | ||
| external | ||
| extract | ||
| gateway | ||
| librarian | ||
| metering | ||
| model | ||
| processing | ||
| prompt | ||
| query | ||
| retrieval | ||
| rev_gateway | ||
| storage | ||
| tables | ||
| template | ||
| tool_service | ||
| __init__.py | ||