Skip to content
TutorialIntermediate11 min read

How to Evaluate AI Output

Build a lightweight evaluation rubric and test set so you can tell whether a prompt, skill or workflow actually improved.

AIAI Skills Hub EditorialEditorial team Published Apr 24, 2026Updated May 27, 2026 Reviewed May 27, 2026 11 min read

Prerequisites

  • • A task you repeat
  • • At least five real inputs
  • • A way to record results

What you will learn

  • Create a rubric with observable criteria
  • Build a test set including edge and refusal cases
  • Compare prompt versions without fooling yourself

Why one good output is not evidence

AI outputs vary with the input, the model, the context and random sampling. A prompt that produced a great result once may fail on the next real case. Evaluation replaces the vibe check with a small, repeatable test.

Step 1: Define observable criteria

Bad criteria: “quality”, “engaging”, “accurate”.

Better criteria:

  • includes all required sections,
  • every number matches the source,
  • no unsupported claims,
  • follows the output schema,
  • refuses when information is missing,
  • stays under the word limit.

Each criterion should be something a reviewer can mark yes/no or score 1–5 with a reason.

Step 2: Build a test set

Collect at least five real inputs:

  1. a typical case,
  2. a messy case with missing fields,
  3. an edge case,
  4. an ambiguous case,
  5. a case where the correct answer is “I don't know” or “needs more information”.

Add one adversarial case if the task involves untrusted text: a document that contains instructions attempting to change the task.

Step 3: Run both versions on the same inputs

Keep the model, temperature and context constant. Change one variable at a time. Record the output and the score.

A simple table:

CasePrompt A accuracyPrompt A formatPrompt B accuracyPrompt B formatNotes

Do not compare a new prompt on easy cases with an old prompt on hard cases.

Step 4: Look at failures, not averages

An average score can hide a dangerous failure. A prompt that is 90% correct but invents an owner in the remaining 10% may be unusable for meeting actions.

Weight criteria by consequence. Security, data loss and fabricated facts should be pass/fail.

Step 5: Test the refusal behaviour

Ask a question the source cannot answer. If the model invents an answer, the prompt needs a stronger instruction and an example of refusal.

Step 6: Re-evaluate after changes

Models change. Prompts drift. Re-run the test set after a model update, a prompt edit or a workflow change. Store the results with the version.

A note on statistical significance

Five cases will not give you statistical confidence. They will catch obvious regressions and force you to define quality. For high-stakes use, expand the set and involve domain reviewers.

Exercises

Do these before moving on. Reading is not the same as being able to apply it.

Exercise 1

Build a five-case test set

Collect five real inputs, including one ambiguous case and one where the correct answer is unknown.

Exercise 2

Score two prompts

Run both versions on the same cases and record accuracy, format compliance and usefulness.

References

Finished this tutorial? Continue with a guided path.

Browse learning paths →

Related resources