Skip to content
Ylabator

GraphRAG: Provenance, Entities and Authority

Similarity search finds passages, not relationships. A graph with typed, dated, sourced edges and an ACL check on every hop can answer who signs today and show which document says so.

Topics
Secure AI Agents
Level
Founder / builder
Read
4 min
Published
2026-11-12
Reviewed
2026-11-12
Post-launch queue

The problem

On February 13, 2024, Microsoft Research introduced GraphRAG with a plain admission: baseline retrieval-augmented generation struggles to connect the dots when an answer depends on pieces spread across many documents [1]. The original RAG paper from 2020 had already named provenance, showing where an answer came from, as an open problem for large language models [2]. Longer context windows did not close the gap. Liu et al. found that models use information at the start and end of a long input far better than information in the middle [3].

For most chat use this is a quality issue. For questions about authority it is a liability. An illustrative case: an investment team asks who currently signs for a fund entity. The answer sits in an operating agreement in one folder and an amendment that replaced a resigned manager in another. The amendment never uses the words "authorized signatory", so similarity search ranks it low. The model answers from the operating agreement and names a person who lost signing authority last spring.

Two further problems hide in the same question. The amendment may live in a folder the analyst cannot open, so the system must not use it on that analyst's behalf. And the old answer was true once, so it should survive as history rather than vanish. Vector search has no concept of either.

How it works

A knowledge graph stores three things a pile of text leaves implicit: identity, typed relationships and evidence.

  • Entities. One record per person, fund, LLC or trust, however the name is spelled across documents. Entity resolution merges "J. Ortiz" and "Julia Ortiz" before anything else happens.
  • Typed edges. signs_for, owned_by, committed_to. Each edge carries a source document ID, a valid_from and an optional valid_until date, a derivation label and a confidence.
  • Derivation ranking. A declared field in a structured system ranks above an exact text match, which ranks above a similarity guess, which ranks above a model extraction. The answer reports which kind of link it relied on.
  • ACL check on every traversal. Each edge inherits the access list of its source document. Edges from sources the user cannot read, or from revoked sources, are filtered before the model sees anything.

The question becomes a walk. Start at the fund entity, follow signs_for edges where today falls inside the validity window and the source passes the ACL check, and return the signatory with the amendment as evidence. The superseded edge from the operating agreement stays in the graph with its valid_until date. It appears as history if someone asks, and never as the current answer.

There are two broad ways to build the graph. Microsoft's GraphRAG has a model extract entities and relationships, then summarizes clusters of them, which suits global questions such as the themes across a corpus [4][5]. The alternative builds edges on arrival from structured fields and exact matches, and uses model extraction only as a labeled last resort. That suits authority questions. Either way, retrieval must enforce access at query time, as Microsoft's own RAG guidance states for document-level security [6]. A graph makes evidence navigable. It does not make it correct, and extracted facts still need a reviewer.

Typed edges carry their evidence

Fig. 18
Fund entity
signs_for · currentSource: amendment · valid from · confidence
signs_for · supersededSource: operating agreement · valid until
Signatory B
Signatory A
ACL check on every traversalEdges from revoked sources are filtered
Each relationship records its source, validity period and derivation. Traversal enforces ACLs, and superseded edges remain visible as history rather than as answers.
Technical detail

Seed conflicting signatories and revoked source access. The system should surface the conflict and filter unauthorized edges. Extracted facts still require verification.

By the numbers

GraphRAG's win rate on answer comprehensiveness over vector RAG, podcast dataset [4]
72 to 83%
fewer context tokens for root-level graph summaries than for source-text summarization [4]
97%
podcast corpus that produced a graph of 8,564 nodes and 20,691 edges [4]
~1M tokens
GraphRAG's diversity win rate on the news dataset, its weakest reported result [4]
62 to 71%
PropertyVector RAGModel-extracted GraphRAGDeclared-edge graph
Identity across spellingsNoneModel-merged entitiesResolved before indexing
Typed relationshipsImplicit in textExtracted by a modelStored from fields and matches
Validity datesNoneOnly if extractedStored on every edge
Provenance per factPassage citationLinks back to source textSource ID and derivation on every edge
Main costEmbeddingsIndexing with many model callsIntegration and identity work
Three retrieval designs compared on authority questions, using results and guidance from Edge et al. and the GraphRAG project [4][5]

Edge et al. tested GraphRAG on corpora of about 1 million and 1.7 million tokens and reported comprehensiveness win rates of 72 to 83% on podcasts and 72 to 80% on news [4]. Those are global sensemaking questions judged by a model, not authority questions. The GraphRAG repository itself warns that indexing "can be an expensive operation" and recommends starting small [5]. Read the numbers as evidence that structure helps multi-document reasoning, and budget for the indexing bill.

Implementation

A relational database is enough to start. The schema below stores edges with source, validity and derivation, and the query enforces the ACL inside the traversal rather than after it.

authority_graph.sqlsql
CREATE TABLE entity (
  id        uuid PRIMARY KEY,
  kind      text NOT NULL CHECK (kind IN ('person','fund','llc','trust')),
  name      text NOT NULL
);

CREATE TABLE source_doc (
  id        uuid PRIMARY KEY,
  title     text NOT NULL,
  sha256    text NOT NULL,
  revoked   boolean NOT NULL DEFAULT false
);

CREATE TABLE source_acl (            -- copied from the document system
  doc_id    uuid REFERENCES source_doc(id),
  principal text NOT NULL,
  PRIMARY KEY (doc_id, principal)
);

CREATE TABLE edge (
  src         uuid REFERENCES entity(id),
  rel         text NOT NULL,         -- signs_for, owned_by, committed_to
  dst         uuid REFERENCES entity(id),
  doc_id      uuid REFERENCES source_doc(id),
  valid_from  date NOT NULL,
  valid_until date,                  -- NULL means still in force
  derivation  text NOT NULL CHECK (derivation IN ('declared','exact','similar','extracted')),
  confidence  real NOT NULL
);

-- Current signatories for a fund, visible to one principal, with evidence.
SELECT p.name, d.title, d.sha256, e.derivation, e.valid_from
FROM edge e
JOIN entity p      ON p.id = e.src
JOIN source_doc d  ON d.id = e.doc_id AND NOT d.revoked
JOIN source_acl a  ON a.doc_id = d.id AND a.principal = :principal
WHERE e.rel = 'signs_for' AND e.dst = :fund_id
  AND e.valid_from <= current_date
  AND (e.valid_until IS NULL OR e.valid_until > current_date)
ORDER BY array_position(ARRAY['declared','exact','similar','extracted'], e.derivation);

The model receives the rows, not the documents, and drafts the answer with the document title and hash as the citation. If two current edges disagree, the application returns both and marks a conflict instead of letting the model pick one. Recursive walks, such as fund to LLC to trust to trustee, use WITH RECURSIVE over the same filtered edge set.

Test it

Seed a small graph with a known answer, a superseded signer, a conflict and a revoked source. Then assert what each principal may see.

test_authority_graph.pypython
import datetime as dt

def current_signers(db, fund_id, principal):
    return db.query_current_signers(fund_id=fund_id, principal=principal)  # wraps the SQL above

def test_superseded_signer_is_history_not_answer(db, seed):
    names = {r.name for r in current_signers(db, seed.fund, "analyst@firm")}
    assert names == {"Signatory B"}                 # amendment replaced A
    history = db.edges(seed.fund, rel="signs_for", include_expired=True)
    assert any(e.valid_until == dt.date(2026, 4, 30) for e in history)

def test_revoked_source_is_filtered(db, seed):
    db.revoke(seed.amendment_doc)
    assert current_signers(db, seed.fund, "analyst@firm") == []   # no stale fallback to A

def test_acl_applies_per_edge(db, seed):
    assert current_signers(db, seed.fund, "intern@firm") == []    # cannot read amendment

def test_conflict_is_surfaced(db, seed):
    db.add_edge(seed.signatory_c, "signs_for", seed.fund, doc=seed.board_minutes,
                valid_from=dt.date(2026, 5, 1), derivation="extracted", confidence=0.6)
    rows = current_signers(db, seed.fund, "analyst@firm")
    assert {r.name for r in rows} == {"Signatory B", "Signatory C"}
    assert db.answer(seed.fund, "analyst@firm").status == "conflict"

Expected result: all four pass on the seeded data. The checklist for release:

  • A revoked source removes its edges from answers within one sync cycle, with no fallback to an older edge.
  • Every answer lists the document title, hash and derivation for each edge it used.
  • Extracted edges are labeled as extracted in the answer and queued for review.
  • Conflicting current edges produce a conflict status, never a single confident name.

Decision

Use a graph when questions are about relationships and authority: who signs, who owns, who committed what, as of which date. Keep plain vector RAG for questions that one passage can answer.

  • Start with declared edges from systems you already trust (entity registers, cap tables, signed agreements) before paying for model extraction.
  • Budget for identity resolution and ACL sync. They are most of the work and most of the value.
  • Use model-extracted GraphRAG for corpus-wide themes, and label its edges as extracted.
  • Ask any vendor to show the source, validity window and ACL check for one edge in a live answer.

The cost is integration work up front. The payoff is an answer a reviewer can check in seconds.

Sources

  1. [1]GraphRAG: Unlocking LLM discovery on narrative private data (opens in a new tab)Microsoft Research, February 2024
  2. [2]Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (opens in a new tab)Lewis et al., arXiv, May 2020
  3. [3]Lost in the Middle: How Language Models Use Long Contexts (opens in a new tab)Liu et al., arXiv, July 2023
  4. [4]From Local to Global: A Graph RAG Approach to Query-Focused Summarization (opens in a new tab)Edge et al., arXiv, April 2024
  5. [5]GraphRAG (opens in a new tab)Microsoft, November 2026
  6. [6]Retrieval augmented generation (RAG) and indexes in Microsoft Foundry (opens in a new tab)Microsoft Learn, October 2026

Technical guidance, not security certification or legal advice.

All Private AI articles