Contents
Learn RAG in 12 chapters
Every concept explained with pictures: the problem it solves, the idea, how it works, what we measured, when to use it and the usual mistakes. Read in order, or jump to what you need.

01
What RAG is, and why
Why a model needs outside knowledge, what one RAG request does, and when RAG is the wrong tool.

02
Tokens, cost and your first RAG
What a model reads and pays for, and the whole RAG lifecycle in miniature.




06
Vector stores and scores
Where vectors live, what a similarity score means, and many vectors per chunk.

07
Finding the right chunks
Keyword, meaning and hybrid search, better queries, routing and reranking.




