Early-bird price on the GenAI & Agentic AI Engineer Bootcamp batch. Grab a seat →

Skill-based roadmap

RAG Systems

Build document-grounded answers and evaluate retrieval separately from generation.

Start here

Open a step for a lesson, practice and completion checks. Lessons are free to read; API and cloud exercises may incur provider charges. Use sample data and mock responses while learning.

  1. Step 1Define the corpus and questions

    The documents and expected questions determine what the system can answer.

    Learn

    • Source permissions
    • Document freshness
    • Answerable and unanswerable questions
    • Access boundaries

    Lesson: Claude: define success and build evaluations ↗

    Put it into practice

    Select a small authorised document set and write twenty questions, including questions with no answer in those documents.

    You’re done when

    • List the permitted sources and who may access each one.
    • Write twenty test questions, including questions the corpus cannot answer.
    Supporting resource: RAG field guide →
  2. Step 2Parse, chunk and index

    The index must preserve enough context for retrieval without losing provenance.

    Learn

    • Parsing quality
    • Chunk boundaries and overlap
    • Embedding dimensions
    • Source metadata

    Lesson: Anthropic: contextual retrieval ↗

    Put it into practice

    Build an index that records document and section identifiers. Compare two chunking strategies on your questions.

    You’re done when

    • Every indexed passage retains its document and section identifiers.
    • Compare two chunking strategies on the same questions and record the differences.
    Supporting resource: RAG sizing calculator →
  3. Step 3Measure retrieval quality

    A fluent answer cannot rescue a retriever that failed to find the evidence.

    Learn

    • Keyword and vector retrieval
    • Hybrid search
    • Reranking
    • Recall at k

    Lesson: Sentence Transformers: retrieve and rerank ↗

    Put it into practice

    Label relevant passages for your test questions. Compare retrieval settings and inspect the cases where the evidence is missed.

    You’re done when

    • Label relevant passages and calculate recall at a stated k.
    • Compare retrieval settings and explain at least one missed-evidence case.
    Supporting resource: RAG evaluation checklist and test set →
  4. Step 4Generate cited, bounded answers

    Give users a way to inspect the evidence and recognise missing information.

    Learn

    • Context assembly
    • Citation validation
    • Abstention
    • Untrusted document instructions

    Lesson: Claude: answers with source citations ↗

    Put it into practice

    Return answers with source references. Verify that the cited passage supports each claim and test a document containing malicious instructions.

    You’re done when

    • Each cited passage actually supports the associated claim in your test cases.
    • Missing evidence and malicious document instructions do not produce unsupported answers.
    Supporting resource: RAG field guide →
  5. Step 5Evaluate the complete system

    Track the quality of retrieval and answers alongside latency, cost and document changes.

    Learn

    • Retrieval versus answer metrics
    • Regression testing
    • Index refresh
    • Cost and latency budgets

    Lesson: Promptfoo: assertions and evaluation metrics ↗

    Put it into practice

    Write a report separating retrieval failures from answer failures. Re-run it after changing the model or index and document the trade-off.

    You’re done when

    • The report separates retrieval failures from generation failures.
    • A model or index change triggers the same regression set with latency and cost recorded.
    Supporting resource: RAG evaluation checklist and test set →

Build, review, repeat

A retrieval pipeline with citations, an evaluation set and documented failure cases.

  • Run your work against the completion criteria, including the failure cases.
  • Ask someone else to follow your instructions and review the evidence.
  • Record what still needs work and uncheck any steps you want to revisit.

Progress is your own checklist, not an assessment or certification.

Choose your next roadmap →