Eval methods

5 concepts · 10 practice questions

Golden sets

A golden set is a curated group of inputs with trusted expected results, labelled or reviewed by people who know the domain. It is the reference everything else is checked against, including your judge models. Keep it small enough to maintain, stratified so every important slice is present, versioned so scores are comparable over time, and refreshed when the product or the documents change. A stale golden set measures a system that no longer exists.

golden = load("golden/v7.jsonl")          # versioned with the code

by_slice = Counter(c["slice"] for c in golden)
assert min(by_slice.values()) >= 15, "every slice needs enough cases"

stale = [c for c in golden if doc_changed_since(c["source"], c["labelled_at"])]
flag_for_relabel(stale)

Also covered

Calibrating a judge
Regression evals
Noise and sample size
Evaluating in production

Sign in to read the rest and take the 10-question test.

Sign in to continue