Evaluate an LLM feature with test cases and graders
8 steps · about 3 h · Intermediate
- Define success criteria and build test cases (reference, Claude Docs, 20 min)
Explains how to turn vague goals into measurable evals with example graders.
- Learn why evals drive LLM product quality (article, Hamel Husain, 30 min)
A practitioner's walk-through of unit tests, human review and LLM judges on a real product.
- Pick task-specific metrics for LLM outputs (article, Eugene Yan, 30 min)
Surveys which metrics work for classification, summarisation and other tasks.
- Know the strengths and biases of LLM-as-a-judge (article, arXiv (Zheng et al.), 15 min)
Documents position, verbosity and self-preference bias in model graders.
- Build and calibrate an LLM judge (tutorial, Hugging Face, 30 min)
Shows how to check a judge against human ratings before trusting it.
- Run your first eval suite from a config file (tutorial, promptfoo, 20 min)
Gets prompts, test cases and assertions running from the command line.
- Compare prompts and models side by side (repo, GitHub (promptfoo), 15 min)
Open-source tool for regression-testing prompts in CI.
- Study a registry of reusable eval templates (repo, GitHub (OpenAI), 20 min)
Shows how evals are structured as data plus a grading rule.