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 3 · Writing the answer · Chapter 16

Long reports

In one sentence: a report answers a broad request for a particular reader, so the system must choose its evidence with more care, organize many facts, and write for the person who asked.

Why you should care

Many real uses of RAG are not single questions. An analyst wants a briefing. A student wants an overview of a topic. A manager wants the state of a project. The output is a page or more, drawn from many documents, and two readers with the same request may need different reports. This is the task of the RAGTIME track, and it is where “deep research” products are heading.

Words you need

Report request
A description of what the report should cover. In RAGTIME it has a title, a problem statement and a background.
Background
Who is asking and why. The same request can come with different backgrounds.
Evidence selection
A step between retrieval and writing that decides which retrieved documents the writer will see.
Responsive
A document is responsive when it truly helps to answer the request, not merely shares its topic words.
Audience conditioning
Telling the writer who the reader is, so it can choose and order the facts for that reader.
Attribution
Tying each sentence of the report to the document that supports it.
Duel
A comparison of two reports for the same request by a judge who picks the better one.

Core The idea

A report pipeline has the same steps as any RAG system, with two that matter more than before.

  1. 1RetrieveSearch with the title and the problem statement.Ch 11
  2. 2SelectRead the top candidates and keep only the responsive ones.this chapter
  3. 3WriteDraft the report from the full text of the selected documents, with a citation on every sentence.Ch 12
  4. 4Fit the readerOrder and weight the facts for the person in the background.this chapter
  5. 5CheckValidate the format and the citations.Ch 12, 19

Why select?

Search returns documents that look like the request. Many of them share its words and do not answer it. For a short answer the writer can ignore a few off-target snippets. For a report built from full documents, each off-target document is thousands of words of noise, and the writer may cite it anyway. A selection step asks a model one narrow question: which of these candidates truly respond to this request? It costs one model call and can replace a large part of the evidence.

Why the reader matters

Take the request “recent rules on vaping”. A legislative aide drafting a bill needs the wording of existing laws and their effects. An activist needs the health evidence and the arguments. The facts available are the same. A good report selects and orders them differently. A system that ignores the background writes one report for both.

Watch and read

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

How we did it at TREC 2026

We submitted four RAGTIME report runs. They form a ladder: each run adds one thing to the run below it, except the top step, which changes more than one.

RunEvidenceTold about the reader?Writer
isu-rep-sol-bThe top 18 fused documents, full textNogpt-5.6-sol
isu-rep-sol-s18 documents selected by a model from the top 40Nogpt-5.6-sol
isu-rep-sol-spThe same 18 selected documentsYesgpt-5.6-sol
isu-rep-claude-selThe same 18 selected documentsYesClaude, run as coding agents

Retrieval is the ten-list fusion from Chapter 11. Every sentence carries citations, and a citation may point only to a document that was supplied.

Selection changed nearly half the evidence. When the model chose 18 of the top 40 candidates, it replaced 8.4 of the 18 top-ranked documents per topic on average, 47%. The top of the fused list held many documents that shared words with the request and did not answer it. For a request about Denmark and wind power, for example, the search had returned documents about other countries.

The topic set tests the reader on purpose. The 103 topics hold only 75 different problem statements. 28 of them appear twice with the same title and problem statement and a different background, so 56 topics differ only in who is asking. We added a sentence to the prompt that tells the writer to choose and order the supported facts for the stated reader, and we kept one run without it so its effect could be measured.

Our own checks before the deadline

We compared the steps of the ladder on 24 topics with a language-model judge. Each pair of reports was judged twice with the two reports swapped, and a win counted only if the same report won both times.

ComparisonWins for the higher stepWins for the lower stepTies
Selected evidence against the top 187116
Told about the reader against not told4218

These are our own development checks with one language-model judge on 24 topics. They are not track scores. The official RAGTIME scores we have are preliminary and marked as not for public use, so they are not shown in this book.

Selection looked clearly useful. The reader sentence looked mildly useful, with most pairs tied. We kept it because it cost nothing.

What surprised us

Two judges, one question, answers 28 points apart. We asked a judge model whether the cited document supports every claim in a sampled report sentence. One judge said yes for 97.9% and 99.0% of the sampled sentences from our two writers. A second judge, from a different maker, looked at later versions of the two writers' reports and said yes for 71.0% and 69.0%. The reports were not the identical files, so a part of the gap may come from that. Still, the two judges agreed on which writer produced the better reports, and they differed by about 28 points on how well the reports were supported. So an absolute number such as “99% of our citations are supported” means little from one automatic judge. A comparison between two systems under the same judge is more stable. Part 4 builds on this.

A second point is about the ladder. The top step changes the writer from one model to another, and the way the model was run, and the reports came out longer. Three things changed at once. A win for the top run does not tell us which of the three earned it.

Try it

  1. Write a report request with a title, a problem statement of three sentences, and two different backgrounds.
  2. Retrieve 20 documents for it. Mark by hand which ones are truly responsive. What share is it?
  3. Generate a report from the top 10, then from your 10 responsive ones. Compare them.
  4. Generate the report again for each background. List the facts that appear in one version only.

Check yourself

  1. How does a report differ from a short answer?
  2. What does an evidence selection step do, and why does it matter more for reports?
  3. How did the RAGTIME topic set test whether systems pay attention to the reader?
  4. Why did we keep a run without the reader sentence?
  5. Two judges gave about 98% and 70% for citation support on reports from the same two writers. What can you still conclude?
Answers
  1. It covers a broad request, draws on many documents, runs much longer, and is written for a stated reader.
  2. It keeps only the documents that truly respond to the request. Reports use full documents, so each off-target document adds a lot of noise.
  3. Many topics come in pairs with the same request and a different background.
  4. So the effect of that one sentence could be measured apart from the other changes.
  5. Not the absolute level of support. Only comparisons between systems under the same judge.

Go deeper

  • Outline first. Systems such as STORM draft an outline, research each section and then write. This helps structure and makes it possible to retrieve again for sections with thin evidence.
  • Iterative retrieval. A report writer can notice a gap and search again. This is the step from a pipeline to an agent (Chapters 26 and 41).
  • When there is nothing to report. Chapter 11 showed two topics the collection did not cover. A report system needs a rule for that case: say what was searched and that nothing was found.
  • Selection can hide evidence. A selecting model may drop a document that holds the one fact a later nugget asks for. Measure selection by nugget coverage, not only by duels.
  • Evaluating reports. Reports are scored by nuggets covered and by whether each sentence is supported by its citation. Chapters 18 and 19 explain both.
  • Project idea. Build the first three steps of our ladder on a public report-generation collection. Add a fourth step that retrieves again for the weakest section.