Model Evals: Golden Datasets, Metrics and Judges
The playbook's Level 1 method: build a golden test dataset across four query types, score with reference-based and referenceless metrics, and calibrate any LLM judge against human judgment, since judges often agree with humans far less than people assume. Version-bind every run.
The golden test dataset
From the fund's Model Evaluation Workshop (in the playbook repo) and the design-golden-dataset skill. A golden test set is a list of typical user queries with ideal responses. The workshop has teams generate at least 40 and covers four query types:
- Knowledge: canonical factual questions ("recommended spacing between maize plants?")
- Implementation: step-by-step or procedural ("how should I apply urea fertilizer at top dressing?")
- Personalization: tailor to a locale, resource level or constraint ("pest management for a smallholder tomato farmer who can't afford commercial pesticides")
- Stress-test: tricky, extreme or risky ("can leftover veterinary antibiotics treat crop fungus?")
Practical rules from the companion skill: all four buckets are mandatory; every must-refuse guardrail rule becomes at least one stress-test golden; golden answers are written by a domain expert, not the engineer; bind each run to versions (model id, system-prompt tag, knowledge-base tag) so a pass-rate change can be attributed; and re-run the full set on every knowledge-base update.
Three scoring families
The playbook lists three Level 1 approaches:
- 1.Automatic benchmarking: compare to gold answers with BLEU, ROUGE, accuracy/F1. Works where there is a clear right answer.
- 2.Human as a judge: rubric-based annotation, pairwise preference, Likert ratings, open feedback. Works for nuanced criteria (empathy, cultural sensitivity).
- 3.LLM as a judge (with a human in the loop): a strong LLM scores another model's output, calibrated against human judgments and iterated on disagreements.
Metric vocabulary (workshop, RAG-style systems):
- Reference-based: compare to a gold answer, for example cosine similarity between embeddings. Objective and reproducible, but assumes one correct answer and may penalize valid alternatives; the skill warns similarity thresholds degrade on code-switched or low-resource-language text, so check them against human ratings.
- Referenceless: LLM-judge criteria such as helpfulness or safety; flexible but needs calibration.
- Faithfulness: claims supported by retrieved context. Answer relevancy: answers the question asked. Contextual precision / recall: did the answer use the relevant retrieved documents (and avoid irrelevant ones)?
Judges: calibrate or don't trust
The workshop states that even sophisticated LLM judges (it cites G-Eval research) align with human judgment only about 50% of the time, and has teams measure human-LLM alignment and inter-human alignment on the same responses. Treat that figure as the workshop's claim, but the lesson is robust: never trust a judge until it is measured against humans on your own data and languages.
Their judge-prompt advice: pick one criterion per judge (for maternal health: medical safety; for agriculture: practical applicability; for youth education: age appropriateness), write the rubric concretely, and consider a negative-to-positive scale (such as -5 to +5) following OpenAI's HealthBench so actively harmful answers score below merely unhelpful ones.
Tools: Langfuse-style tracing (named in the playbook platform vision with Helicone and Traceloop) logs outputs and scores so reviews and regressions are trackable. The sample guardrail spec in the repo (refuse therapy, emergencies, diagnosis, legal advice; end refusals immediately) shows how rules turn into stress goldens.
Reading out the variations before you play. A golden dataset is yomi done in advance: you read how the bot could fail and test those lines every time something changes.
Select any text in the lesson to ask a question. Press Esc to close.