Intermediate level · Module 6 of 10 · 10 guided hours
Retrieval-Augmented Generation Pipelines
Building RAG as an LLM application: the pipeline end to end, retrieval and context assembly, grounded answers with citations and refusals, and reducing hallucinations.
Learning objectives
- Explain and build an end-to-end RAG pipeline
- Generate grounded answers with citations
- Reduce hallucinations with design choices
Topics
- why RAG
- the RAG pipeline
- context assembly
- grounded generation and citations
- refusal when evidence is missing
- hallucination reduction
Lessons
-
Lesson 1 The RAG Pipeline End to End
Learners build a minimal RAG application: retrieve passages for a question, assemble them into a prompt and generate an answer that uses them.
retrievalcontext assemblygenerationgroundingapproved collection
-
Lesson 2 Grounded Answers with Citations
Learners instruct the model to answer only from passages, cite passage IDs, and decline when the evidence is missing, then check citations automatically.
citationpassage IDrefusal rulecitation checkinganswer schema
-
Lesson 3 Reducing Hallucinations in RAG
Learners identify why RAG systems still hallucinate (bad retrieval, conflicting passages, the model's own knowledge) and apply design fixes.
retrieval missconflicting sourcesparametric knowledgelow temperatureanswer-level checks
Practical activity
Build the project's RAG core: retrieval, context assembly, grounded answers with citations and refusals, automatic citation checks and a hallucination fix report.
Expected outcomes
- Working, grounded RAG applications
- Systematic hallucination reduction
Assessment
RAG implementation and tests (70%) and hallucination report (30%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.