What Makes an AI Agent's Answer Verifiable
An answer is verifiable when each claim carries a citation that resolves to an addressable span of a source (document, section path, page) and when you measure two separate things automatically: whether citations point to the right document, and whether the claims are actually supported by the cited text. Citation correctness can be checked by code. Claim support needs a judge. Teams that measure only one of the two ship answers that look grounded and are not.
I'm Mahmoud Zalt, an AI solutions architect, and much of what I build and advise on at Sista AI lives at the boundary between retrieval and trust.
The design below is the one we run in Sistava, where AI agents answer from customers' documents with numbered sources. The measurements come from our own evaluation, published in our research report on document answer accuracy. We built the system and wrote the test corpora, so treat them as a builder's numbers.
The lesson that runs through the whole piece: a citation is a pointer, not a proof. In our graded sample, 18 of 20 answers were fully supported, and the two that were not both had correct-looking citations.
Anatomy of a Citation That an Engineer Can Trust
Our answers cite inline, like this: The Team plan is billed per seat on annual terms [1: Pricing 2026, Plans, page 1]. Every part of that string is load-bearing:
| Part | Where it comes from | Why it matters |
|---|---|---|
| Number, inline | Assigned to each passage in the knowledge block | Ties one claim to one source, so verification is per claim |
| Document title | Chunk payload, set at ingestion | A human recognises it; a version or year in the title shows staleness at a glance |
| Section path | The chunk's heading path from structure-aware parsing | Lands the reader on the paragraph, not page one of a manual |
| Page | Page numbers preserved by the parser | Lets someone check the original PDF, scans included |
None of that metadata can be added at answer time. It has to be captured when the document is parsed and chunked: Docling preserves headings, tables and page numbers, and every chunk stores its title, heading path, page and source. If your chunks are anonymous text blobs, your citations will be anonymous too.
Two structural choices keep citations clean. Each retrieved hit is expanded to a window of its parent section, at most 4,000 characters centred on the match, and only one window per section is passed, so the model never sees the same paragraph under two different numbers. And the knowledge block goes after the conversation as a trailing message which keeps the system prompt byte-stable for prompt caching.
Two Metrics, Not One: Citation Correctness and Claim Support
Most teams measure "groundedness" as one number. It is two:
- Citation correctness asks: does source [n] point to the document the golden set says holds the answer? This is countable by code, free and deterministic.
- Claim support (often called faithfulness, after the RAGAS measure) asks: what share of the claims in the answer are actually backed by the passages it was given? This needs a judge model, costs money and is sampled.
And underneath both sits a retrieval metric I would add to any golden set: evidence recall, whether the exact sentence that proves the answer was among the passages handed over. Our golden questions each record the right document, the section and that proving sentence, so code can check it.
| Measure (production models, permissive floor) | Hardware set | Agency set | Scored by |
|---|---|---|---|
| Proving sentence among passages | 97.8% | 99.2% | Code |
| Numbered sources pointing to the right document | 96.3% | 97.7% | Code |
| Claims backed by their sources | 100% (9 answers) | 92.4% (11 answers) | AI judge |
The gap between the second and third rows is the point of this article. On the agency set, citations were right almost every time and claim support was still 92.4%, because two answers each added one detail that their correctly cited passages did not contain. Citation correctness alone would have scored those answers as perfect.
Where Citation Correctness Slips
The per-category breakdown is more useful than the headline. Citation correctness was lowest on questions that need the surrounding section to make sense: 84.6% on the hardware set and 90.9% on the agency set, against near 100% for exact codes, scanned pages and same-meaning paraphrases. Those are the questions where the answer depends on context spread across a section rather than one sentence.
Rank matters too. Tables were always in the top five but ranked first only 59% of the time across both sets, and questions spanning documents 56%. The model reads all eight passages, so the answer is usually still found, but when several look-alike tables sit in context (one quarterly report per client, same layout) the ranking is least sure. Those are the citations I would tell any reviewer to open first.
Designing the Judge
The judge that scores claim support is its own small system with its own failure modes. The rules we follow:
- Separate the judge from the generator. Our grounding judge is GLM 5.3 Flash, a different model from the ones generating answers. A model grading its own family's output shares its blind spots.
- Grade claims, not vibes. The faithfulness measure decomposes an answer into claims and scores the share backed by the provided passages. "Is this answer good, 1 to 5" tells you almost nothing about grounding.
- Keep the reranker and the judge conceptually apart. The reranker scores passages before the answer to decide what the model sees. The judge grades the answer after. Mixing them up leads to people tuning the wrong component.
- Publish the sample size with the score. Our grounding numbers rest on 20 answers. One more failure moves a percentage by several points, and saying so is part of the result.
- Run it online too, sampled and non-blocking. In production we score one in ten real answers that used knowledge, after delivery, for faithfulness, context relevance and answer relevance, and alert when faithfulness drops below 0.8. It is charged to the evaluated workspace and capped platform-wide.
Post-delivery judging finds patterns; it cannot stop one bad answer. For outputs where a single wrong answer is expensive, the alternative is a pre-delivery check: the draft is judged before it is sent, and a below-standard draft gets up to two corrected attempts before the agent asks the user instead. That costs latency and a judge call on every checked output, which is why it is opt-in rather than default. The full layering, offline and live, is in our report on how we evaluate AI employees.
Designing for the Human Who Verifies
Metrics catch patterns. Individual answers get verified by people, and the citation format decides whether that takes ten seconds or ten minutes. What I design for:
- Citations inline, next to the claim, not in a footer list. The reviewer should verify the one claim that matters without reading the whole answer.
- Addressable to the section, so opening the source lands near the proving sentence.
- Permission-safe by construction. Search filters on the caller's scope before ranking, so a citation can never point to a document the reader is not allowed to open. Across every measured run, no passage from another workspace was returned.
- An honest empty state. When no passage clears the relevance floor, the agent says the information is not in its knowledge. An answer with no claims needs no citation, and that is the correct output when the corpus is silent.
- An action trail. Every tool call the agent makes, including any extra knowledge search it runs, lands in an activity log, so a reviewer can see what the agent looked up before it answered.
For the abstention side of that design, including the sweep that picked our floor, see the relevance floor article. For how the passages get retrieved in the first place, see accurate RAG answers with hybrid search and reranking.
A Citation Checklist for Your RAG System
| Check | What good looks like |
|---|---|
| Ingestion metadata | Every chunk stores title, heading path, page and source. No anonymous chunks. |
| Numbering | One number per passage, one passage per section, inline next to each claim. |
| Golden set | Each question records the right document, section and proving sentence, plus questions with no answer. |
| Code-scored metrics | Evidence recall and citation correctness on every eval run, broken down by question type. |
| Judge-scored metric | Claim-level faithfulness from a judge in a different model family, with sample size published. |
| Online monitoring | Sampled post-delivery judging with an alert threshold; optional pre-delivery checks for high-stakes outputs. |
| Permissions | Scope filter inside the search, so citations cannot cross access boundaries. |
Where Citations Fall Short
- A correct citation does not mean a supported claim. 2 of our 20 graded answers had right-looking sources and still added an unsupported detail.
- A citation is only as good as its document. An outdated price list gets cited faithfully. Version and date in document titles help a reviewer catch it; a pipeline cannot.
- Small judged samples. 20 answers is enough to find failure shapes, not enough for tight confidence intervals.
- Our corpora, in English. They resemble real business files, but they are not yours, and other languages are not measured yet.
Frequently Asked Questions
How do I measure whether RAG citations are correct?
Build a golden set where each question records the expected document and the proving sentence. Then code can score whether each numbered source points to the expected document, and whether the proving sentence reached the model, on every run, for free.
What is the difference between citation accuracy and faithfulness?
Citation accuracy checks the pointer: is [n] the right document. Faithfulness checks the content: is each claim in the answer backed by the cited passages. In our tests citations pointed to the right document 96.3% and 97.7% of the time while claim support was 100% and 92.4%.
Should the judge be the same model as the generator?
No. Use a different model, ideally a different family, and have it grade claims against passages rather than give an overall quality score.
Should every answer be judged before it is sent?
Not by default. Sample answers after delivery for monitoring, and enable blocking pre-delivery checks for outputs where one wrong answer is expensive. The second option costs latency and a judge call per output.
Where should citations appear in the answer?
Inline, next to the claim they support, with document title, section path and page. A footer list of sources makes verification per claim much slower.
Three Things to Take Away
One. Capture citation metadata at ingestion. Title, heading path and page cannot be reconstructed at answer time.
Two. Measure citation correctness by code and claim support by judge, separately. One without the other hides exactly the failure you care about.
Three. Treat a citation as a pointer for a human, design it so verification takes seconds, and keep an honest empty state for when there is nothing to cite.
If you want an outside review of how your agent grounds and cites its answers, or help designing the golden set and judge, that is a common shape for an agent development engagement.








