In this article
Traditional software either returns the expected value or it doesn’t. AI applications are less predictable: the same question can produce different wording, and an answer can sound confident while being wrong. Evaluation is how you decide whether that behaviour is acceptable for the job.
How evaluation differs from ordinary testing
Ordinary software tests check deterministic behaviour: given this input, expect exactly that output. You still need those tests for the surrounding code. Model-output evaluation adds judgement about quality—is the answer correct, grounded in the right source, complete enough and appropriately cautious? It usually involves scoring many examples rather than checking a single case.
Frameworks such as NIST’s AI Risk Management Framework encourage organisations to measure and manage AI risks throughout a system’s life, not only at launch. NIST AI Risk Management Framework
Start with task-specific success criteria
Illustrative example
Imagine an internal knowledge assistant that answers employee questions using HR and IT policy documents. Useful criteria might be: answers must cite the policy they rely on; the assistant must say when the documents do not cover a question; and it must never reveal documents the employee is not permitted to see.
Write criteria like these before testing. They turn a vague goal—“give good answers”—into something reviewers can apply consistently.
Build representative test cases
Collect real questions where possible, with agreed reference answers. Include easy and hard cases, and deliberately poor inputs: typos, ambiguous phrasing, questions in mixed languages and requests outside the assistant’s scope. Add cases designed to provoke unsupported answers, such as asking about a policy that does not exist.
Check more than the answer
Tool failures: what happens when the document search times out or returns nothing? The assistant should say so rather than guess.
Latency and cost: measure response times and the cost per question under realistic load. An accurate answer that takes a minute may not fit the workflow.
Permissions: test with accounts at different access levels to confirm the assistant respects them.
Plan human review
Automated scoring helps at scale, but people should review samples—especially failures and borderline cases. Decide in advance which situations always need a human, such as questions involving legal or disciplinary matters, and design the interface so handing over is easy.
Evaluation does not end at launch. Real users will ask questions you never anticipated, documents will change and model providers will update their systems. Keep a growing set of test cases drawn from real usage, rerun it whenever the prompts, documents or model change, and compare results with the previous run so regressions are caught early rather than reported by frustrated users. Treat the evaluation set as a living asset that the team maintains alongside the code.
Record the results, the decisions you made and the known limitations. That record becomes the basis for monitoring once the application is live.
Sources & further reading
The knowledge-assistant scenario is illustrative; no benchmark results are claimed. References to NIST do not imply any partnership with or endorsement of GenAI99.



