arXiv:2610.37237cs.AIOct 2026

Manuscript Offprint

arXiv:2610.37237

GraphRAGProv: GraphRAG Meets How-Provenance

Wadie El Amrani, Luis Galárraga

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Wadie El Amrani

Independent

Toulouse, France

elamrani@wadie.fr

Luis Galárraga

INRIA

Rennes, France

luis.galarraga@inria.fr

(a) Source-grounded RDF statement occurrences (symbolic chunks)

Figure

(b) Query execution and provenance

q: What is the nationality of the director of Kafr Kasem?

Q: SELECT ?nationality WHERE {

:KafrKasem :director ?director .

?director :nationality ?nationality .

}

μ\mu (?nationality) = :Lebanese

Pμ=id1⊗id2P_{\mu} = \text{id}_1 \otimes \text{id}_2

Figure 1: (a) Source-grounded RDF statement occurrences constructed from text. (b) SPARQL question answering and provenance tracing from answer bindings to RDF occurrences and exact source text evidence.

Abstract

GraphRAG systems often use knowledge graphs to retrieve relevant context for an LLM that produces the final answer. That makes answers more inscrutable and therefore less appealing for domains where transparency is paramount. We present GRAPHRAGPROV, an architecture that executes SPARQL queries over source-grounded RDF graphs to compute answers and their how-provenance polynomials. These polynomials record which statement occurrences were used and how they were combined. Because each occurrence is linked to its source text, users can follow these links to check whether the extracted statements reflect the text and whether the query combines them to answer the question. Querying thereby becomes a way to inspect and evaluate the text-to-graph transformation. Our interactive demo examines 400 cases from two multi-hop QA benchmarks, revealing extraction and query errors even when the final answer is correct.

1 Introduction

GraphRAG uses graph structure to connect information across a corpus of text. Microsoft GraphRAG builds entity relation graphs and community summaries, while HippoRAG builds an OpenIE graph and uses Personalized PageRank for retrieval [3, 6]. In many such architectures, the graph determines what evidence reaches an LLM, but the LLM still produces the final answer. A retrieved path or subgraph may therefore show what evidence was available to the LLM without specifying how the returned value was computed. This is limiting in critical settings such as medical diagnosis or computational justice, where the computation leading to an answer may itself need to be verified.

One approach is to produce the answer by querying the graph itself. This requires representing facts from the text documents as explicit statements in a data graph, such as subject-predicate-object triples in RDF. A question can then be translated into SPARQL and evaluated by a graph database engine, so that the query result is the final answer [7, 10]. While this approach is well established when a knowledge graph already exists [4, 7], applying it to document collections requires constructing the graph from text first, as in Neo4j's LLM Graph Builder [9] and KAG [8]. KAG reports answering questions from retrieved subgraphs in 33%, 34%, and 18% of cases on HotpotQA, 2WikiMultiHopQA, and MuSiQue, respectively, and supplements graph reasoning with text retrieval when it yields no results. GRAPHRAGPROV instead uses an LLM to translate questions into SPARQL, with the returned bindings constituting the answers and no text retrieval or LLM generation as a fallback. To make these computations inspectable, we augment query evaluation with database how-provenance [5], which identifies the contributing statements and records how they were combined. The database computes both the answers and their derivations, without requiring an LLM to interpret retrieved context. Each returned binding is annotated with a polynomial over statement identifiers:

El Amrani and Galárraga

(a) Graph construction

Figure

(b) Query generation and execution

Figure 2: GraphRAGProv architecture. An LLM extracts semantic statements and their textual evidence. The localizer resolves evidence to exact source spans for RDF-star materialization. An LLM generates SPARQL, which NPCs rewrites to compute answer bindings and how-provenance.

multiplication records joint use, while addition records alternative derivations. NPCs [2] computes these annotations by query rewriting over reified RDF statements.

A derivation identifies the statements used to compute an answer, but does not establish whether those statements are supported by the source text. GRAPHRAGPROV makes this interpretation inspectable by preserving each extraction as a statement occurrence linked to its source passage and evidence spans. The extractor supplies quotations for the subject, predicate, and object; a deterministic localizer resolves them to exact character spans, and RDF-star reification preserves the occurrence identifier and its source links. NPCs [2] uses these identifiers in provenance polynomials, so following a factor recovers both the assertion used in the computation and the original text against which that assertion can be checked.

Together, query execution, how-provenance, and textual grounding provide a way to inspect and evaluate the text-to-graph transformation. The extractor may misread a passage, entity identifiers may be inconsistent, or the generated SPARQL may fail to capture the question. This explicit chain allows users to examine whether the contributing statements reflect the source text and whether the query combines them as intended.

The present demonstration lets users move across this complete chain: question → SPARQL → answer binding → provenance polynomial → RDF occurrence → exact source spans and modify either the question or the SPARQL query to observe how the answer and its derivation change. We examine the availability and diagnostic value of this trace on 400 cases from 2WikiMultiHopQA and MuSiQue.