Lesson 04
Free for every learner
10 min read

AirborneOps Learning Labs · LLMs for IT professionals

Output evaluation

Replace “it sounds right” with a repeatable evaluation set, explicit criteria, source checks, and a safe release decision.

Learning objective

Build a small evaluation plan that tests quality, safety, privacy, and failure behavior on representative IT cases.

Define what a good answer must do

Start with the user task and the cost of an error. A ticket classifier may need to choose a supported category and abstain when evidence is missing. A change summary may need accurate facts, source references, and explicit unknowns. Turn those expectations into criteria before comparing outputs.

Build representative test cases from approved or synthetic examples. Include common cases, ambiguous cases, missing evidence, outdated sources, prompt-injection text, and requests containing data the system should not expose. Keep a held-out set that was not used to tune the prompt or training data.

Score claims against the source

Measure criteria that match the task: factual support, completeness, correct abstention, format validity, and policy compliance. For answers grounded in sources, check whether citations point to the passage that actually supports the claim. An automated grader can help triage; it is another fallible model and should not be the only judge for consequential outputs.

Review failures by category rather than hiding them in one average. A high pass rate can conceal a rare but severe disclosure or unauthorized-action failure. Compare changes against the same cases and criteria, document test versions, and define a human review threshold before deployment.

Make evaluation a release and monitoring loop

Test the exact model, prompt, retrieval settings, and tools that will ship. Log version identifiers and minimum evidence needed to reproduce a result, while avoiding storage of sensitive prompt content unless policy explicitly permits it. Retest after model, prompt, source, or tool changes and sample real production behavior with approved privacy safeguards.

A passing evaluation is evidence about the tested cases, not proof that all future responses are correct. Keep a human accountable for decisions whose impact exceeds the tested and authorized scope.

Worked example

Review the request and response

SAMPLE task: classify an approved support request as “access,” “network,” or “unknown,” and explain the supporting phrase.

Sample prompt

Return one supported label and quote the shortest phrase that supports it. If the request does not contain enough evidence, return “unknown.”

Possible response

Label: access. Evidence: “my account is locked after the password reset.”

What to verify

A reviewer checks the quote against the test record and confirms that “access” is in the allowed label set. A separate ambiguous case should correctly produce “unknown.”

Practice

Exercise

Write five synthetic test cases for an AI incident-summary assistant: a routine report, an ambiguous timeline, a missing source, an injection attempt, and a request to expose a secret. Define one pass condition and one release-blocking failure for each.

Review guide

The test set includes benign and adversarial cases, checks claims against source evidence, tests refusal or abstention, and treats any secret disclosure or unauthorized action as a release blocker rather than averaging it away.

Knowledge check with feedback

Check your understanding

A model-graded evaluation reports 99% quality on one prompt. Is that enough evidence to release the feature?

Answer: No.

One prompt and one model grader do not establish performance across realistic or adversarial cases. Use representative and held-out data, source-based checks, failure categories, privacy and action-safety tests, and human review appropriate to the impact.

Take this to your next review

Practical checklist

  • Define task-specific quality and safety criteria before tuning.
  • Use representative, ambiguous, missing-evidence, sensitive-data, and injection cases.
  • Keep held-out cases and compare the same model, prompt, and data versions.
  • Check grounded claims against original sources and validate output schemas.
  • Treat severe disclosure or unauthorized-action failures as blockers, even when the average score is high.
  • Set release thresholds, human review, monitoring, and retest triggers.

References for further reading