Deep Dive

Production RAG from the Retrieval Up

How retrieval-augmented generation works when it works, and exactly where it fails when it does not. Chunking, embeddings, lexical and hybrid retrieval, reranking, measurement, context assembly, freshness and access control, tracing, and injection through retrieved text: the mechanism of each layer, with the numbers, so you can tune a system rather than swap components at random.

A chain of contractsparsechunkembedretrievererankassembleeach layer owes the next something specific↑ chunking: where meaning is lost firstthe generatorlabelled set~400 q → passageone set measures every layer · recall@k per slicewrong answer, right document in the index?force the gold passage into the prompt:if the answer flips, the breach is upstream
If you only have an hour

Read 00 for the pipeline and the one eval set everything else is measured on, then 04 (why dense alone misses) and 09 (how to find which layer is at fault). Those three change how you look at every RAG system you meet.

Study pathsPick the plan that fits the time you have
A week of evenings

Two chapters a night in order. Build the labelled set from 06 on your own corpus as you go; every later chapter gives you something to measure with it.

One afternoon

00, 02, 04, 05, 07, 09. Read the Takeaway of the rest.

Before an interview

00, 04, 06, 09 here; then the interview framing in AI Engineer Interview Prep 01–03.