Module resources
Retrieval-augmented generation
Checked sources to go further than the lessons. Back to the module.
Recommended learning sequence
Work through these in order.
Introducing Contextual Retrieval (opens in a new tab)
Start with a practical engineering write-up of one RAG improvement. It shows chunks, embeddings, BM25 and reranking working together and reports its numbers. Repeated on purpose from the lessons, as a warm-up.
Building and Evaluating Advanced RAG (opens in a new tab)
Then a short video course on building a baseline RAG pipeline, improving retrieval, and scoring it with the context relevance, groundedness and answer relevance triad. It previews lessons 3, 5 and 6.
Retrieve & Re-Rank (opens in a new tab)
Official documentation on the retrieve-then-rerank pattern that lessons 2 and 3 build on. Repeated on purpose from the lessons, because it fixes the order of the query-side stages.
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (opens in a new tab)
Now the foundational paper. With the pipeline in mind you can read how retrieval and generation were combined, and see what every variant in lesson 4 changes. Repeated on purpose from the lessons, because it is the base every later step modifies.
List of available metrics (opens in a new tab)
Next, the catalogue of evaluation metrics, so the hand-computed measures in lessons 5 and 6 map onto real tooling. Repeated on purpose from the lessons.
Retrieval Augmented Generation with Claude (opens in a new tab)
Finish by building: a runnable notebook with an evaluation folder, with a basic pipeline that chunks by heading, a 100-question evaluation set, summary indexing and reranking with Claude. Repeated on purpose from the lessons, as the hands-on finish: extend it with this module's ideas.
All resources
Further reading
Your AI Product Needs Evals (opens in a new tab)
A practitioner's argument for systematic evals over informal checks, built on a real estate assistant case study. It supports the golden-set habit from lessons 5 and 6. It says RAG evaluation itself is out of scope.
Research papers
Dense Passage Retrieval for Open-Domain Question Answering (opens in a new tab)
Shows how a dual-encoder retriever is trained and compared with BM25 in top-20 passage retrieval accuracy. It explains why the dense half of hybrid search in lesson 3 exists.
Books
Speech and Language Processing (3rd edition draft) (opens in a new tab)
Volume II, Chapter 11, Information Retrieval and RAG, gives a textbook treatment of the retrieval and generation stages. Read that chapter after lessons 2 and 3 for the formal vocabulary.
Courses
Building and Evaluating Advanced RAG (opens in a new tab)
A 2 hour 5 minute beginner video course with code examples on sentence-window and auto-merging retrieval and the RAG triad. The page says access is free for a limited time and a graded accomplishment needs PRO.
Case studies
Seven Failure Points When Engineering a Retrieval Augmented Generation System (opens in a new tab)Essential
An experience report from three case studies that names seven failure points in a RAG system. It is a useful checklist next to the stage-by-stage diagnosis in lessons 5 and 6. It appeared in the Research and Experience Papers track of CAIN 2024.
Five RAG applications built for different domains, rated by 100 participants, with twelve lessons learned. Shows how pipeline choices look in real projects beyond this module's examples.
Datasets
A benchmark of 18 datasets for testing retrievers on new domains, with results showing BM25 is a strong baseline. It gives context for why lesson 6 asks you to build your own golden set.
MTEB: Massive Text Embedding Benchmark (opens in a new tab)
A benchmark across 8 task types and 58 datasets that finds no embedding method dominating every task. Read it before trusting a leaderboard when you choose an embedding model for lesson 1 or 2.