RAG
Build retrieval-augmented generation systems that answer from your own data: chunking, embeddings, vector search, retrieval evaluation and grounded prompts with citations.
Retrieval-augmented generation (RAG) lets an LLM answer questions using documents it was never trained on: your product docs, policies, tickets or code. Instead of hoping the model "knows", you retrieve the most relevant passages at query time and put them in the prompt.
RAG looks simple in a demo and gets hard in production. This course covers every stage of the pipeline and the engineering decisions behind it: why and when to use RAG, how to chunk documents, how embeddings and cosine similarity work, how vector search scales, how to measure retrieval quality with recall@k and MRR, and how to assemble a prompt that keeps the model grounded and makes it cite its sources.
All exercises are pure Python running in your browser: you will implement a chunker, cosine similarity, top-k retrieval, retrieval metrics and a citation checker. Calls to real embedding models and vector databases are shown in illustrative code examples.
What problem RAG solves, how the pipeline fits together, and how to split documents into chunks.
Represent meaning as vectors, measure similarity, and search millions of vectors fast.
Measure retrieval quality and assemble prompts that keep the model honest.
Build a RAG assistant over a real documentation set (for example an open-source project's docs) that answers questions with citations, and an evaluation suite that measures retrieval and answer quality.