Explainability Guide
Trace GraphRAG answers back to their sources using the Workbench
Beginner
15 min
- TrustGraph deployed (Quick Start)
- Understanding of Core Concepts)
- A document already loaded and processed with Graph RAG (see Graph RAG guide)
Run an explainable GraphRAG query, review the reasoning trace, and trace selected edges back to source documents.
Understand how TrustGraph arrives at its answers
This guide walks through the explainability features using a GraphRAG query as the example. You’ll see how TrustGraph records each stage of the reasoning process and how you can trace facts back to the documents they came from.
New to explainability? Read the Explainability overview first to understand the concepts.
Prerequisites
This guide assumes you’ve already loaded and processed a document using Graph RAG. If you haven’t done that yet, follow the Graph RAG guide first.
What You’ll Learn
- Running a GraphRAG query with explainability enabled
- Reviewing the reasoning trace (question, grounding, exploration, focus, synthesis)
- Understanding why specific edges were selected
- Tracing edges back to source documents
- Browsing past explainability sessions
Step 1: Run an Explainable Query
In the Workbench, navigate to the Graph RAG query page.
Enter a question and enable the Explainability toggle before submitting the query.
The answer will stream as normal, but behind the scenes TrustGraph records the full reasoning trace.
Step 2: View the Reasoning Trace
After the query completes, navigate to the Explainability page in the Workbench.
You’ll see a list of all recorded sessions. Find your query — it will show the question text, type (GraphRAG), and timestamp.
Click on a session to view its full trace.
Step 3: Review the GraphRAG Trace
The trace view shows each stage of the reasoning pipeline:
Question
The original query and when it was submitted.
Grounding
The concepts extracted from your question that were used to seed the graph search. These are the terms TrustGraph used to find entry points into the knowledge graph.
Exploration
The graph traversal results: which entities were found as starting points, and how many edges were explored.
Focus
This is the most important stage. It shows which edges were selected from the explored subgraph, and why each edge was chosen.
The LLM provides reasoning for each selection, explaining why it considered that fact relevant to answering your question.
Synthesis
The final generated answer, along with a reference to the document context that was assembled for the LLM.
Step 4: Trace Back to Source Documents
From the Focus stage, you can trace any selected edge back to its source document. This uses the extraction provenance stored in the urn:graph:source named graph.
Select an edge and choose Show provenance. TrustGraph will show the chain:
Selected edge → Subgraph → Chunk → Page → Source document
This tells you exactly which text in which document produced the fact that TrustGraph used to answer your question.
Step 5: Browse Past Sessions
All explainability traces are persistent. You can return to the Explainability page at any time to review past queries — useful for auditing, debugging, or understanding how the system’s answers relate to the underlying knowledge.
Sessions are listed with their type (GraphRAG, DocRAG, or Agent), the question text, and timestamp.
Summary
In this guide you:
- Ran a GraphRAG query with explainability enabled
- Reviewed the 5-stage reasoning trace
- Examined why specific edges were selected
- Traced a fact back to its source document
- Browsed past explainability sessions
Next Steps
- Explainability using CLI — the same workflow using command-line tools, with more control over output formats
- Explainability overview — deeper understanding of the architecture