How to build an LLM evaluation dataset for a specialist domain
For companies4 min read

To test a model on legal, medical, financial or engineering work, build a set from your own users' tasks, answered and graded by people who do that work. Public benchmarks tell you about general ability. Only your own set tells you whether the product is safe to ship.
Start from real tasks
Collect 200 to 500 real requests from logs, support tickets, interviews or a pilot, after removing personal data. If you have no users yet, ask five practitioners to each write ten tasks they did last week. Cover the full range: common, rare, vague and adversarial.
Sort them into task types and write a count for each. The count tells you how much each type will weigh in the final score, so choose it on purpose.
Write the reference with experts
- An expert writes the reference answer with a short rationale and the sources used.
- A second expert checks it independently and marks anything they would change.
- Disagreements go to a senior reviewer, and the ruling is recorded.
- Drop items where experts cannot agree and the question is genuinely ambiguous, or turn them into a separate set that tests whether the model admits uncertainty.
Pick the scoring method per task type
| Task type | Scoring | Notes |
|---|---|---|
| Short factual answers | Exact or normalised match | Cheap and repeatable |
| Calculations and code | Run a checker | Best case: a program scores it |
| Free-text advice | Expert rubric | Slow, expensive, reliable when rubric is tight |
| Summaries and rewrites | Pairwise comparison | People compare better than they score |
| Refusal and safety | Labelled expected behaviour | Include cases where refusing is wrong |
An LLM judge can help with the free-text rows. The MT-Bench paper reports that strong judges reached over 80 percent agreement with human preferences and lists position, verbosity and self-enhancement bias among the known weaknesses. Check any judge against your experts on a sample before you rely on it.
Source: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena(opens in a new tab)
A record that carries what you need later
{ "id": "eval-0087", "task_type": "contract_review", "prompt": "...", "reference": "...", "rubric": ["identifies the notice period", "flags the auto-renewal"], "difficulty": "hard", "expert_agreement": "full", "added": "2026-10-12", "version": 2}Split it to catch leaks and overfitting
- Dev set: the team looks at failures here and tunes.
- Held-out set: scored rarely, never inspected item by item.
- Hidden slice: written by a different team, used for release decisions only.
If the team reads every failure on the set they report on, they start fixing the test rather than the model. A held-out slice stops that.
Size and noise
With a small set, scores move by a few points from noise alone. Run each model several times, report the spread and decide in advance what difference counts. If your set has 100 items, one item is one point, so do not call a two-point change a win.
Keep it fresh
- Retire items every model gets right.
- Add every production failure you meet as a new item.
- Re-check old references when the underlying facts change, such as a law, a guideline or a version.
- Scan training data for copies of your evaluation prompts.
What to report
- Score per task type, not just one overall number.
- The failure categories and a few example items per category.
- Expert agreement for the reference answers.
- The set version and the date.
A starter plan
- Week 1: collect 300 candidate prompts and sort them by task type.
- Week 2: experts write references and rubrics for a first 100.
- Week 3: second-expert review, agreement check, rulings on disputes.
- Week 4: run two or three existing models on the set and read the failures.
- Then extend the set to the task types where the first 100 showed the biggest differences.
Running real models on the first 100 items matters because it shows whether the set separates good from poor. If every model scores 95 percent, the set is too easy. If every model scores 10 percent, the references or the prompts may be wrong.
Document what the set does not cover
End the set's documentation with a short list of what it leaves out: languages, user groups, document types or task types that are missing. Anyone reading a score should know what it says nothing about. When a gap matters, add it to the next version. This habit also protects you from over-claiming in reports to customers or funders.
Experts on Curatrain write reference answers with rubrics, which is the hardest part of an evaluation set to staff. You approve the shortlist yourself, so you can ask for people with the exact specialty your product needs.