HOW-TO GUIDE16 min read

LLM Evals in Production: Build Automated Test Suites

A practical guide to replacing vibe checks with repeatable tests, release gates and monitoring for live AI systems.

P
PADISO teamPublished 4 Nov 2026

LLM evals in production are repeatable checks that tell you whether an AI application still behaves acceptably as prompts, models, tools and data change. Build them as a layered system: deterministic checks for every run, task-specific evaluations in your build pipeline, and carefully sampled review of live traffic. Start with the failures that matter to your users, not a dashboard full of generic scores.

This guide walks through the decisions and implementation steps. If your application uses agents or workflow automation, PADISO's AI agents and automation service can help design the system and its operational guardrails. The goal here is not to make every answer predictable. It is to make important failures visible, measurable and harder to reintroduce.

What do LLM evals in production need to test?

An evaluation, or eval, is a test of an AI system against a defined expectation. It can check a simple rule, such as whether output is valid JSON, or a judgement, such as whether an answer is supported by a supplied document. Production evaluation means testing both the application before release and its behaviour on real traffic after release.

A useful eval starts with a specific risk or user task. “Is this answer good?” is too broad to test consistently. “Does the answer state the right invoice total, use only the supplied invoice, and return the required fields?” is much easier to inspect and improve.

Separate the system into things you can test independently:

  • Input handling: Did the application receive and validate the right user input?
  • Retrieval: Did it find the useful source material?
  • Generation: Is the answer relevant, accurate and appropriately limited?
  • Tool use: Did an agent select the right tool and send valid arguments?
  • Workflow outcome: Did the whole process complete the user’s task safely?
  • Operations: Were latency, errors, token use and failures within your service limits?

A single “quality score” tends to hide where a regression occurred. If an answer is wrong, you need to know whether the retrieval step supplied weak evidence, the prompt failed to use good evidence, or a tool returned stale data. Give each evaluation a clear purpose and an owner.

LLM evaluation is not a substitute for software tests, security controls or human review in high-consequence decisions. It adds a way to test probabilistic behaviour, meaning output that can vary even when the request appears similar. A production-grade setup combines ordinary code assertions with measured judgement.

What do you need before you build an eval pipeline?

Before you choose a framework or write a judge prompt, get the basic inputs in place. Without them, you will automate a vague quality opinion and create noisy release gates.

1. A defined task and a failure boundary

Write down what the application is meant to do, what it must not do, and which errors matter most. A support assistant might need to answer from approved product material, disclose when it lacks evidence and avoid claiming to have changed an account when it has not.

Classify failures by consequence. A misspelled heading is not the same as revealing another customer’s information or inventing a financial figure. This ranking helps you decide which checks must block a release and which can create a review task.

2. Representative examples

Collect examples from real use where you are permitted to do so. Include ordinary successful requests, confusing inputs, edge cases, known failures and cases where the correct behaviour is to ask a question or refuse. Remove or protect personal and confidential information under your organisation’s data-handling rules.

Do not assume that a large dataset is automatically a useful one. A smaller set with clear labels and a range of meaningful failure modes is often a better first release suite than a large pile of unreviewed traces. Record why each case belongs in the suite, and keep its expected outcome understandable to the people who maintain it.

3. A way to capture the full trace

A trace is the record of what happened during a request. For an agent, it should include the input, relevant context, model and prompt version, tool calls and their results, intermediate steps where appropriate, final output, timing and error details. A final answer alone may not explain whether a failure came from retrieval, tool use or generation.

Keep the record proportionate. Do not log secrets or sensitive user content just because a tracing system makes it easy. Decide what is stored, who can access it, how long it is retained and how it can be deleted. For an Australian organisation, check that these choices fit your privacy, security and contractual obligations.

4. A repeatable baseline

Run your current system against the examples and save the results. This becomes the baseline for comparison. Record the code version, prompt version, model identifier, configuration and dataset version alongside each run. Otherwise, a score change can be impossible to explain.

If you have no formal evals today, begin with an expert review of representative examples. A judge model can help scale a rubric later, but it cannot tell you what good means before your team has agreed on it. For practical advice on developing evals from real examples, see Hamel Husain’s evaluation material and Eugene Yan’s work on evaluation.

How do you build LLM evals in production step by step?

Step 1: Turn user expectations into observable criteria

Write a short evaluation specification for each important task. State the condition being checked, the evidence a reviewer should use, and the consequence of failure. Prefer criteria that can be answered consistently over broad qualities such as “high quality” or “smart”.

For example, a claims intake assistant might have criteria such as:

  • It extracts the policy number exactly as shown in the supplied document.
  • It does not infer a missing date.
  • It asks for clarification when a required field is absent.
  • It returns the agreed structure to the downstream system.
  • It does not tell the user a claim has been approved unless an authorised system confirms that state.

Each criterion should map to a test method. Exact extraction may be compared to a labelled value. Structure can be checked against a schema. Unsupported claims may need a rubric and human review during calibration. Avoid combining all criteria into a single pass or fail unless every part has the same risk and remedy.

Step 2: Create a curated test set

Select examples that exercise the criteria. Preserve the original input and the information available to the application at that point. Add the expected result, acceptable alternatives and reviewer notes. A test case should answer: what is being tested, what evidence is allowed, and what outcome counts as a pass?

Include both positive and negative cases. Positive cases test that the system can complete the task. Negative cases test that it knows when not to proceed, such as when evidence is missing, a tool fails or a request falls outside policy. Add a few deliberately awkward cases, including incomplete instructions and conflicting source material.

Keep test data versioned with the application or in a dataset store with change history. If a case changes, capture why. If a test fails, the team should be able to determine whether the system regressed or the expected behaviour was revised.

Do not put every unusual production trace into the permanent suite. First check whether it represents a meaningful, repeatable failure. If it does, turn it into a minimal test case that protects the behaviour. This keeps the suite useful instead of turning it into an ever-growing archive.

Step 3: Add deterministic checks first

Deterministic checks use ordinary code to verify a condition with a clear answer. They are fast, repeatable and easy to diagnose. Run them on every relevant test and, where suitable, on live requests.

Examples include:

  • Parse JSON and validate required fields and types.
  • Check that tool arguments match the tool’s input schema.
  • Verify that a requested action has an authorised confirmation step.
  • Compare extracted values with labelled values.
  • Check output length, required identifiers or allowed categories.
  • Detect forbidden patterns, such as a known secret format.
  • Record whether the request timed out or exceeded an operational limit.

A code check cannot reliably judge every natural-language answer. It can, however, catch many contract failures before you spend time or money asking a model to assess subtler properties. Treat schema validity and task success as different results. An answer can be valid JSON and still be false.

Avoid brittle checks that encode incidental wording. A test that requires one exact sentence will fail when the model uses a harmless alternative. Test the contract, not the phrasing, unless the phrase itself is a contractual requirement.

Step 4: Evaluate components separately

Test retrieval, tool selection and generation as distinct components where the architecture allows it. For retrieval-augmented generation, or RAG, the system finds documents and then uses them to answer. Measure whether relevant material was retrieved, whether the answer is supported by that material, and whether it responds to the question.

A retrieval failure and a generation failure require different fixes. If the right document never appears in context, changing the answer prompt may not help. If the context is sound but the answer invents a detail, inspect the prompt, model behaviour and evidence requirements.

For agents, do not grade only the final response. Inspect the trajectory, which means the sequence of decisions, tool calls and results. Check whether the agent selected an appropriate tool, supplied correct arguments, handled errors, maintained state and completed the intended task. A fluent final message can mask an unsuccessful or unsafe sequence of actions.

Use specialist evaluation libraries when they fit your workflow, but treat their metrics as methods to implement, not truth by default. Review the metric definition, test it on cases your team understands, and keep a path to inspect the underlying trace. A metric that cannot be explained to its users will be difficult to trust as a release gate.

Step 5: Decide when to use an LLM judge

An LLM judge is a model prompted to assess another model’s output against a rubric. It can help with qualities that are difficult to express as a simple assertion, such as whether an answer is grounded in a supplied passage or whether it omits an important step. It is not inherently objective, and it can make mistakes of its own.

Use a judge only when you can state the criterion, provide the evidence it should consider and check its verdict against human assessments. Prefer a focused binary question, such as “Does the answer make a factual claim that is not supported by the supplied material?” A broad rating scale may look precise while hiding disagreement about what each score means.

Build the rubric around observable evidence. Tell the judge what counts as a pass, what counts as a fail, and what to do when the case is ambiguous. Ask for a structured verdict and a short reason tied to the input or evidence. Do not ask the judge to reveal hidden reasoning or produce a long essay; the decision and supporting evidence are what your pipeline needs.

A prominent study of model-based judging documented position, verbosity and self-preference biases, and found that strong models could align with human preferences in its benchmark setting. Those results do not establish that a judge will be reliable for your task. See the MT-Bench and Chatbot Arena study. Test your own judge against examples labelled by people who understand the domain.

Step 6: Calibrate the judge with human review

Ask domain reviewers to label a fixed set of examples using the same rubric. Include clear passes, clear failures and difficult borderline cases. Compare the judge’s decisions with the reviewers’ decisions, then inspect disagreements rather than reporting only a single agreement score.

If multiple reviewers disagree with each other, the rubric is not ready to automate. Clarify the criterion, revise examples and repeat the exercise. If the judge disagrees with reviewers on important cases, improve the prompt or change the evaluation method. For a high-risk criterion, retain a human approval step until the evidence supports using automation as a gate.

Agreement statistics, such as Cohen’s kappa, can help account for agreement that might happen by chance. They do not replace review of the actual mistakes. Look at false passes, where a bad answer is accepted, and false failures, where a good answer is rejected. Their relative cost depends on the task. A false pass in a compliance workflow may be more serious than a false failure that sends a case to a person.

Keep a versioned calibration set that you do not continually tune against. If you use the same examples to rewrite the judge prompt and then claim success on those examples, you may only have taught the judge to fit that set. Add fresh cases and rerun calibration before making a judge responsible for a release decision.

Step 7: Put the suite into continuous integration

Run fast, deterministic checks on each pull request that could change system behaviour. Run the curated evaluation suite when prompts, retrieval configuration, models, tools or relevant application code change. If a check is expensive or slow, decide whether it belongs on every pull request, a scheduled run or a pre-release workflow.

Make the build result informative. A failed gate should show the test case, the criterion, the expected outcome, the actual output and the relevant trace. A red indicator without an explanation encourages developers to ignore it or rerun until it passes.

Set release thresholds from the risk and baseline for each criterion. Do not borrow a universal pass rate from another team. A drop in one high-consequence measure may matter more than a small improvement in a broad quality average. You can also use a non-blocking warning while the suite is new, then make a gate blocking after the team has reviewed its stability and failure patterns.

Pin the variables you can control during evaluation, including prompt, data, configuration and model version where available. Model providers may change behaviour behind a stable product name, so record the version information they expose and keep a periodic regression run. A deterministic test suite makes a release decision more dependable, but it cannot make a probabilistic service perfectly repeatable.

Step 8: Monitor production traffic asynchronously

Offline evaluation tests a known dataset before a change goes live. Online evaluation inspects real use after deployment. You need both. A clean offline run cannot cover every new request, changing user behaviour or source-data problem.

Run code-based checks on the live path where they are safe and cheap. For subjective assessment, use an asynchronous job so evaluation does not add delay to the user’s request. Sample traffic for routine quality review, and increase inspection of traces that deterministic checks flag as unusual. Sampling should be deliberate: record how traces are selected and ensure the sample covers relevant users, tasks and failure modes.

A sample is not a complete audit. Rare but serious failures may not appear often enough in a random slice. Add targeted monitoring for known risks, and use a human escalation path for high-consequence cases. Review the sample and the flagged traces together, because a filter can miss failures it was not designed to detect.

Track operational measures alongside quality measures. These can include latency, error rate, tool failure, model and retrieval versions, token consumption and queue delays. A quality dip may follow an application change, an upstream provider change, a data refresh or a new user pattern. The trace should give your team enough context to investigate without exposing unnecessary personal information.

Step 9: Turn incidents into better tests

When a user report or monitor identifies a failure, preserve a safe and minimal reproduction. Identify the failure category, confirm it with the relevant owner, and add a regression test if it is likely to recur or important enough to prevent. Then run the test against the proposed fix and the rest of the suite.

Do not simply adjust the judge until the incident passes. First decide what correct behaviour should be. A judge prompt that changes to accept one particular output may conceal a problem in the product requirement or source data.

Review eval results as a team. Ask which failures reached users, which checks caught them, which checks missed them and whether the release process responded appropriately. This turns evaluation from a scorekeeping exercise into an engineering feedback loop.

How should you choose release gates and production sampling?

A practical pipeline has three layers. Each has a different job, cost profile and failure mode.

Layer What it checks When to run it Typical response
Deterministic checks Schemas, required fields, exact values, tool contracts and operational limits On relevant test cases and selected live checks Fail fast, block or route for repair
Component evaluations Retrieval quality, grounding, relevance and task completion Pull requests, scheduled regression runs and pre-release Compare against baseline and inspect regressions
Model judge or human review Nuance, policy adherence, completeness and quality that needs interpretation Calibrated test suites and selected production traces Investigate, tune rubric or route to a person

A release gate should answer a decision, not merely display a metric. For each gate, document what it protects, how it is calculated, what threshold applies, who can override it and how overrides are recorded. Make sure the gate is sensitive to the failure you care about. A suite can have a strong average while failing on a small but important set of cases.

For production monitoring, combine random sampling with risk-based selection. Random samples help reveal failures your team did not anticipate. Risk-based selection focuses effort on anomalies such as malformed tool arguments or repeated retries. Keep those streams distinguishable in your reports; they answer different questions.

Set a budget before turning on a judge for live traffic. Estimate the number of traces, the amount of context sent for evaluation, how often each criterion runs and the likely cost per evaluation using the provider’s current pricing. Include retries and stored trace processing where relevant. Then cap or rate-limit evaluation, trim unnecessary context and use cheaper checks to filter cases before calling a judge. Do not rely on an old price table for a current budget.

What mistakes make eval pipelines unreliable?

Treating a judge score as ground truth

A judge is another model with its own preferences and failure patterns. Validate it against human labels, inspect disagreements and keep a human path for consequential decisions. The MT-Bench and Chatbot Arena research is useful background on judge biases, but your task-specific calibration is what matters operationally.

Testing only the final answer

A final answer can look correct even when the agent used an unauthorised tool or took an unsafe route. Evaluate the execution path and system state when tools or actions are involved. Decide which intermediate details are essential to capture and protect them as carefully as other logs.

Using one score for every kind of quality

Correctness, safety, tone and task completion are not interchangeable. Keep criteria separate enough to see what changed and give high-consequence checks their own release decisions. A blended score can be useful for trend reporting, but it should not hide a critical failure.

Curating only easy examples

A test set made of clean demonstrations tells you little about ambiguity, missing data or conflicting evidence. Add genuine edge cases and production failures, but label them carefully. Review the suite periodically so it reflects current user tasks rather than historical assumptions.

Letting evaluations slow every deployment

Not every check needs to run at every stage. Put quick assertions early, deeper component tests where they can inform development, and expensive or subjective review in scheduled or asynchronous workflows where appropriate. Keep the test report actionable so a failure helps the team fix the system instead of simply delaying work.

Ignoring privacy and retention

Traces can contain personal information, commercially sensitive details, prompts and tool outputs. Minimise what you collect, control access, define retention and use approved handling for data sent to a third-party evaluation provider. A useful eval pipeline is still subject to your organisation’s security and privacy controls.

A practical first-month rollout

You do not need a large platform project to begin. A staged rollout gives the team space to learn whether its tests are useful before they become release blockers.

First, define scope. Choose one production workflow and identify the user outcome, main failure modes and accountable owner. Agree what evidence is safe to use in test data.

Next, build the baseline. Collect representative cases, label the expected outcomes, add deterministic assertions and record the current system’s results. Review every case for clarity before adding it to the suite.

Then, integrate the checks. Run fast tests in continuous integration and make results visible in the pull request. Add component-level tests for retrieval or tool use. Start subjective evaluation in a non-blocking mode while domain reviewers compare judge decisions with their own.

Finally, monitor and improve. Capture appropriately minimised traces, run asynchronous evaluation on a controlled sample, and create an incident-to-test process. Once the team trusts a specific check, decide whether it should block release, trigger human review or remain a monitoring signal.

The measure of progress is not the number of dashboards or evaluation metrics. It is whether the team can detect a meaningful regression, understand its cause and make a safer release decision without relying on someone to manually inspect every answer.

Where PADISO fits

PADISO works with teams building AI agents and automation to connect evaluation design with the application architecture, delivery process and operational controls. Our AI agents and automation service focuses on putting these systems into production, while platform engineering can help where the testing pipeline depends on broader platform work.

Start by choosing one AI workflow and writing down its most costly failure. Then build a small set of tests around that failure before expanding the suite. If you want help assessing where to begin, take the PADISO AI readiness test.

WANT TO TALK THROUGH YOUR SITUATION?

Talk it through with us. Thirty minutes, no slides.

P
Written by the PADISO TeamSydney-based technology leaders who build what they advise on. Seven years of fractional CTO, architecture and AI work for enterprise, government and private equity.

Keep reading

All posts →

Let's talk.

Tell us what you are weighing up, whether it is a build, a roadmap or a deal. You will leave the call knowing your next step.

Book a 30-min callhi@padiso.co