A basic retrieval-augmented generation demo takes an afternoon: split some documents, embed them, search, and pass the results to a model. Getting the same system to answer correctly across thousands of messy documents, for users with different permissions, is a different job. Most RAG failures are retrieval failures, not model failures. This course focuses on the retrieval pipeline, how to measure it, and how to run it reliably once real users depend on it.

What you'll learn

  • Why RAG systems fail: missing content, poor chunking, weak retrieval and unfaithful answers
  • Parsing real documents: PDFs, tables, scanned files, HTML and slide decks
  • Chunking strategies, metadata and contextual enrichment of chunks
  • Embedding models, vector indexes and when a vector database is overkill
  • Hybrid search combining keyword (BM25) and vector retrieval, plus rerankers
  • Query rewriting, multi-step and agentic retrieval, and when long context replaces RAG
  • Citations, grounding and making the model say "I don't know"
  • Permissions and multi-tenant data: filtering results by who is asking
  • Building evaluation sets and measuring retrieval quality and answer faithfulness
  • Freshness, re-indexing, caching, latency and cost in production

Who it's for

  • Developers and ML engineers who have built a RAG prototype and need it to work reliably
  • Teams building internal knowledge assistants, support bots or document search
  • Technical leads deciding between RAG, fine-tuning and long-context approaches

Prerequisites

  • Solid Python or TypeScript and experience with LLM APIs (see Building AI Apps with LLM APIs)
  • Basic understanding of embeddings and vector search
  • Comfort with SQL and running services locally or in containers

Outcomes

By the end of this course you will be able to:

  1. Diagnose whether a bad answer comes from ingestion, retrieval or generation.
  2. Build a hybrid retrieval pipeline with reranking and permission-aware filtering.
  3. Create an evaluation set and track retrieval and answer quality over time.
  4. Operate a RAG system with sensible freshness, latency and cost controls.

Course outline

ModuleTopic
1Anatomy of a RAG system and its failure modes
2Document ingestion and parsing
3Chunking, metadata and enrichment
4Embeddings and vector indexes
5Hybrid search and reranking
6Query rewriting and agentic retrieval
7Grounded answers and citations
8Access control and multi-tenant data
9Evaluating retrieval and answers
10Freshness, caching and cost
11Monitoring and continuous improvement
12Project: a production-grade knowledge assistant

FAQ

Which vector database do you use?

Examples use PostgreSQL with pgvector because many teams already run it, and we compare dedicated vector databases and search engines so you can choose for your scale.

Is RAG still needed now that models have long context windows?

Often, yes. Long context helps with smaller collections, but large, changing or permissioned data still benefits from retrieval. We cover how to decide, and how to combine the two.

Should I fine-tune instead?

Fine-tuning changes behaviour and style; RAG supplies facts. Fine-Tuning and Running Open-Weight LLMs covers when tuning is the better choice.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.