Embeddings and retrieval-augmented generation
Give a model your data without retraining it: embeddings, chunking, vector and hybrid search, reranking, and the evaluation that tells you whether any of it works.
RAG is a search problem wearing a language-model costume. Most failures are retrieval failures, so this stage spends its time on how text becomes vectors, how to index and search them well, and how to measure retrieval and generation separately.
By the end: You can build, evaluate and debug a RAG system, and tell whether a bad answer came from ingestion, retrieval or generation.
7 topics · about 36 hours
Do these first
A habit to build now: after every change (chunk size, embedding model, reranker), re-run your evaluation set. RAG quality is empirical, and intuition about it is often wrong.
01
Embedding models and similarity
4 h
02
Parsing, chunking and metadata
5 h
03
Vector search: ANN, FAISS and pgvector
5 h
04
Hybrid search and reranking
5 h
05
A complete RAG pipeline with citations
6 h
06
Advanced RAG: query transformation, graph, agentic retrieval
6 h
07
Evaluating RAG: retrieval and generation separately
5 h
Build this to prove it
A cited question-answering system with its own eval
Index a real corpus (a documentation site, a set of papers, policy PDFs). Implement hybrid retrieval with reranking, answer with citations, and build a 50-question evaluation set that scores retrieval and faithfulness separately.
- Ingestion pipeline with parsing, chunking and metadata
- Hybrid search (dense + BM25) with reciprocal rank fusion and a cross-encoder reranker
- Answers that cite chunk ids, with an unanswerable-question path
- Report of recall@k, MRR and faithfulness before and after each improvement