Skip to main content

Evaluate AI answers before a production release

AI readiness requires evidence that an application behaves acceptably on the questions, data and failure conditions it will actually encounter.

Test the policy boundary, not just an easy answer

Three returns-policy evaluation cases cover a standard-item request, custom-order approval and unspecified refund timing.
Inspect
Read the explicit policy and all three cases: request window, custom-order escalation and unknown timing.
Interpret
These illustrate a small subset of the 120-case program. The supplied context tests response behavior; it does not run the live retrieval path.
Act
Review assertions with the policy owner and keep case versions. Execute the full program as bounded groups, such as six runs of 20.
Product-interface recreation with synthetic Meridian data; reviewer notes are explanatory, not automated controls.Open full-size visual ↗

A high average score cannot compensate for an answer that exposes another customer's data or invents an authorization. Combine source-quality checks, retrieval tests, response evaluations and a named release owner.

This chapter uses Meridian Supply, a fictional distributor preparing a returns-and-order-status assistant. All case counts and thresholds below are illustrative operating choices, not customer results, default product policies or a certification. The assistant drafts explanations; it does not approve returns, change orders or authorize payments.

Three questions, three kinds of evidence​

Evidence laneQuestionMeridian exampleWhere the evidence comes from
Input readinessIs this record or document fit and permitted for the task?Country is available for an active account; the returns policy is currentSource controls, profiling and quality rules; source owner's approval
Retrieval behaviorDid the application retrieve the appropriate, authorized material?UK question retrieves the UK policy, not an obsolete US policy or another account's recordA separately instrumented application/retrieval test with document IDs and access context
Response behaviorGiven explicit context, does the model produce an acceptable answer?Explains the applicable return window and escalates an unsupported exceptionDataDios AI Evals plus human examination of cases and reasons

DataDios Evals can evaluate supplied prompts and dataset cases. A case field named retrievedContext does not automatically perform retrieval, replay a production chat, or reproduce a user's access permissions. Test those application behaviors separately. This distinction lets a team fix an outdated source, a retrieval bug or an answer defect in the correct place.

Build a case set around consequential decisions​

The product owner and domain expert first list what the assistant may answer, what requires escalation, and what it must never disclose or promise. Engineering adds degraded-service and malformed-input cases. Privacy and security reviewers contribute realistic disclosure and instruction-conflict cases using synthetic identifiers.

Meridian starts with six groups of 20 cases: standard policy questions; account/order interpretation; ambiguous or missing context; stale or conflicting policies; sensitive-data boundaries; and instruction-conflict attempts. Keep ordinary cases as well as difficult ones. A system that refuses every question can avoid disclosure while providing no useful service.

For every case, retain a stable case ID, question, explicit context/version, expected behavior, failure severity, reviewer and reason. Keep input data separate from the answer rubric. An expected field in a dataset does not automatically configure an exact-match assertion. Record the prompt and model configuration with the test set, so a later team can understand what changed.

A useful Meridian policy case is: “An unopened standard item was delivered five days ago. Can I request a return?” The supplied illustrative policy allows requests within seven days, so the draft should explain that rule without claiming a return is already authorized. A separate custom-order case must refer to support review. A refund-timing question whose answer is absent from the supplied policy should produce a bounded response or escalation, not an invented date.

Configure and inspect the evaluation​

  1. Open Data Quality → Add rule → AI eval rule. Start with a relevant template or Blank eval rule. In the inspected authoring path, eligible model connections are OpenAI Model and Ollama Model; a provider appearing elsewhere in the platform does not establish Eval support.
  2. Write the prompt with explicit case fields, such as {{policy}} and {{question}}. Supply a JSON array of case objects in the dataset. Missing referenced variables fail the affected case.
  3. Choose checks that match the contract. Use format checks for a required structure, a suitable judge rubric for faithfulness or relevance, and sensitive-data checks where appropriate. Do not treat a syntactically valid JSON answer as a correct business answer.
  4. Keep groups below the effective case limit. The default is 25 cases and the hard maximum is 50. Meridian's 120-case program therefore uses six separate 20-case runs, not one oversized request. Judge calls and response length affect execution time; reduce batch size when needed.
  5. In Results, inspect the selected run, failed cases, input, response and reason. Distinguish an assertion failure from a timeout, missing configuration or incomplete execution. Unknown cost or token values are not zero.

The Pass rate summary describes graded runs in the fetched history. Its Pass count card describes recorded passing cases in the latest run when that value is available; the selected execution’s case table is separate. Changing the selected execution should not be interpreted as changing the summary to that execution. A run can fail even when most cases pass. The complete evaluation reference explains assertion families, short-circuit behavior, truncation, judge limits and execution bounds.

A passing majority can still contain a release blocker

Two of three returns cases pass, but the custom-order approval fails and the run is failed.
Inspect
Case #1 grants custom-order approval the policy does not authorize. Pass count is 2 of 3; this run is Failed.
Interpret
Case counts and run pass rates have different denominators. An unsupported consequential promise can block the proposed scope.
Act
Inspect the failed response and judgment, repair the responsible input or instruction, then rerun the affected group and release suite.
Product recreation with synthetic data. REVIEWER NOTE and the interpretation panel are editorial explanations.Open full-size visual ↗

Turn results into an explicit release decision​

Meridian's proposed release record contains all six run IDs, case-set version, prompt/model settings, source versions, unresolved defects and a signed owner decision. The team requires no sensitive-data disclosure or unsupported authorization in its tested cases. It also reviews answer usefulness and escalation behavior by group rather than declaring success from one aggregate percentage.

Suppose 114 of 120 cases pass. That is 95%, but two disclosures and one invented authorization make the candidate unacceptable under this contract. A subsequent 117/120 result is not automatically acceptable either: examine the three failures, their severity and whether any cases or criteria changed. Do not improve the apparent score by quietly removing difficult cases.

A failed critical case means repair the responsible layer, rerun that case and its affected group, then run the agreed release suite. Preserve the failed evidence. An exception needs an owner, rationale, restricted scope and expiry. DataDios results support this process; they do not themselves implement a deployment block or rollback mechanism. The application's release system and accountable owner must enforce those decisions.

The broader practice is consistent with NIST's emphasis on evaluating AI in its deployment context across its lifecycle. NIST's framework is voluntary guidance, not a product endorsement or a claim that this workflow achieves compliance. NIST Generative AI Profile.

Keep input, retrieval and response evidence distinct

Three evidence lanes join at a human release decision, with 120 cases organized as six twenty-case runs.
Inspect
Input readiness, retrieval behavior and response evaluation answer different questions.
Interpret
Passing an answer test does not establish that production retrieved the authorized, current policy.
Act
Retain source/context versions and run IDs, investigate failures by layer, and have the named owner decide the release.
Illustrative operating model, not a DataDios deployment gate.Open full-size visual ↗

Diagnose the failure before changing the model​

SymptomFirst investigationOwner and next action
Correct policy was never suppliedRetrieval scope, source version and missing fieldsApplication/data owner repairs the input path
Correct context, unsupported answerPrompt, response, rubric and model behaviorAI engineer changes one variable and reruns
Judge fails an acceptable answerRubric ambiguity and human reference examplesDomain expert revises criteria with recorded rationale
PII check passes a known leakEntity coverage, language and detection thresholdSecurity owner adds representative cases; upstream controls remain necessary
Several runs time outCase count, model latency and number of judge callsEngineer reduces bounded groups and preserves incomplete-run status

A small team can begin with one owner and a compact high-risk case set. An enterprise should keep domain-specific sets, independent reviewers and versioned acceptance records. Neither should confuse the number of tests with coverage of the actual risk.

Questions teams ask before release​

What is the difference between data quality and AI evaluation?​

Data quality tests the inputs: completeness, validity, consistency and task-specific business rules. AI evaluation tests model behavior under supplied conditions. A correct response on one prompt does not certify the underlying dataset, and a clean dataset does not guarantee a faithful answer. Keep the evidence and owners connected but distinct.

Can DataDios automatically evaluate our whole RAG application?​

The documented Eval workflow evaluates explicit prompts and cases. It does not automatically invoke a Knowledge Base retrieval pipeline or replay application sessions. Capture retrieval outputs and access context through your application tests; supply representative context to Evals, and retain separate evidence that retrieval itself behaved correctly.

Is a 95% pass rate enough for production?​

Not by itself. Define the denominator, case mix and severity rules first. One unauthorized disclosure may outweigh many ordinary passes. Review per-group performance, incomplete runs and the business consequences of failures, then have the release owner apply the agreed acceptance policy.

Does a passing PII-leak assertion prove the answer is safe?​

No. Detection has coverage limits and can miss entities or flag harmless text. Test known positive and negative examples. Minimize and authorize data before retrieval and model submission; use output checks as additional evidence, not as a replacement for access controls.

When should we rerun evaluations?​

Rerun the affected groups after a prompt, model, policy, source mapping, retrieval configuration or access-scope change. Use the agreed full suite before the release decision. Periodic review should also incorporate actual incidents and new question patterns, with case-set changes versioned rather than mixed into an old baseline.

How do we prevent the judge from becoming the only authority?​

Maintain human-reviewed examples and inspect disagreements. Named judge assertions use a model to grade a model response; their verdict is evidence, not business policy. Ask domain reviewers to examine consequential failures and samples of passes, especially when the rubric or model changes.

Continue with production observability, token and cost management, and the rollout decision.

Review an AI readiness evaluation plan