Lesson 9.11advanced8 h

Project: a cited RAG assistant over your own documents, with evals

Put the whole phase into one system you can defend

Everything in this phase becomes real when you build one system end to end: ingest a corpus you care about, measure retrieval, ground and cite answers, refuse honestly, and prove it all with an evaluation suite that runs from one command. This is a portfolio piece (11.3 Portfolio project ladder), the base for the agent project in 10.12 Project: build a research agent with tools, an MCP server and an eval harness, and the fastest way to discover which lessons you only thought you understood.

You'll be able to

  • Assemble a complete RAG system with hybrid retrieval, reranking, grounded generation and citations
  • Build a golden set and an evaluation harness that reports retrieval and answer metrics from one command
  • Run controlled experiments (chunking, hybrid search, reranking, contextual retrieval) and attribute improvements
  • Instrument latency and cost and apply one caching optimization
  • Write a concise technical report with failure analysis and next steps

Key ideas

  1. Build on a corpus you care about and can legally use; motivation and domain knowledge make error analysis possible.
  2. Create the golden set before optimizing anything, with unanswerable, multi-hop and exact-identifier questions and a held-out slice.
  3. Change one thing at a time and record every configuration in the same results table on the same set.
Show 4 more key ideas
  1. Zero fabricated citations and a working refusal path are non-negotiable acceptance criteria.
  2. One command for ingestion, one for indexing, one for evaluation — reproducibility is part of the deliverable.
  3. Measure latency and cost and apply one caching optimization with before/after numbers.
  4. The report explains what moved the needle and analyses the worst failures; that analysis is what makes the project credible.

Suggested path through this lesson