Resources / Technical evidence

RAG Citation Checks: Supported, Mis-cited and Missing Evidence

Thompson Axiomata · Published December 2, 2026 · Example version 1

Run twelve controlled citation checks across three invented maintenance records, then inspect every verdict and its reason.

Synthetic worked example. Prepared with AI assistance; the reported fixture results were checked by running the supplied code. These are teaching examples, not client outcomes, production benchmarks or independently reviewed accuracy results.

Question and method

Can a checker distinguish a claim supported by its citation from a claim found elsewhere in the supplied records? This example isolates that question with twelve hand-written structured claims and three invented records. No LLM generates answers or judges meaning.

Each claim supplies a subject, predicate, object and record identifiers. The runner checks structure and citation IDs, then exact triple membership. Invalid claims are handled first; supported claims occur in at least one cited record; mis-cited claims occur only in other supplied records; unsupported claims occur nowhere in this fixture.

Observed fixture results

VerdictClaimsExample
Supported4Pump-01 is serviceable, citing inspection-01.
Mis-cited3Pump-02 is offline, but cites inspection-01 instead of maintenance-02.
Unsupported3Pump-04 is at the north site; no supplied record mentions that asset.
Invalid2A missing citation or an unknown record identifier.

All twelve verdicts matched the hand-specified expectations. That is a checker contract result, not a 100% model-accuracy claim. A citation-presence-only check would accept c05 even though its cited document does not contain the claim.

What changes the decision

An invalid citation needs a structure or identifier fix. A mis-citation calls for checking citation assignment. An unsupported claim could reflect missing records or an invented answer; this fixture cannot determine which. Preserve those distinctions in a report rather than collapsing them into one score.

Download and reproduce

Read the README, extract the ZIP, create an isolated Python environment and run the commands below. The ZIP includes inputs, source, expected outputs, an MIT license and a SHA-256 manifest. The runner fails if its fixture expectations change.

python reproduce.py

Inspect all twelve expected verdicts (CSV). This example uses only the Python standard library.

Limits and next evaluation

Exact matching does not recognize paraphrases, reasoning, negation or partial support. A supported verdict means at least one cited record contains the triple; it does not validate every extra citation. Absence from the records is not proof of falsity. There is no claim extraction, held-out dataset, access-control test or expert annotation in this example.

A real assessment needs representative model outputs, an explicit claim-labeling protocol and human calibration. See RAG evaluation and grounding and the earlier grounding demonstration.

Inspect the related evidence

For project-specific evaluation, share a non-sensitive problem summary. We agree the sources, scope and acceptance criteria before handling project records.