60.1 Why Automated Evaluation Alone Is Not Enough
- LLM-as-judge carries systematic biases (verbosity preference, self-preference, agreement with confident-sounding but wrong answers).
- Nuanced quality dimensions — tone, cultural sensitivity, brand voice, genuinely novel edge cases — require human judgment that automated metrics can’t yet approximate reliably.
- Human evaluation is also what builds and maintains stakeholder trust in the system; a dashboard of automated scores alone rarely satisfies a governance board or a regulator.
60.2 Human Evaluation Workflow
Random sample (5-10% of production queries, stratified by category/risk)
│
▼
Rating Interface
┌─────────────────────────────────────┐
│ Question: "What is the refund policy?"│
│ AI Answer: "Our refund policy..." │
│ Source Docs: [doc1.pdf, page 5] │
│ │
│ Rate: │
│ Accuracy: ⭐⭐⭐⭐⭐ │
│ Helpfulness: ⭐⭐⭐⭐ │
│ Citations: ⭐⭐⭐⭐⭐ │
│ │
│ [ ] Hallucination detected │
│ [ ] Missing important information │
│ [ ] Incorrect citation │
│ │
│ Notes: ________________________ │
└─────────────────────────────────────┘
│
▼
Aggregate metrics + identify patterns
│
▼
Feed back into prompt/retrieval/system improvements (Section 63)
60.3 Sampling Strategy
Random sampling alone under-covers rare-but-high-risk categories. A well-designed human review sample stratifies by:
- Query category (from the golden dataset taxonomy — Section 58) to ensure adversarial/unanswerable cases get proportionally more human attention than their raw frequency would suggest.
- Confidence score — deliberately over-sample low-confidence model outputs, since that’s where errors concentrate.
- User segment/risk tier — e.g., new users, high-value accounts, regulated-topic queries.
- Novelty — queries dissimilar to anything in the golden dataset, since these are the least-tested territory.
60.4 Inter-Annotator Agreement
When multiple humans evaluate the same output, disagreement is itself diagnostic — it usually means the rubric is ambiguous, not that the raters are careless.
| Statistic | Use Case | Target |
|---|---|---|
| Cohen’s Kappa | Agreement between exactly 2 raters | >0.7 |
| Krippendorff’s Alpha | Agreement among 3+ raters, handles missing data | >0.67 |
| Fleiss’ Kappa | Agreement among a fixed group of 3+ raters | >0.7 |
from sklearn.metrics import cohen_kappa_score
rater_1_scores = [5, 4, 5, 3, 5, 2, 4]
rater_2_scores = [5, 4, 4, 3, 5, 3, 4]
kappa = cohen_kappa_score(rater_1_scores, rater_2_scores, weights="linear")
# kappa > 0.7 -> rubric is well-defined, raters interpret it consistently
# kappa < 0.5 -> rubric ambiguity; revise scoring criteria and re-calibrate raters
Low agreement → action, not just a number to report: revise the rubric with more concrete examples/anchors for each score level, run a calibration session where raters score a shared batch together and discuss disagreements, and re-measure kappa on a fresh batch before trusting the pipeline’s aggregate scores.
60.5 Rater Calibration Process
1. Draft rubric with explicit anchor examples for each score level
│
▼
2. Calibration session: all raters independently score the same 20 examples
│
▼
3. Compute inter-annotator agreement (Kappa/Alpha)
│
┌───┴───┐
Low High
│ │
▼ ▼
Discuss Proceed to
disagree- production
ments, scoring
refine
rubric,
repeat
Interview Q&A — Section 60
Q1: Two human raters disagree significantly on the same set of AI outputs (Cohen’s Kappa = 0.4). What do you do? A: Low kappa signals rubric ambiguity more often than rater incompetence, so I wouldn’t discard the raters — I’d pull the specific examples with the largest disagreement and have both raters explain their reasoning; the pattern usually reveals an undefined edge case (e.g., “does a technically-correct-but-unhelpful answer count as high accuracy?”). I’d revise the rubric with concrete anchor examples for each score level covering that ambiguity, run a fresh calibration round on a new batch, and only trust the pipeline’s aggregate human scores once kappa clears ~0.7 on the recalibrated rubric. I’d also check whether disagreement clusters by query category — if it’s concentrated in one category (e.g., only on ambiguous/multi-hop queries), the rubric gap may be category-specific rather than global.
Q2: How do you design a human review sampling strategy that catches high-risk failures without reviewing 100% of production traffic? A: Pure random sampling under-covers rare high-risk cases, so I stratify: baseline random sample (5-10%) for general quality tracking, plus deliberate over-sampling of low-model-confidence outputs (where errors concentrate), adversarial/unanswerable-category queries from the golden taxonomy, and queries flagged by automated safety/hallucination checks even if the automated check itself isn’t fully trusted yet. This concentrates limited human reviewer capacity on the highest-value review targets rather than spreading it thin uniformly across mostly-fine traffic, while still keeping a random baseline sample to catch failure modes nobody anticipated.