Advanced

RAG

Naresh Edagotti82 parts13h 36mRevised Sept 2026

Overview

Production RAG Systems: A Hands-On Course

Course Overview

Large language models are fluent, but they do not know your organization's documents, cannot show where an answer came from, and will confidently invent facts. Retrieval-Augmented Generation (RAG) solves this by finding the right passages in your own content first, then having the model answer only from them, with citations.

A RAG demo takes an afternoon. A RAG system that is accurate, secure, fast, and affordable in production takes much more, and that is what this course teaches. Across fourteen modules you build one project, ShopSphere, a support assistant for a fictional e-commerce company. It starts as a few dozen lines of code and grows into a production service that ingests messy real documents, respects who may see what, answers with citations or honestly refuses, and blocks quality regressions before they ship.

Every module teaches through runnable code, with a plain-language explanation after each example, a hands-on lab, and interview questions. All tools have free options: Python, open-source embedding and reranking models, Qdrant, FastAPI, and your choice of Groq, Gemini, or a fully local model with Ollama.

The course is organized into four stages: Foundations, covering Modules 1–3: RAG Foundations, Document Ingestion, and Chunking; Retrieval, covering Modules 4–8: Embeddings, Vector Stores, Search and Hybrid Retrieval, Query Understanding, and Reranking and Context Assembly; Answers and Quality, covering Modules 9–11: Generation and Grounding, RAG Patterns, and Evaluation; and Production, covering Modules 12–14: Production Engineering, Advanced and Emerging Topics, and Capstone: A Production RAG Service.

What You Will Learn

  • Build a complete RAG pipeline and explain the trade-off at every stage
  • Turn PDFs, web pages, spreadsheets, and tables into clean, permission-aware data
  • Choose chunking, embedding, and indexing strategies, and justify them with measurements
  • Combine keyword and vector search, rerank results, and rewrite conversational questions
  • Generate cited, validated answers that refuse when the evidence is weak
  • Defend against prompt injection, data leaks, and cross-customer exposure
  • Evaluate quality with real metrics and block regressions automatically in CI
  • Run RAG in production with caching, tracing, cost control, and graceful failure handling
  • Judge when advanced techniques such as GraphRAG, agents, and fine-tuning are worth their cost.

Prerequisites

  • Intermediate Python: comfortable with functions, classes and dataclasses, type hints, comprehensions, modules and imports, exceptions, JSON and files, and virtual environments with pip.
  • Understanding of LLMs:what prompts, tokens, and context windows are, why models hallucinate, and how to call an LLM API from code. No knowledge of model training or internals is needed.

-Developer basics: the command line, Git, and what an HTTP API request and response are.

  • Math: high-school level. Vectors, similarity, and the statistics used for evaluation are taught from scratch.
  • Setup: a computer with 8 GB of RAM (no GPU needed), Python 3.11 or newer, a GitHub account, and a free Groq or Google AI Studio key, or Ollama installed locally.

What you will learn

  • 82 written parts, yours for good
  • 13h 36m of reading, measured not estimated
  • Written for the advanced level
  • Every future revision included
  • UPI, cards and netbanking

Curriculum

14 sections · 82 parts · 13h 36m

32 min free to read · 13h 4m with the course

01Module -1 :Foundations (What RAG Is and When It Is the Wrong Answer)6 parts · 32 min
02Module 2: Document Ingestion and Parsing6 parts · 58 min
  • Topic 1: Sources and Connectors13 min
  • Topic 2: Format-Specific Parsing10 min
  • Topic 3: Hard Content7 min
  • Topic 4: Parsing Strategy5 min
  • Topic 5: Normalization8 min
  • Topic 6: The Document Record15 min
03Module 3: Chunking5 parts · 60 min
  • Topic 1: Why Chunking Decides Answer Quality15 min
  • Topic 2: Strategies14 min
  • Topic 3: Sizing and Overlap6 min
  • Topic 4: Context Preservation12 min
  • Topic 5: Chunk Metadata13 min
04Module 4: Embeddings and Vector Representations5 parts · 69 min
  • Topic 1: Concepts16 min
  • Topic 2: Model Selection12 min
  • Topic 3: Beyond Single-Vector7 min
  • Topic 4: Operating Embeddings14 min
  • Topic 5: Fine-Tuning Embeddings20 min
05Module 5: Vector Stores and Indexing6 parts · 75 min
  • Topic 1: Index Structures20 min
  • Topic 2: Store Selection10 min
  • Topic 3: Data Modelling9 min
  • Topic 4: Filtering8 min
  • Topic 5: Operations12 min
  • Topic 6: Abstraction16 min
06Module 6 : Search - Hybrid5 parts · 59 min
  • Topic 1: Lexical Retrieval30 min
  • Topic 2: Dense Retrieval4 min
  • Topic 3: Hybrid Retrieval8 min
  • Topic 4: Result Set Construction6 min
  • Topic 5: Beyond Similarity11 min
07Module 7: Query Understanding and Transformation5 parts · 43 min
  • Topic 1: The Query Is Not the Question15 min
  • Topic 2: Rewriting5 min
  • Topic 3: Multi-Query Strategies5 min
  • Topic 4: Routing6 min
  • Topic 5: Cost Discipline12 min
08Module 8: Reranking and Post-Retrieval Processing4 parts · 44 min
  • Topic 1: Why Rerank18 min
  • Topic 2: Rerankers6 min
  • Topic 3: Compression and Filtering5 min
  • Topic 4: Context Assembly15 min
09Module 9: Generation, Grounding, and Citations5 parts · 52 min
  • Untitled part21 min
  • Topic 2: Citations5 min
  • Topic 3: Hallucination Control6 min
  • Topic 4: Structured and Streaming Output4 min
  • Topic 5: Security at Generation Time16 min
10Module 10: RAG Architectures and Patterns8 parts · 69 min
  • Topic 1: Baseline Patterns8 min
  • Topic 2: Chunk-Relationship Patterns8 min
  • Topic 3: Query-Side Patterns5 min
  • Topic 4: Feedback-Loop Patterns10 min
  • Topic 5: Agentic Patterns7 min
  • Topic 6: Structure-Aware Patterns9 min
  • Topic 7: Modality and Scope Patterns9 min
  • Topic 8: Choosing Between Them13 min
11Module 11: Evaluation7 parts · 57 min
  • Topic 1: Why RAG Evaluation Is Its Own Discipline10 min
  • Topic 2: Retrieval Metrics4 min
  • Topic 3: Generation Metrics9 min
  • Topic 4: Building the Dataset10 min
  • Topic 5: Judges and Automation4 min
  • Topic 6: Experimental Discipline9 min
  • Topic 7: Online Evaluation11 min
12Module 12 : Production-Engineering7 parts · 59 min
  • Topic 1: Latency11 min
  • Topic 2: Cost4 min
  • Topic 3: Caching8 min
  • Topic 4: Freshness3 min
  • Topic 5: Security and Governance9 min
  • Topic 6: Observability8 min
  • Topic 7: Scale and Reliability16 min
13Module 13: Advanced and Emerging Topics4 parts · 50 min
  • Topic 1: Pushing Retrieval Quality17 min
  • Topic 2: Corpus Intelligence9 min
  • Topic 3: Feedback Loops8 min
  • Topic 4: Frontier Trade-offs16 min
14Module 14: Capstone: A Production RAG Service9 parts · 89 min
  • Part 1: The Brief6 min
  • Part 2: Architecture4 min
  • Part 3: Ingestion and the Index22 min
  • Part 4: The Answer Path10 min
  • Part 5: The API5 min
  • Part 6: Measurement and CI15 min
  • Part 7: The Gauntlet9 min
  • Part 8: Advanced Options8 min
  • Part 9: Submission10 min
Part 1 · freeTopic 1: Why RAG Exists (The Core Problem) · 5 min

Module 1: Foundations (What RAG Is and When It Is the Wrong Answer)

By the end of this module, you'll be able to:
- Explain what problem RAG solves, and what it doesn't
- Draw the RAG pipeline from memory and say where each stage breaks
- Choose between RAG, long context, fine-tuning, tool calling, and agentic search, with reasons
- Name a failure precisely so you can fix it
- Set up the tech stack used for the rest of the course and build your first grounded RAG assistant

How this module is organized

TopicWhat you'll learnStyle
1. Why RAG ExistsThe problem RAG solvesConcepts
2. Anatomy of a RAG SystemThe pipeline and where it breaksConcepts
3. The Decision That Comes FirstWhen to use RAG, and when not toConcepts
4. Failure Modes, Named EarlyHow to diagnose bad answersConcepts
5. The Course Tech StackLLMs, embedding models, rerankers, vector DBs, frameworksSetup + examples
6. Hands-On LabBuild ShopSphere's first grounded assistantCode

Instructor

Naresh Edagotti

Course instructor

Reviews

No reviews yet. The first comes from a reader who finishes the course.

to review this course once you have finished it.

Next to this one