AI ENGINEERING / ARTICLE
How to evaluate an AI feature before calling it ready
A repeatable approach to defining expected behavior, reviewing failures, measuring tradeoffs, and reporting the limits of an AI feature.
01 / AI ENGINEERING
Ask what ready means for this workflow
Five good demos are enough to get a room excited. They are not enough to tell you what happens when someone uploads a messy file on a Tuesday afternoon.
The text may be badly extracted. Two paragraphs may disagree. A meeting note may leave a decision unresolved. The assistant can still produce a beautiful answer, and that is exactly when a missing fact becomes hard to notice.
Take a document summarizer. It should preserve the main facts and point back to the relevant passages. It should say when the file does not answer a question. If the file contains a sentence addressed to the assistant, that sentence remains source material; it does not become a new task. The file should go only where the product says it goes. Each expectation can fail separately, so "the summary looked good" is not a complete evaluation.
Before choosing a score, write down what a reader needs from this feature. "Useful summary" is hard to judge. "Names the three decisions in the notes, invents no fourth decision, and says the budget question is still open" can be checked. Invite someone who knows the work to challenge that definition. If a wrong answer could affect another person's access, money, or care, include people who understand those consequences. A benchmark number cannot make that product decision for you.
02 / AI ENGINEERING
Build a case set that reflects real work
A useful case set includes ordinary tasks, difficult but legitimate tasks, and attempts to cross a boundary. For a summarizer, ordinary cases might include a clear status update or a short policy. Difficult cases might include a long document, contradictory statements, tables, or a note that quotes an instruction. Boundary cases might include a hidden instruction telling the assistant to change its answer. Each case should carry the input, the user request, the expected key facts, and the behavior that would be unacceptable.
Avoid making every case an obvious attack. If the test set contains only malicious examples, a model that refuses everything can appear strong while being unusable. Include documents where the right answer is "the source does not say," and documents where a suspicious sentence should be summarized because it is relevant evidence. Also include a small number of out-of-scope requests to see whether the assistant communicates its limits clearly. The mix should reflect the workflow's purpose, not merely the evaluator's favorite failure mode.
Keep a development set and an evaluation set separate. Use development cases to improve prompts, retrieval, validation, or interface behavior. Freeze the evaluation cases before the final comparison. If a failure leads to a change, add it to regression testing and bring in fresh cases for the next evaluation. Otherwise, the team can gradually optimize for a familiar collection of examples and mistake that for broad reliability. Document where cases came from and what kinds of inputs they do not represent.
03 / AI ENGINEERING
Define the rubric before seeing answers
It is surprisingly easy to excuse a polished answer. If you know it came from the new model, you may call an omitted caveat "concise" instead of "wrong." Write the scoring rubric before looking at outputs. For a summary, check factual coverage, unsupported claims, uncertainty, the requested format, and whether the assistant obeyed text embedded in the source. Give reviewers examples of a material error and a harmless wording difference.
Some judgments can be checked by code. The response may need valid JSON, a maximum length, or citations that point to actual document segments. Other judgments need a person who can read the source and answer together. A syntactically valid response can still misstate the decision in a meeting note. A model-based judge may help sort cases for review, but its labels are another system output to validate. Do not let an automated score become the only evidence for a high-impact claim.
When possible, hide the configuration name from reviewers and have a second person inspect a sample, especially disputed cases. Record disagreements rather than silently forcing consensus. Disagreement can reveal an unclear rubric or an ambiguous task. If the expected answer cannot be stated without debate, a user may face the same ambiguity. Improving the product specification may be more valuable than tuning the model on that case.
04 / AI ENGINEERING
Compare changes against a stable baseline
If a team changes the prompt, model, retrieval pipeline, output filter, and document parser in one release, it may be impossible to tell which change helped or hurt. Start with a baseline and vary one major element at a time when feasible. Run the same frozen cases under comparable settings. Record the model identifier, configuration version, prompts, tool availability, generation settings, and date. For retrieval systems, keep the source corpus or its version. Reproducibility depends on these details.
Run cases multiple times when the feature can produce variable outputs. Report the number of scenarios separately from the number of responses. Twenty scenarios run three times produce sixty responses, not sixty independent scenarios. A case that fails one time in three can be important even when the overall success percentage looks good. Show case-level patterns, not just a single aggregate. Use counts and denominators, especially when the sample is small.
Compare usefulness and risk together. A stricter instruction might reduce prompt injection but also omit useful facts. A new model might improve fluency while increasing unsupported claims. A citation check might catch fabricated references but reject valid answers when the parser misses a passage. These tradeoffs belong in the release decision. A feature is not ready because one metric improved; it is ready when the team understands relevant failure modes, has set acceptable limits, and has a response plan for what remains.
05 / AI ENGINEERING
Turn failures into product decisions
A failure review should reconstruct the path from input to output. Was the source text extracted correctly? Did retrieval find the relevant passage? Did the prompt give the model conflicting instructions? Did a tool return stale data? Did a validator miss an unsupported claim? Did the interface make an uncertain answer appear definitive? The same bad sentence can have different causes, and those causes require different fixes.
Group failures by mechanism rather than by how embarrassing they look. Missing facts, invented facts, false refusals, source confusion, boundary crossing, and malformed output are useful categories. Save representative cases with expected behavior and the raw response. Remove or protect sensitive information before sharing them. Each category should lead to an action: change a parser, narrow a tool permission, improve a source display, revise a prompt, add a confirmation step, or decide that the workflow should stay out of scope.
Do not assume every failure needs another instruction in the prompt. Prompts can become long and contradictory. Sometimes the right fix is to simplify the task, provide better source material, validate a field in code, or give users a way to review a draft before it acts. Track whether the fix resolves the original case and whether it creates a new false alarm elsewhere. The purpose of evaluation is to improve the whole workflow, not merely to raise a number.
06 / AI ENGINEERING
Make the release decision explicit
A release review should include the intended use, evaluated case set, results with denominators, important unresolved failures, and safeguards around the feature. It should name who can use the feature, what data it handles, which actions it can take, and how users can correct a bad result. A limited pilot may be appropriate when the workflow is useful but the evidence is still narrow. A feature that can change records or send external messages may need stronger approval and monitoring than one that only drafts text.
Set clear stop conditions. If the system repeatedly invents citations, exposes data across users, or performs actions without authorization, the next step is not a more confident launch message. Pause or narrow the affected capability while the failure is investigated. Conversely, a minor formatting inconsistency may be acceptable with an easy user correction. Severity depends on the consequence of the error, not on whether the model's prose sounds polished.
NIST's AI Risk Management Framework describes measurement as part of an ongoing process that informs management of risk. Evaluation is not a ceremony performed once before release. Models, source documents, user behavior, and connected tools change. Keep a small regression set in the release pipeline, review new examples regularly, and monitor operational signals without storing more user data than needed. Revisit the release decision when the system changes in a way that affects its risk.
07 / AI ENGINEERING
Tell readers what you actually learned
If you tested fifteen legitimate documents, say how many produced useful summaries. If you tested fifteen injected documents, say how many attempts changed the assistant's behavior. Include denominators, case descriptions, and the rule used to score them. The numbers in this paragraph are placeholders, not results; a real report must come from actual runs. Readers should be able to see where the system struggled, not only the average that looks best in a slide.
Put the limits beside the result. A small synthetic set does not represent every real file. Testing in English tells you little about another language. A text-only prototype cannot prove that future tool permissions will be safe. Two reviewers may disagree about whether an answer was adequate. A model update can change the outcome. These are not footnotes to hide; they tell the next team what still needs testing.
The work repeats: define the task, collect cases, decide what success means, compare a baseline, inspect failures, and change the product. Then do it again when the model, sources, or workflow change. There should be room in the report for a sentence teams sometimes avoid: "We do not know yet." It tells readers where the evidence stops and where the next experiment should begin.
FURTHER READING