- Archived full text: Full archived text, with credits
- Link: https://www.ratkonikolic.com/p/evaluation-how-do-you-know-any-of
What it says
The article argues that evaluation, not demo feel, is what makes a knowledge layer or agent system trustworthy: measure retrieval and generation separately, gate releases on a golden set, and instrument production so silent regressions surface before users do. It treats the LLM judge and the golden set as maintained assets rather than one-off fixtures, with calibration against human labels and re-calibration after judge-model upgrades, paired significance testing for deltas, and refresh of the golden set against real production failures. It distinguishes tools for the offline half (golden set, offline metrics) from the online half ( traces, sampled answers, thumbs and escalations as labels), and warns that an eval rig is only worth building when the blast radius (customers, money, compliance) justifies it.
Claims drawn from this source
- Measure retrieval and generation separately. Retrieval metrics ask did the right context come back (recall@k, context precision/recall); generation metrics ask whether the answer was grounded and relevant given that context. A faithfulness drop with stable retrieval is a generation problem; a recall drop with stable faithfulness is a retrieval problem.
- Calibrate the LLM judge before trusting it. Calibrate the judge against human labels on a sample before trusting it to grade thousands, and re-calibrate on judge-model upgrades. Judges carry biases of their own: position bias, verbosity bias, and self-preference documented by Zheng et al. (NeurIPS 2023).
- Golden sets rot and need maintenance. A fixed question set made once and never touched stops reflecting real traffic within months; the golden set is a maintained asset, refreshed on a schedule with real failures from production. The checklist wants 50-200 real questions with known-good answers and source chunks.
- Paired significance testing separates real deltas from noise. In the srb-legal-rag example, graph vs advanced RAG disagreed on only six questions (4 to 2, McNemar p = 0.69), and the agentic arm’s +0.13 over advanced (p = 0.039) does not survive multiple-comparison correction. What survives is the jump from naive to every engineered arm (p ⇐ 0.0003).
- Small cells lie and benchmarks saturate. The temporal tier has three questions and only one actually separates the arms (effective n of 1); the easy tier saturates at 19 or 20 out of 20 for every engineered arm, so all discrimination lives in medium and hard. High benchmark numbers can coexist with mediocre real-world reliability, per Goodhart’s law.
- Judge grading is itself graded. Answers scored by an LLM judge from one family and re-graded by a juror from another agreed at Krippendorff’s alpha = 0.764, below the usual 0.80 bar; most disagreement sat on the correct vs partially correct boundary (ordinal alpha = 0.842).
- Online instrumentation catches regressions the golden set misses. Log retrieval traces and answers, sample them, watch for drift (recall quietly sliding as the corpus grows), and capture user signals (thumbs, escalations, re-asks) as the cheapest labels. Continuous evaluation catches silent regressions that never throw errors.
- Match the eval to the blast radius. A throwaway internal prototype for five users does not need a maintained golden set, LLM-judge harness, and online instrumentation; the moment the system touches customers, money, or compliance, the cost of a silent regression dwarfs the cost of the harness.