mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Provenance triples are now included directly in explain messages from GraphRAG, DocumentRAG, and Agent services, eliminating the need for follow-up knowledge graph queries to retrieve explainability details. Each explain message in the response stream now carries: - explain_id: root URI for this provenance step (unchanged) - explain_graph: named graph where triples are stored (unchanged) - explain_triples: the actual provenance triples for this step (new) Changes across the stack: - Schema: added explain_triples field to GraphRagResponse, DocumentRagResponse, and AgentResponse - Services: all explain message call sites pass triples through (graph_rag, document_rag, agent react, agent orchestrator) - Translators: encode explain_triples via TripleTranslator for gateway wire format - Python SDK: ProvenanceEvent now includes parsed ExplainEntity and raw triples; expanded event_type detection - CLI: invoke_graph_rag, invoke_agent, invoke_document_rag use inline entity when available, fall back to graph query - Tech specs updated Additional explainability test |
||
|---|---|---|
| .. | ||
| test_auth.py | ||
| test_config_receiver.py | ||
| test_dispatch_config.py | ||
| test_dispatch_manager.py | ||
| test_dispatch_mux.py | ||
| test_dispatch_requestor.py | ||
| test_dispatch_sender.py | ||
| test_dispatch_serialize.py | ||
| test_endpoint_constant.py | ||
| test_endpoint_manager.py | ||
| test_endpoint_metrics.py | ||
| test_endpoint_socket.py | ||
| test_endpoint_stream.py | ||
| test_endpoint_variable.py | ||
| test_explain_triples.py | ||
| test_rows_import_dispatcher.py | ||
| test_running.py | ||
| test_service.py | ||
| test_socket_graceful_shutdown.py | ||
| test_streaming_translators.py | ||
| test_text_document_translator.py | ||