mediumAI Engineering

How do you build a golden dataset for evaluating an LLM feature?

1.1k views
01

Understand the problem

Sourcing, labelling and maintaining the test set your whole quality process hangs on.

golden-datasetevalslabellingquality
02

Attempt it yourself

Sketch your approach before reading the solution — that's what interviews test.

Stuck? AI Nudge Available

Get a conceptual hint to guide your logic without spoiling the final implementation.

03

Study the solution

The solution is waiting

Give it an honest attempt first — then compare your thinking with the full walkthrough.

04

Read the code

A golden case with mechanical criteria
// golden/support.jsonl — one JSON per line
{
  "id": "case-0142",
  "source": "prod-2026-06-18/thumbs-down",
  "input": "hey i got charged twice this month?? fix asap",
  "tags": ["billing", "duplicate-charge", "angry-tone"],
  "criteria": {
    "must_route": "billing_team",
    "must_include": ["duplicate charge acknowledged", "refund timeline"],
    "must_not": ["asking user to re-explain", "policy quote without action"],
    "tone": "empathetic, no corporate boilerplate"
  },
  "labelers": ["arv", "nk"], "agreement": "adjudicated-v2"
}
05

Join the discussion

Discussion (0)

Sign in to join the discussion.

No responses yet. Be the first to share what you think.