ContentsRAG from Scratch to TRECAdisak Sukul · Iowa State University

Start here

Part 1 · Foundations

Part 2 · Finding the evidence

Part 3 · Writing the answer

Part 4 · Judging RAG

Part 5 · TREC and the 2026 tracks

Part 6 · Case studies: our submissions

Part 7 · Beyond text: video

Part 8 · Streams and advanced RAG

Back matter

Part 4 · Judging RAG · Chapter 19

Support and citation checking

In one sentence: a sentence is supported when the document it cites really says what the sentence claims, and checking this, sentence by sentence, is the second half of judging a RAG answer.

Why you should care

The promise of RAG is that the reader can check the answer. A citation that points to a document that does not back the sentence is worse than no citation, because it looks like proof. Nugget scores (Chapter 18) cannot see this. Support checking can, and it is the measure that tells you whether your system keeps the promise from Chapter 2.

Words you need

Support
The cited document states, or clearly implies, everything the sentence claims.
Full, partial, no support
The three usual verdicts. Partial means the document backs some of the sentence and not all of it.
Citation precision
Of the citations given, the share that support their sentence.
Citation recall
Of the sentences that need a citation, the share that have a supporting one.
Substantive sentence
A sentence that states a fact. “Here is a summary” is not one.
Valid citation
A citation that points to a document the system was really given. It may still fail to support the sentence.
Entailment
The technical word for “this text says that claim”.

Core The idea

The basic check

Take one sentence and one cited document. Read both. Ask: could a careful reader confirm every claim in the sentence from this document alone? The answer is full, partial or no. Everything else in this chapter is about how to count those answers.

Three ways a citation fails

  • It points nowhere. The document identifier is not among the ones supplied. A program can catch this with no model at all.
  • It points to the wrong document. The document is real and on topic, and it does not contain the claim. Often the claim came from a neighbouring document in the prompt.
  • It covers half the sentence. The sentence joins two facts, and the document has one. Long sentences fail this way more often.

Two numbers

Suppose an answer has ten substantive sentences. Eight carry a citation. A checker finds that six of those eight citations support their sentence.

citation precision = supporting citations ÷ citations given = 6 ÷ 8 = 0.75
citation recall = supported sentences ÷ sentences that need support = 6 ÷ 10 = 0.60
The two sentences with no citation cost nothing in precision and score zero in recall.

You need both. A system can reach perfect precision by citing one safe sentence and leaving the rest bare. It can raise recall by adding citations everywhere, good or not. This is the precision and recall trade of Chapter 4 again.

Rules that every track must set

Before any counting, a track has to decide details that change the numbers.

  • Several citations on one sentence. Must each one support the whole sentence, or is one enough? RAGTIME asks that each cited document support all the information in the sentence, and its main measure looks only at the first citation.
  • Partial support. Zero credit, half credit, or full? The support check we borrowed from the TREC 2024 RAG track has three labels, full, partial and no. We scored them 1, 0.5 and 0.
  • Sentences with no citation. In the 2026 RAG guidelines they score zero on citation recall.
  • Text past the length limit. RAGTIME cuts it off before scoring.

Read these rules before you design your system. They decide, for example, whether a second citation on a sentence helps you or puts you at risk.

Watch and read

We have not found a short video on citation checking that we would recommend. One will be added when we do.

How we did it at TREC 2026

Before the model: checks a program can do

Every answer and report we submitted passed a validator first (Chapter 12). It confirmed that each citation pointed to a document that had been supplied, and that the text fitted the length limit. This catches the first kind of failure for free.

Our own support checks on the RAGTIME reports

For the second and third kinds we used a language model as the checker, twice, with two different models.

First checkSecond check
Judge modelgpt-5.2Gemini 2.5 Flash
Sentences sampled4 per topic on 24 topics, 96 per runup to 5 per topic, 100 per run
What the judge sawThe sentence and the first 12,000 characters of its first cited documentThe sentence and the first 8,000 characters
Form of the replytrue or false, in a fixed formatthe word YES or NO
A reply that failedleft outcounted as “not supported”
Share judged supported97.9% and 99.0% for our two writers71.0% and 69.0%

Our own development checks, not track scores. The individual verdicts were not saved, so these figures cannot be audited, and our notebook paper leaves them out for that reason. The official RAGTIME scores we have are preliminary and are not shown in this book.

Both checks asked the same question in slightly different words: does the document support every factual claim in the sentence? Both found the two writers close to each other. The level differs by about 28 points.

What surprised us

We cannot say which check was right, and the table shows why. The second check cut each document at 8,000 characters, so a supporting passage further down was invisible. It counted a failed reply as “not supported”, while the first check dropped it. It also sampled different sentences from different versions of the reports. Any of these could move the number by many points, and we changed all of them at once. We also did not keep the verdicts, so we cannot go back and look. The lesson is practical. A support percentage depends on the judge, the document length it sees, and what happens to broken replies. Write all three down, keep every verdict, and compare systems only under one fixed setup.

Try it

  1. Take one RAG answer with citations. List its substantive sentences.
  2. For each cited sentence, open the document and give a verdict: full, partial or no.
  3. Compute citation precision and citation recall, once counting partial as zero and once as one half.
  4. Ask a language model for the same verdicts. On how many sentences does it agree with you?
  5. Cut each document to its first 2,000 characters and ask again. How many verdicts change?

Check yourself

  1. What does it mean for a citation to be valid, and why is that not enough?
  2. An answer has 12 substantive sentences. Nine have a citation, and six of those citations support their sentence. Compute citation precision and recall.
  3. How can a system get perfect citation precision with a poor answer?
  4. Why do long sentences fail the support check more often?
  5. Name three settings of a support check that can change the percentage it reports.
Answers
  1. It points to a document that was supplied. The document may still not contain the claim.
  2. Precision is 6 ÷ 9 = 0.67. Recall is 6 ÷ 12 = 0.5.
  3. By citing only one or two safe sentences and leaving the others without citations.
  4. They join several facts, and the cited document must back all of them.
  5. The judge model, how much of the document the judge sees, and how failed replies are counted. The sampling of sentences and the rule for partial support also matter.

Go deeper

  • Split sentences into claims. A checker can first break each sentence into single claims and test each one. This finds half-supported sentences and costs more calls.
  • Find the passage first. For long documents, retrieve the passage most like the sentence and show the judge that passage, not the first characters of the document.
  • Checks without a model. Word overlap between the sentence and the document is a weak signal that costs nothing. It is useful as a second opinion that shares no habits with any language model.
  • Sentences with no citation. Some need none, such as a statement that the documents do not cover a point. A checker can sort uncited sentences into claims, non-claims and statements of absence.
  • People against models. In the 2024 study above, a model's verdicts matched the human ones in a little over half of the cases judged from scratch. Agreement on single sentences is far from perfect, even when system rankings agree.
  • Project idea. Build a support checker. Measure how its percentage moves as you change the document cut-off from 2,000 to 20,000 characters, with the answers held fixed.