Chapter 47
Module 4: Evaluation
Module 4: Evaluation
This module covers systematic evaluation for search, RAG, and agent systems.
We generate ground truth data with an LLM. Then we measure performance with Hit Rate, MRR, and LLM-as-a-judge.
Part 1: Search Evaluation
Part 1 creates a ground truth dataset and uses it to evaluate retrieval quality.
- Intro - Why evaluation matters, offline vs online
- Generating Ground Truth - Structured output for one document
- Generating Ground Truth for All Documents - Batch generation, cost, and prepared data
- Search Evaluation - Search setup and relevance lists
- Search Evaluation Metrics - Hit Rate, MRR, the evaluate() function
- Search Parameter Tuning - Using metrics to tune boost values
Part 2: RAG and Agent Evaluation
Part 2 evaluates answer quality after retrieval. It also shows the basic idea of agent evaluation: save the final answer and the tool-call trajectory.
- RAG and Agent Evaluation - What changes after retrieval
- Generating RAG Answers - Running RAG on the ground truth questions
- LLM as a Judge - Using an LLM to evaluate answer quality
- Agent Evaluation - Capturing answers and tool-call trajectories
- Next Steps - Evaluation frameworks, monitoring, and resources
Homework
Original workshop recording
This module was taught as a live workshop, which we chopped into the per-lesson videos above. To watch the full uncut recording:
Older content
Older cohort materials:
