All courses

Advanced · module A9

Retrieval-Augmented Generation and Knowledge Systems

By the end: Build, evaluate and secure a production-grade retrieval-augmented system

Covers
Grounding LLMs in your own data, from vector search to production RAG
Contents
2 chapters, 11 topics
Time
About 3 hours
Level
Advanced
Your progress
0 / 11

This module builds on Generative AI and Large Language Models in Practice. We suggest looking at it first, but the choice is yours.

Chapter 1 Retrieval

  1. 1.1

    RAG Architecture

    Ingestion, indexing, retrieval and generation

    Interactive: trace a query through RAG

    10 minBeing written
  2. 1.2

    Document Ingestion and Chunking

    Parsing files, chunk sizes, overlap and metadata

    Code: chunk a document set

    12 minBeing written
  3. 1.3

    Embedding Models and Vector Databases

    Choosing embeddings, and HNSW and IVF indexes

    Code: a vector index with FAISS

    15 minBeing written
  4. 1.4

    Hybrid Search and Reranking

    BM25 combined with vectors, and cross-encoder reranking

    Code: add reranking

    15 minBeing written
  5. 1.5

    Query Rewriting and Routing

    Multi-query, HyDE and routing to sources

    Code: query rewriting

    10 minBeing written

Chapter 2 Generation and Quality

  1. 2.1

    Grounded Generation and Citations

    Answering only from sources, with citations

    Code: answers with citations

    12 minBeing written
  2. 2.2

    Knowledge Graphs and GraphRAG

    Entities, relations and graph-based retrieval

    Code: a small knowledge graph

    15 minBeing written
  3. 2.3

    Evaluating RAG Systems

    Retrieval recall, faithfulness and answer relevance

    Code: an evaluation set

    15 minBeing written
  4. 2.4

    Securing RAG

    Access control, prompt injection through documents and data leakage

    Lab: attack and defend

    12 minBeing written
  5. 2.5

    Project: A Production RAG Application

    Ingestion, search, generation, evaluation and a user interface

    Project

    45 minBeing written
  6. 2.6

    Module Review and Assessment

    Coding tasks and a scored quiz

    Graded project

    20 minBeing written