Search

What are you looking for?

Search our services, use cases and practical insights.

Enter at least 2 characters

Popular starting points

Safe AI use

What are evals and how do you measure AI quality?

The quality of an AI solution is demonstrated not by an impressive demo, but by repeatable tests using real tasks, clear expectations and known consequences of failure.

The short answer

Evals are structured assessments in which an AI solution is run against representative test cases and scored using predefined criteria. They reveal how reliably it performs a specific task and where its limits lie.

In brief

  • Evals assess a specific application in its intended context, not only the underlying model.
  • Good test cases cover common tasks, difficult edge cases and relevant risks from real work.
  • Quality has several dimensions, including correctness, completeness, grounding, safety, latency and cost.
  • Evals are repeated before launch, after changes and throughout operation.

What does an eval actually test?

An eval combines a clearly defined task, suitable inputs, expected properties of the result and a reproducible scoring method. It does not ask whether a model is generally intelligent. It asks whether a specific solution performs well enough under defined conditions.

Where possible, the complete application should be tested: prompt, model, retrieved sources, permissions, tools, business rules and output format. A model may perform well on a public benchmark yet still be unsuitable for a particular company process.

  • Task success: Does the solution produce the result the process needs?
  • Domain quality: Are statements correct, complete and traceable?
  • Safety: Are prohibited content, actions and data access prevented?
  • Operations: Do latency, stability and cost remain within agreed limits?

What belongs in a useful test set?

The test set should reflect actual use. A collection of simple sample questions is insufficient if day-to-day work includes incomplete information, conflicting documents, rare exceptions or ambiguous language.

Start with anonymised or realistically simulated cases from the intended process. Add failures found during pilots and production as regression tests so that a resolved problem does not silently return after a change.

  • Frequent standard cases that represent most usage
  • Business-critical cases where an error would have a serious impact
  • Edge cases such as missing details, conflicting sources or unusual wording
  • Negative cases where the solution should refuse or ask for clarification
  • Adversarial and misuse cases, including manipulated documents or prohibited instructions

How are outputs scored?

The scoring method depends on the criterion. A structured field can be compared with an exact expected value. A domain-specific summary may require a rubric and review by subject-matter experts. Another language model can help score larger volumes, but it must first be calibrated against trusted human judgements.

A single overall score often hides important differences. A small set of quality dimensions with explicit thresholds and separate treatment of critical failures is more informative.

  • Rule-based checks for format, required fields, numbers or allowed values
  • Comparison with reference answers or approved source material
  • Domain review by people who understand the process
  • Model-assisted grading using a precise rubric
  • Manual review of every high-impact failure category

What does a completed eval scorecard look like?

The following scorecard is a simplified example for an internal knowledge assistant with 100 versioned test cases. Thresholds are set before the run. A critical exclusion criterion must not be offset by strong averages in other dimensions.

What does a completed eval scorecard look like?
CriterionThresholdExample resultDecision
Answer supported by an approved sourceAt least 95 of 100 cases97 of 100Pass
All required claims presentAt least 90 of 100 cases92 of 100Pass
Correct refusal without evidenceAt least 9 of 10 negative cases8 of 10Fail: improve retrieval and refusal logic
Critical false contract statement0 cases1 caseStop criterion: no release
Response time for 95% of requestsNo more than 8 seconds6.2 secondsPass
Variable cost per requestNo more than CHF 0.08CHF 0.05Pass

How do you build a reliable evaluation process?

Evals are most useful when they begin before model or vendor selection. The team translates expected value and possible failure consequences into testable criteria. Prompts, models and architecture options can then be compared under the same conditions.

  1. Step 1

    Define the task

    Describe the work being supported, the required result and who will use it.

  2. Step 2

    Define success

    Set measurable criteria, minimum thresholds and unacceptable failures.

  3. Step 3

    Collect cases

    Create a versioned test set covering standard, edge, risk and negative cases.

  4. Step 4

    Run and analyse

    Review failure types and affected user groups, not only aggregate scores.

  5. Step 5

    Protect changes

    Rerun the same tests before release and make regressions visible.

Why does quality assurance continue after launch?

Models, prompts, data sources and user behaviour change. A production solution should therefore combine fixed test sets with real operational signals such as expert corrections, refusals, abandoned tasks, latency, cost and reported incidents.

Production data does not replace a controlled eval. It helps uncover new cases and shows whether the test distribution still matches actual use. Sensitive content must be anonymised where appropriate and handled according to access and retention rules.

  • Version model, prompt and data changes
  • Turn newly discovered failures into repeatable regression tests
  • Analyse results by case type rather than only as one average
  • Assign clear ownership for review, release and incident response
Example from day-to-day business

Example: evaluating a knowledge assistant

A service team builds a test set from anonymised questions about contracts, deadlines and internal procedures. Each case records the approved evidence together with required and prohibited answer elements. The team measures grounding, domain completeness, correct refusal when evidence is missing and time to draft. The same suite runs before every model or prompt change, and failures found during the pilot are added as new cases.

What to remember

Define quality from the perspective of the actual work. A small, maintained test set containing real cases and explicit failure limits is more useful for a business decision than a general model benchmark.

Sources and further reading

These primary sources provide further detail on definitions, technical foundations or responsible use.

Content reviewed

Would you like to apply this to your situation?

Together, we clarify what makes sense for your process, data and systems – in plain language and without unnecessary complexity.

Discuss Your Project