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.
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
Plain words, one picture, one worked example. No maths beyond adding and dividing. Everyone reads this.
Formulas, research papers and open questions. For graduate students and anyone curious.
Four ways to read it
| You are in | Time | Read |
|---|---|---|
| A half-day workshop | 3 to 4 hours | Start here, then Chapters 1, 2, 4, 8 and 12, and Lab 1 |
| A bootcamp | 3 to 5 days | Parts 0 to 4, with Labs 1 to 6 |
| An undergraduate class | 6 to 8 weeks | All Core sections of Parts 0 to 5, plus one case study from Part 6 |
| A graduate class | a full unit | Everything, with Go deeper, all case studies, and a replication project |
What every chapter contains
- In one sentence and why you should care.
- Words you need: the chapter's terms, each in one line. All of them are in the glossary.
- The idea: the explanation, with a picture and a small worked example.
- Watch and read: outside videos, articles and papers. Each link was opened and checked on the date shown.
- How we did it at TREC 2026: where the idea sits in our own systems, with the setting and the score.
- What went wrong or surprised us: one honest lesson.
- Try it: a short lab or a pencil exercise.
- 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.