Lessons18
0/18 modules masteredStart Here
3 lessons · 65 minNo libraries and no setup: build a find, paste, answer helper on ten notes, score it with an answer key, then see why RAG exists. Plain Python you can run in the browser.
RAG by Hand
Up NextBuild a tiny question-answering helper with no libraries: search ten notes by counting words, search again by meaning, paste the best notes into a prompt, and see an answer that points back to its source.
Scoring Retrieval
Write an answer key for ten notes, then score three searches with hit rate, recall and reciprocal rank, and learn to tell a search that failed from a model that failed.
Why RAG?
Grounding LLMs in facts. Why RAG beats raw LLMs for knowledge-heavy tasks. The retrieve-augment-generate flow.
Foundations
3 lessons · 2 hrEmbeddings, vector databases and chunking: the pieces every retrieval system is made of.
Embeddings & Vector Similarity
Turn text into numbers. Dense vs sparse embeddings, cosine similarity, fine-tuning embeddings for domain.
Vector Databases & Indexing
Pinecone, Weaviate, Chroma, Qdrant, pgvector, Milvus: choosing and operating production vector storage.
Chunking Strategies
Greg Kamradt's 5 levels: char → recursive → document-specific → semantic → agentic. Late-chunking and hierarchical.
Core: The Working Pipeline
4 lessons · 2 hrThe full pipeline end to end, then dense, sparse and hybrid retrieval, keeping search fast at scale, and re-ranking the short list.
The RAG Pipeline
End-to-end RAG pipeline walkthrough: document loading, chunking, embedding, retrieval, prompt assembly, and generation. How failures cascade.
Retrieval Algorithms
Dense, sparse (BM25), hybrid via RRF, MMR for diversity. The retrieval algorithm taxonomy.
ANN Search at Scale
HNSW, IVF-PQ, ScaNN, DiskANN: serving very large vector collections with the right index, sharding, and recall targets.
Re-ranking
Cross-encoder rerankers (Cohere Rerank, BGE), ColBERT late interaction. Two-stage retrieve-then-rerank.
Advanced: Practitioner
4 lessons · 2 hrQuery rewriting, agentic and iterative loops, knowledge graphs and multimodal retrieval: what to add when the basic pipeline is not enough.
Query Rewriting & Advanced Retrieval
HyDE, Step-Back, RAG-Fusion, multi-query, sub-question decomposition. Query-side techniques.
Agentic RAG: When Retrieval Gets Smart
Self-RAG, CRAG, Adaptive RAG. Retrieval critics and multi-hop loops.
Knowledge Graphs & Graph RAG
Microsoft GraphRAG, Neo4j integration, entity/community summaries: when graphs beat vectors.
Multimodal RAG
ColPali late-interaction VLM, ViDoRe benchmark, image+text+table retrieval for visually rich documents.
Expert: Measure, Decide and Ship
4 lessons · 2 hrEvaluation, the long-context decision, security and production, and a capstone that wires it all into one small cited-answer app.
RAG Evaluation
RAGAS metrics (faithfulness, answer relevancy, context precision/recall), CRAG benchmark, golden sets, citation-grounded eval.
Long Context vs RAG
Million-token context windows against RAG: a decision rubric with assumed-price cost arithmetic, U-shaped attention, and hybrid patterns.
RAG Security & Production Deployment
Prompt injection via retrieved content, semantic caching, serverless vector infra, observability, cost optimization.
Building a RAG App
Capstone: a small cited-answer RAG app that runs with no libraries (BM25 plus embeddings stand-in, RRF, numbered prompt, citation check), plus a real-stack version for Colab.
Practice labs
9 interactive labs — hands-on exercises for this track
RAG Pipeline
A customer asks about your product — watch the AI search docs, find answers, and cite sources
Vector Search Explorer
Drag a query star across an embedding map and watch nearest neighbors update instantly
Chunking Strategies
See how Fixed-Size, Sentence, Paragraph, and Semantic chunking split documents for RAG
Embedding Distance Explorer
Drag sentences, type queries, and watch nearest-neighbor retrieval light up live. See the geometry behind RAG in 2D.
Re-ranking Stage Visualizer
Watch a cross-encoder reranker pull a buried answer from rank 7 to rank 1 after vector search.
Hybrid Search: BM25 + Vector + RRF
See how BM25, vector search, and reciprocal rank fusion rank the same documents — different queries favor different methods.
RAG Evaluation: Precision / Recall / MRR@K
Drag K and watch Precision@K, Recall@K, and MRR update live on three pre-labeled retrievers.
Query Expansion: HyDE vs Multi-query
See how short user queries get rewritten by HyDE and multi-query expansion — and how retrieval quality changes.
Context Window Management
20k-token doc vs 8k context. 5 strategies (truncate, sliding, summarize, map-reduce, recursive) compared on cost vs answer recovery.
Test your knowledge
428 questions across 18 modules — check how well you understood this track.