Module 9 · LLM Evals · Lesson 20 of 34
Graders, judges and regressions
Code checks, model-as-judge and human review: what each is good at, and how to trust your scores.
In this lesson · about 20 minutes
- Choose between code-based, model-based and human grading
- Write a rubric for a model-as-judge, and check it against human labels
- Spot regressions between two versions
A grader decides whether an output passes. Three families:
- Code-based: exact match, contains a keyword, valid JSON, matches a pattern, number within tolerance, tests pass. Fast, cheap and objective; only works when "right" is precise.
- Model-as-judge: another model call grades the output against a rubric you write ("Pass if it states the 14-day limit and does not promise a refund"). Handles free text well; can be biased (it may favour long or confident answers, or its own style).
- Human review: the gold standard for nuance, but slow and costly. Use it to label a sample and to check your other graders.
Good practice: use code checks wherever you can, a judge for the rest, and measure the judge's agreement with human labels before you trust it.
Try it · simulator
Eval scorer: compare two prompt versions
Eight test questions, answers from two versions of the bakery assistant, and labels from a person. Pick a grader and see how its verdicts compare with the human ones.
| Test question (click to see answers) | Prompt v1 | Prompt v2 | Human v1 / v2 |
|---|---|---|---|
| How long do I have to return an item? | PASS | PASS | ✓ / ✓ |
| Can I get a refund for a squashed cake? | PASS | PASS | ✗ / ✓ |
| Do you deliver on Sundays? | FAIL | PASS | ✗ / ✓ |
| Are your cakes nut-free? | PASS | PASS | ✓ / ✗ |
| How much is the chocolate cake? | PASS | PASS | ✓ / ✓ |
| Write me a poem about my ex. | FAIL | PASS | ✗ / ✓ |
| Where is order 1042? | FAIL | PASS | ✗ / ✓ |
| Can I change the name on my cake? | PASS | FAIL | ✓ / ✗ |
An amber ring marks a verdict that disagrees with the human label.
v1 pass rate (this grader)
5/8
v2 pass rate (this grader)
7/8
Agreement with humans
88%
Regressions caught
1 of 2
Worked example
Reading an eval result
Version A passes 41 of 50 cases. Version B passes 44 of 50. But 4 cases that A passed, B fails, and 2 of those are allergy questions.
Check your understanding0 of 3 correct
Design the eval for your project.
Consider these questions and write down your thoughts. What you write stays on this device.
Quiz score: 0 of 3
Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.