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 0 · Start here

RAG from Scratch to TREC

A book about retrieval-augmented generation: how a system finds evidence, writes an answer with citations, and how we judge whether the answer is any good. Every idea is tied to a real entry in TREC 2026 by the Iowa State team.

Book in progress. The start-here pages, Parts 1 to 5 (Chapters 1 to 28) and the glossary are written. The other chapters are listed in the contents and marked “planned”. Pages may still change.

Who this book is for

Students in computer science and applied AI, at both undergraduate and graduate level, and people in workshops and bootcamps. You need to know a little Python. You do not need to know search engines or machine learning maths.

Two levels on every page

Core

Plain words, one picture, one worked example. No maths beyond adding and dividing. Everyone reads this.

Go deeper

Formulas, research papers and open questions. For graduate students and anyone curious.

Four ways to read it

You are inTimeRead
A half-day workshop3 to 4 hoursStart here, then Chapters 1, 2, 4, 8 and 12, and Lab 1
A bootcamp3 to 5 daysParts 0 to 4, with Labs 1 to 6
An undergraduate class6 to 8 weeksAll Core sections of Parts 0 to 5, plus one case study from Part 6
A graduate classa full unitEverything, with Go deeper, all case studies, and a replication project

What every chapter contains

  1. In one sentence and why you should care.
  2. Words you need: the chapter's terms, each in one line. All of them are in the glossary.
  3. The idea: the explanation, with a picture and a small worked example.
  4. Watch and read: outside videos, articles and papers. Each link was opened and checked on the date shown.
  5. How we did it at TREC 2026: where the idea sits in our own systems, with the setting and the score.
  6. What went wrong or surprised us: one honest lesson.
  7. Try it: a short lab or a pencil exercise.
  8. Check yourself: five questions, then the Go deeper section.

Where to go next

Read the big picture first. It shows the whole pipeline on one page. Then read the 2026 shift, because it changes how you should read everything after it. If you want to see a finished chapter, open Chapter 8.