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 5 · TREC and the 2026 tracks · Chapter 24

The TREC RAG track

In one sentence: the TREC RAG track gives every team the same long questions and the same collection, asks for the relevant documents and for a cited answer of up to 1,024 words, and scores both in several ways.

Why you should care

This is the track the book is built around. Parts 2 to 4 taught the steps one at a time. This chapter shows the rules those steps had to fit: what goes in, what must come out, and how it is marked. If you plan to enter next year, read it twice. Most lost points in a first entry come from a rule the team did not read, not from a weak model.

Words you need

Narrative
The track's kind of question: one complete, long information need, usually two or three sentences.
Retrieval task (R)
Return the documents that are relevant to the narrative.
RAG task
Return a written answer with citations to documents in the collection.
Answer object
One piece of the answer, usually a sentence, with its own list of citations.
Run tag
The short name of a run, such as isu-cov2-ft.
Priority
The order in which you ask the organizers to judge your runs. Human judging goes to the runs you rank first.
Battle
A comparison in which an assessor sees two anonymous answers to the same narrative and says which is better.
Median
The score of the middle run when all runs are sorted. Half of the field is above it.

Core The idea

Three years of the track

202420252026
CollectionMS MARCO V2.1, cut into segments: about 11 million web documents in about 114 million piecesClimbMix-400b, whole documents (Chapter 25)
TasksRetrieval, generation from a given list of segments, and full RAGRetrieval and RAG
Questions301 topics105 narratives119 narratives
Answer limit—400 words1,024 words
Retrieval list—top 100 segments“all and only” the relevant documents
Rules written forpeoplepeople and coding agents (Chapter 26)

Sources: the track's pages for each year and the 2026 guidelines skill, read 16 November 2026. A dash means we did not check that cell.

The track was proposed in 2024 by researchers at the University of Waterloo and Microsoft. The 2026 organizers come from Waterloo, Microsoft Research, Databricks and Zipf AI.

The 2026 retrieval task

For each narrative, return a ranked list of documents. The guidelines ask for a list “containing all and only” the documents that the system predicts are relevant and useful as evidence. They add: do not add documents merely to reach a conventional cutoff such as 10, 100 or 1,000. So the length of the list is your decision, narrative by narrative (Chapter 10).

The file is plain text with six columns per line: narrative ID, the fixed text Q0, document ID, rank, score, run tag. This six-column layout is the classic TREC run format and is decades old.

The 2026 RAG task

For each narrative, return one record with three parts:

  • Metadata: team, narrative ID, the narrative text, run tag and a description of the run.
  • References: the list of document IDs the answer uses.
  • Answer: a list of answer objects. Each has a text and zero to three citations. A citation is a position in the reference list, or the document ID itself.

The whole answer may have up to 1,024 words. The guidelines even give the counting rule: split each text on spaces and add up the pieces. A team may send up to 10 runs per task, each with a priority.

The year in dates

  1. 1GuidelinesThe rules arrive.29 May
  2. 2Development narrativesPractice questions.12 June
  3. 3Test narrativesThe 119 real questions.6 July
  4. 4BaselinesThe organizers' own runs, free to build on.week of 19 July
  5. 5Runs dueUpload to Evalbase.8 August
  6. 6ScoresSent to each team by e-mail.2 and 3 November

Count the weeks. From test narratives to deadline is less than five. Everything in Parts 2 and 3 of this book had to be built, tested and run inside that window.

How retrieval runs were scored

ViewWho judgedMeasuresNarratives
DocumentsA language-model judge (UMBRELA). Grade 2 or higher counts as relevant.Set precision and set recall over the whole list you sent, and the number of documents returned82
NuggetsNuggets written by NIST assessors, and again nuggets written by AutoNuggetizerGain and effort. A vital nugget weighs 1, an okay nugget 0.5. Repeating a nugget earns nothing.25

Set precision is the share of your list that is relevant. Set recall is the share of all relevant documents that your list holds. Because the list has no fixed length, a long list buys recall and pays in precision.

How RAG answers were scored

ViewHowNarratives
Battles, batch 1Assessors first wrote down what a good answer needs, then chose between pairs of answers. The choices were turned into one rating per run.17
Battles, batch 2Assessors first pulled nuggets from documents, then used them to choose between pairs.25
Assessor nuggetsVital strict and all strict (Chapter 18). A language model assigned the nuggets to the answers.25
Automatic nuggetsThe same two measures with nuggets written by AutoNuggetizer.25

Source: the notes sent with the scores by the track organizers on 2 and 3 November 2026. Only each team's two highest-priority runs were put into the battles.

The rating method for battles is the one used to rank chess players and chatbots: a run that wins against strong runs gets a high rating. Chapter 17 shows our runs under all four views.

Watch and read

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

How we did it at TREC 2026

We sent eight retrieval runs and six RAG runs. Seven of the retrieval runs went in on 7 August and one on 8 August.

OursThe field
Retrieval runs scored7 of 8114 runs from 27 teams
Best set recall0.2927, with about 710 documents per narrativemedian 0.1002, median list 100 documents
RAG runs in the battles2 of 6, the two we ranked firsttwo per team
Assessor nuggets, vital strict, best run0.6563median 0.4879

Source: scores e-mailed by the track organizers on 2 and 3 November 2026. The notes for the RAG task do not say how many runs or teams were scored.

Three rules shaped what we did.

  • Priority decides who gets human judging. Only our two first-ranked RAG runs entered the battles. The other four have nugget scores and no ratings. Decide your priorities as carefully as you build the runs.
  • “All and only” is a real rule. Our long list won on recall and lost on precision. Every one of our lists was below the median on set precision (Chapter 10).
  • One run was left unscored on purpose. We declared one retrieval run as a pool of candidates, not as a list for the table, and it was not scored.

What surprised us

Our own checker said “all pass”, and it was checking the wrong rules. Three weeks before the deadline, all eight runs passed our validator. Then we compared the validator with the guidelines. It tested rules we had assumed, not the rules as written, and it would have rejected files that were legal. A closer look at the answers found worse. Four narratives had answers with no references at all. In others the writer had invented citation markers, and in more than half of the answer objects a raw document ID sat in the middle of the sentence. All of it was repaired and regenerated before upload. A validator is only as good as its reading of the rules, so build it from the guidelines text, line by line, and then read some of the output with your own eyes.

A second surprise came with the scores. The guidelines announced citation precision and recall. The score files we received hold battles and nuggets, and no citation scores yet. More scores are expected after the workshop.

Try it

  1. Open rag-task.md in the guidelines. Write a validator for one answer: the word limit with the track's own counting rule, at most three citations per answer object, and every citation pointing into the reference list.
  2. Write one valid record by hand for a narrative of your own.
  3. Break the record in three ways, one at a time. Does your validator catch each one?
  4. You may send ten runs, and only two will get human judging. Which two would you choose, and why?

Check yourself

  1. What are the two tasks of the 2026 track?
  2. What does “all and only” ask of a retrieval list?
  3. How long may an answer be, and how many citations may one answer object carry?
  4. Why does the priority of a run matter?
  5. Name two of the four views under which RAG answers were scored.
Answers
  1. Retrieval and RAG. The task that generated from a given list was removed.
  2. Return every document you predict is relevant and none that you predict is not. The system picks the length of each list.
  3. Up to 1,024 words, and zero to three citations.
  4. Human judging is limited. In 2026 only each team's two first-ranked runs entered the battles.
  5. Any two of: battles after written rubrics, battles after nuggets, assessor nuggets, automatic nuggets.

Go deeper

  • From pairs to ratings. The battles are turned into ratings with the Bradley–Terry model, fitted separately for each batch. Ratings from different batches are on different scales and must not be compared.
  • A model judged the documents. Relevance at document level came from a language-model judge, not from people. The track's own earlier studies are the reason it trusts this for ranking systems. Chapter 20 gives the cautions.
  • Gain and effort. The nugget measures for retrieval reward a list for the nuggets its documents contain and charge it for the reading it asks of the user. A second document that repeats a nugget adds effort and no gain.
  • The track's research goals. The overview file in the guidelines lists them. One is to generate deep research questions automatically from a collection. Another is to align the test collection with the data language models are trained on.
  • Where the narratives came from. We could not find a statement of how the 119 test narratives were written. Look for it in the track overview paper when it appears.
  • Project idea. Take the organizers' BM25 baseline. For each narrative, choose a cut-off with one simple rule of your own. Can you beat “always 100” on both set precision and set recall?