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 20

LLM as a judge

In one sentence: a language model can do the reading that judging needs, at a tiny share of the cost of a person, and it brings habits of its own that you must design around.

Why you should care

The last two chapters each ended with a reading job: does this answer contain this nugget, does this document support this sentence. A track has hundreds of thousands of such questions. Today most of them go to a language model. You will use one as a judge in almost any RAG project, because the other choice is to judge very little. The skill is to use it in a way that gives stable, honest numbers.

Words you need

LLM judge
A language model asked to grade or compare system output.
Pointwise judging
The judge sees one answer and gives it a grade.
Pairwise judging
The judge sees two answers and picks the better one.
Rubric
The written rules the judge must follow, with the meaning of each grade.
Position bias
A judge's habit of favouring the answer shown first, or the one shown second.
Self-preference
A judge's habit of favouring text written by itself or by a model from the same maker.
Panel
Several judges whose verdicts are combined.
Model family
The models made by one developer.

Core The idea

Three ways to ask

WayThe judge is askedGood forWeak point
Against a listDoes this answer contain this nugget? Does this document support this sentence?Narrow questions with a clear yes or noOnly as good as the list
Pointwise with a rubricGrade this answer from 0 to 3 by these rulesA quick overall viewGrades drift, and many answers get the same grade
PairwiseWhich of these two answers is better?Telling close systems apartNeeds many pairs, and gives a winner but no reason

The narrower the question, the more reliable the judge. “Is this a good answer?” invites the judge's taste. “Does the answer state that the bridge closed in March?” leaves little room for it.

Habits to design around

  • Position. In a pair, many judges lean toward one slot. Judge every pair twice with the answers swapped, and count a win only when the same answer wins both times.
  • Length. Longer answers tend to win, even when the extra text adds nothing. Control length, or report it.
  • Style. Confident, well-formatted text earns higher grades than plain text with the same facts.
  • Self-preference. A judge may favour answers from its own family. Studies have found that models can recognize their own writing and tend to rate it higher.
  • Wording. A small change to the judge's prompt can move the grades. Fix the prompt before you look at results, and keep it.

A checklist for using a judge

  1. Ask narrow questions. Break one broad grade into several small checks.
  2. Hide what the judge does not need: the system's name, its citation marks if you judge content.
  3. Swap the order in every pair.
  4. Set the temperature to zero and use a fixed reply format, so a program can read the verdicts.
  5. Decide in advance what happens when a reply is broken.
  6. Save every verdict with the prompt that produced it.
  7. Compare systems under one judge. Do not quote a judge's grades as absolute levels.

More than one judge

A panel of judges from different makers evens out the habits of each. For it to help, the members must differ. Two models from the same maker tend to share training data and style, so they count for less than two models from two makers. One simple rule is to give each family one vote, however many of its models sit on the panel.

Watch and read

How we did it at TREC 2026

The track's own judge

In the RAG track, a language model decided which rubric items and nuggets each answer supports. The organizers' notes name the model and its setting. So a model judge stands between every team and its nugget score, which is one reason the Auto-Judge track exists (Chapter 21).

Our duels during development

For the RAGTIME reports we compared pairs of runs with a model judge. Each pair of reports was judged twice with the order swapped, and a win counted only when the same report won both times. On 24 topics, selected evidence beat the plain top 18 on 7 topics and lost on 1, with 16 ties (Chapter 16). The many ties are the swap rule at work: a judge that changes its mind when the order changes has not really chosen.

Our judge for the Auto-Judge track

In the Auto-Judge track the judge itself is the submission. Ours follows the checklist above.

  1. 1Write the listThree open-weight models from three makers each draft nuggets from the topic text. One model merges the drafts. The merge may not add an item that is in no draft.Ch 18
  2. 2Grade contentEach panel member grades every answer against the merged list: 2, 1 or 0 per nugget. The judge sees the sentences without their citation marks.Ch 18
  3. 3Grade supportA sample of cited sentences is checked against the first cited document: full, partial or no.Ch 19
  4. 4Add checks with no modelWord overlap and citation validity, computed by a program.Ch 19
  5. 5CombineEach family's signals are averaged first. Then the families are averaged. The model-free checks count as one family.this chapter

The panel was gpt-oss-120b, Qwen3-235B and Llama-3.3-70B. A family means the developer, fixed in a table beforehand, so two Qwen models count once. A health gate drops a member whose signal fails or comes out the same for every answer. One of our ten runs added pairwise battles, judged in both orders, on top of the panel.

How well this judge did is in the Auto-Judge results, which arrived on 13 November. They go into this book once the organizers agree.

What surprised us

The judge from one maker chose the other maker's reports, 12 to 0, and we still cannot call it fair. In one development duel, a gpt-5.2 judge compared reports written by a GPT model with reports written by Claude, on 24 topics. With the order swapped, the Claude reports won 12 topics, the GPT reports none, and 12 were ties. That is the opposite of self-preference. But the judge had been asked to count distinct responsive facts, and the Claude reports were about 20% longer. We never measured how much length alone moves this judge. So the result may show better reports, or longer ones. Swapping the order controlled one habit and left another one open.

Try it

  1. Take 10 questions and two systems. Write a pairwise judge prompt that asks which answer covers more of the facts a reader needs.
  2. Judge every pair twice with the order swapped. Count how often the verdict flips.
  3. Pad the losing answers with two empty sentences each and judge again. Does anything change?
  4. Run the same pairs with a judge from another maker. On how many pairs do the two judges agree?

Check yourself

  1. What are the three ways to ask a model to judge?
  2. Why is each pair judged twice with the order swapped?
  3. What is self-preference, and how does a panel reduce it?
  4. Why does our panel give one vote per model family and not one per model?
  5. In our 12 to 0 duel, which habit was controlled and which was not?
Answers
  1. Against a list of nuggets or documents, pointwise with a rubric, and pairwise.
  2. To cancel position bias. A win counts only if it does not depend on the order.
  3. A judge favouring text from its own family. A panel mixes families, so no single family's taste decides.
  4. Models from one maker share habits, so two of them are less than two independent opinions.
  5. Position was controlled by the swap. Length was not.

Go deeper

  • From pairs to a ranking. A Bradley–Terry model turns pairwise wins into one rating per system. With few pairs per system, add a small penalty that keeps ratings from running to extremes.
  • Reasoning before the verdict. Asking the judge to explain first and decide second often helps on hard cases. It also costs tokens, and a reply cut off by a token limit can be read as a wrong verdict. Check for empty replies.
  • Open-weight judges. A judge whose weights you can download gives the same verdicts next year. A hosted model may be replaced without notice. For a reusable evaluation this matters more than a small gain in accuracy.
  • Does a panel beat its best member? Not always. A panel is safer when you cannot know in advance which member is best. On our pilot data we could not show that the panel beat its best single member.
  • Seen it before. If the test answers or the reference nuggets are public, a judge model may have met them in training. Prefer fresh data for evaluating a judge.
  • Project idea. Build a three-family panel for nugget assignment. Measure how often each member disagrees with the majority, by topic.