Start with three questions you’ll face on your first evaluation.
- What counts as success? An assistant says it booked the hotel, but the reservation has the wrong date. What can you check in the reply, and what do you need the booking record for?
- How does a wrong answer earn a higher score? Score three answers about the same bus departure by hand. BLEU, ROUGE and word error rate each count something different.
- The new model got four more questions right. Would you switch? Test both models on the same questions. Which mistakes did the new model fix, and which answers did it get wrong for the first time?
Once you have results, follow the question they raise. If the average improved but some users are worse off, compare groups. If you want a model to grade the answers, check its judgments against human ratings first.
7 core notes, about 34 min. 8 deep dives fold under the notes they extend.
Evaluation basics3 core · 4 deep
Define success, choose a metric, then compare two versions. For a closer look, break down the average by group or check how much it varies.
- Evaluation: Why Should We Believe the System Improved?Define “better”, compare fairly, check the result, then add judges and production3 min
- An answer went wrong. Which layer should you inspect?Find the failing layer; a nested funnel ending at 55 means 55/100 success, not 55/605 min
- Taking evaluation online: observability for LLM applicationsA 1% judged sample catches daily drops of about 5.3 points; small slices barely show19 min
- BLEU, ROUGE, edit distance and perplexity: what does the score compare?Wrong time, BLEU-2 0.77; correct but short, 0.51: what each metric actually counts7 min
- Before choosing a benchmark, define the comparisonFour more right of 200 gives McNemar p ≈ 0.45: fix the protocol, then read the gap7 min
- After the score goes up: controlled comparisons and slicesLock conditions, then slice: the average rises to 0.588 as sparse users drop to 0.303 min
- The score improved. What does that actually establish?New users at 10% give +3.5 points, at 50% −2.5; then test whether a gain is luck7 min
LLMs as judges4 core · 4 deep
Models as graders: writing criteria, choosing a score, testing bias, calibrating the judge
- LLM-as-a-Judge: what makes an evaluation useful?Passing 2 of 3 checks can't excuse invented policy: define, verify, then apply judges5 min
- Applying judges to RAG, agents, and memoryTold not to book, the agent still calls create_booking: the evidence each task needs4 min
- Minimal implementation: finish one evaluation end to endBad output never passes and failed calls stay counted: four states, run locally4 min
- Criteria: what are we judging in this answer?Turn “rate it 1 to 10” into a rubric with pass, fail, unknown and borderline cases4 min
- Scoring modes: what decision will this result support?Match the output to the decision; swap A/B and fix the win-rate denominator first4 min
- Probability scores: what does 4.1 actually tell us?Raw token probabilities weight to 3.28; renormalized over the 0.80 label mass, 4.14 min
- Bias tests: change one thing and see what movesReordering or adding filler shouldn't move the score; changing 7 days to 30 should4 min
- Calibrating a judge: inspect its mistakes, not its confidenceThreshold 3.5 to 4.0: one fewer wrong pass, one more wrong block, still 7/12 correct5 min
No notes match.