Skip to content
Giminger ConsultingDE

Build a small evaluation set with error categories

Key takeaway

A test set with realistic tasks reveals whether a change introduces more errors.

Lessons in this path
  1. Separate one person's bottleneck from team workload
  2. Build a small evaluation set with error categories
  3. Compare cost per accepted result
  4. Make the weekly pilot decision

How it works

Collect typical, missing and conflicting inputs. Define expected output and serious errors before comparison. Store model release, examples and scoring criteria together.

Worked example

A classifier can return a valid field containing the wrong category. Score syntax and meaning separately.

How do you build an evaluation set in one afternoon?

An evaluation set is a fixed collection of inputs with expected results against which you measure every change to prompt, model or data source. Without it, teams judge AI by gut feeling and the last three experiences. For a start-up, a spreadsheet is enough to begin with.

  1. Collect 20 to 50 real cases from the process, anonymised or synthetically recreated.
  2. Mix deliberately: about two thirds typical cases, the rest edge cases, incomplete and contradictory inputs.
  3. Write down the expected result or the criteria for an acceptable result for each case before trying any model.
  4. Define error classes and their severity, see the table.
  5. Have two people score independently and resolve differences. That is usually where criteria are unclear.
  6. Store evaluation set, prompt, model name, date and result together.

Which error classes should you distinguish?

A single accuracy figure hides what actually happens. A system with few but critical errors is worse than one with many harmless ones. Assign every error to a class.

Example error classes
ClassDescriptionSeverity
Format errorOutput cannot be processedMedium, automatically detectable
Wrong contentCategory, value or statement wrongHigh
Invented statementNot backed by a sourceCritical in customer contact
IncompleteImportant point missingMedium
Tone or styleCorrect but wrong toneLow
Missing escalationCase should have gone to a personCritical

Decide in advance which error classes are knock-out criteria. A model with a better overall score but more critical errors loses.

Going deeper: automate scoring without fooling yourself

Format errors and exact categories can be checked with code. For free text, many teams use a second model as a grader (LLM-as-a-judge). That saves time but brings its own biases: grader models often prefer longer answers or answers in their own style. Calibrate the automated grader against a sample scored by people, and check regularly that both still agree.

Tools such as promptfoo, OpenAI Evals, or the evaluation features of LangSmith or Langfuse help with repetition. What matters remains the content of the set. Add every real error from operations so that it grows with the product, and hold back a portion you never tune prompts on. Otherwise the prompt adapts to the test instead of to reality.

Checklist: is the evaluation set ready?

An evaluation set is useful when anyone on the team can rerun it and interpret the results the same way. Check these points before starting the first model comparison.

  • Typical, edge and critical cases are represented.
  • Expected results were defined before the first model test.
  • Error classes and knock-out criteria are defined in writing.
  • The data contains no unaltered personal customer data.
  • Prompt, model, date and result of every run are stored.

Example: ticket classification with two variants

Example (fictional): a start-up wants to sort support tickets automatically into six categories. The team builds an evaluation set of 40 simulated tickets, including eight mixed cases and four incident reports. Two people set expected categories and disagree on five cases. Result: the definition of “billing” is sharpened.

Variant A gets almost all typical cases right but misses two of the four incident reports. Variant B is slightly weaker overall but escalates every incident. Because “missing escalation” was defined as critical, B wins. The two missed incident reports are kept as permanent test cases.

Common mistakes

  • Defining expected results only after testing the model. You then judge the model by its own answers.
  • Collecting only easy cases because they are quicker to find.
  • Not recording model version and prompt. Results are then not reproducible.
  • Copying real customer data unchanged into the evaluation set.

Frequently asked questions

How large must an evaluation set be?

For first comparisons, a few dozen well-chosen cases are often enough. Fine differences between similar variants need more. Quality and coverage count more than the number.

When should we run the set?

With every change to prompt, model, provider or data source, and when the provider updates a model. Automated, it usually takes only minutes.

How does this relate to the EU AI Act?

Documented tests help demonstrate diligence and train staff in working with AI (AI literacy, Art. 4). Specific obligations depend on the use case; this is not legal advice.

Try it yourself

Create ten synthetic cases and ask two teammates to agree on expected results.

Check your result

The team can rerun and explain the evaluation.

Official documentation and sources

Practical guides and references