Meet us at AWS re:Invent and learn to automate your releases - Booth 1645 — Learn more

Skip to:
BlogRuntime Control
Online evals with LLM-as-a-judge: When to act on the scores

Nov 17, 2026

Online evals with LLM-as-a-judge: When to act on the scores

LLM-as-a-judge scores need human validation before they drive rollouts. Learn how to test judge reliability and act on online eval scores with confidence.

Kelvin Yap
Senior Product Marketing Manager

Key takeaways

  • Validate an LLM-as-a-judge against human-reviewed examples before its scores trigger rollouts or automatic rollbacks.
  • Online evals score sampled production responses asynchronously, so they don’t block application responses but cannot block a bad answer before delivery.
  • AgentControl records judge scores as metrics, and for completion-mode configs, experiments can compare them and guarded rollouts can use them to pause or revert a change.
  • Decision models such as Jev may lower evaluation cost, but consistency is not correctness: test them against the same human-reviewed examples.

When teams build AI systems, they're orchestrating prompts, parameters, and models that must work together. Each change — a prompt tweak, model update, or new routing rule — can subtly shift how an AI system behaves when it meets real users. The goal isn’t always to discover a single "right" answer. It’s to find the best solution for the moment: accurate enough, grounded in context, and delivered in a natural tone.

That nuance makes the evaluation of AI systems more challenging than traditional software testing. Unit tests and static datasets help you validate changes before release, but live traffic introduces inputs those tests may not have accounted for. The resulting quality spans accuracy, tone, safety, and completeness, and continues to shift as inputs, models, and user expectations evolve.

Online evals measure quality on production responses, so you can compare variants, monitor rollouts, and change how your AI behaves at runtime when quality slips.

With AgentControl in LaunchDarkly, you can manage and roll out changes to the models and prompts in your AI application. A config holds variations — different combinations of model settings and prompt content — that you can compare in experiments.

Before using judge scores to compare configurations or guide guarded rollouts, validate the judge against human-reviewed examples tied to your team’s quality criteria.

Measuring quality as it happens

LLM-as-a-judge fills the gap latency and error rates leave: it uses a language model to score whether answers stay on topic and reflect the supplied context. Latency and error rates can show how an application performs but don’t indicate whether its answers stay on topic or reflect the supplied context. Online evals help with those types of quality assessments.

LLM-as-a-judge uses a language model to assess another model's output against evaluation criteria. You give the judge the input, response, and any reference material it needs, along with instructions for scoring. The judge can then grade an individual response or compare alternatives. And the judge’s decisions can be used on saved examples before release or on responses from live traffic.

Requirements, such as whether necessary fields are present or whether an output matches an expected value, can be handled by code-based checks. If your criteria require interpreting meaning, such as whether an answer faithfully applies a policy, a model judge can help. If human reviewers disagree about what a policy allows, resolve that question before writing the judge's instructions.

AgentControl includes built-in judges for accuracy, relevance, and toxicity. You can also define custom judges for criteria such as support-policy compliance. The built-in defaults reflect the selected model's interpretation of each criterion, so your team's evaluation instructions should define what constitutes an acceptable answer.

With online evaluations, attached judges run asynchronously on sampled responses and record scores as metrics. Sampling lets you balance evaluation costs against how much production behavior you observe.

For completion-mode configs, you can compare accuracy and relevance across variants in an experiment’s results, or use those metrics to pause or revert a guarded rollout when quality degrades.

Working with LLM-as-a-judge

Working with an LLM judge means giving it one focused criterion, the inputs it needs to apply it, and a separate judge for each other quality you score. Consider a customer support assistant built with AgentControl. Its responses need to answer the user's question, use an appropriate tone, and stay grounded in your knowledge base. The response quality depends on your prompt design, model selection, tools, skills, and the context you provide. Even small changes to these categories can affect how helpful or accurate the answers appear to users.

AgentControl scores sampled responses in the background. For this assistant, one evaluation question might be, "Does the answer accurately reflect the supplied support policy?" Give the judge the customer's question, the assistant's answer, and the relevant policy material. Evaluate tone separately: a friendly answer that promises something the policy excludes should fail the policy check, even if it earns a strong tone score.

Before using production examples, confirm which services will receive the question, answer, and policy material. Supply only the context approved for that evaluator and needed for the criterion.

Validate the judge against human-reviewed examples

Before you use judge scores to trigger a production change, compare the judge's decisions with a human reviewer's assessment of examples covering common request types and known failure modes.

For the support assistant, include correct answers, polished answers that contradict the policy, and ambiguous answers that need clarification. Have the reviewer apply the same criteria you gave the judge.

Examine the disagreements individually. A false pass will make an incorrect policy answer look acceptable. Meanwhile, a false failure marks a correct answer as wrong, which can make a good configuration appear worse than it is.

Decide which errors are acceptable before running the comparison; your team might tolerate occasional disagreements about friendliness, for instance. If the judge approves promises the policy forbids, it’s best to keep rollout decisions under human review while you work on improving the judge. Before allowing judge scores to trigger automatic rollbacks, test the judge against human-reviewed examples that weren’t used during tuning.

Repeat borderline cases to determine whether the judgments hold steady. Research on LLM judges identifies position and verbosity biases, so a longer answer or its place in a comparison can influence the result. When the judge compares two answers, reverse the answer order and check whether the preference changes. Rerun these examples when you change the judge model or rubric, so you can distinguish a scoring change from a drop in your assistant's performance quality.

Test whether a decision model like Jev can lower evaluation cost

A decision model like Jev can lower evaluation cost, but only if it matches your existing judge on human-reviewed examples for a focused criterion. Evaluation cost limits how much production traffic you can score. If a cheaper evaluator holds up on a focused criterion, such as whether a response leaks personal information, you can score a larger share of traffic for that criterion. Decision models, which return structured answers instead of generated text, are one way to test that trade-off.

Jev, from TypeSafe, evaluates supplied context against typed questions. It can choose an option, assign a score, or return a yes/no probability without generating a written explanation. You can try it through the TypeSafe API or in LangSmith evals for tasks such as checking for PII leakage and classifying user intent.

In a small LangChain experiment, Jev scored five fixed weather-agent responses 100 times each. It was faster, cheaper, and more consistent than the three LLM judges it was compared with. Those 500 judgments are repeated evaluations of five answers, so they measure consistency on a small set, not accuracy across varied tasks.

Consistency also isn’t correctness. In a September preprint, decision models, Jev among them, made largely the same errors as the flash-tier LLM judges they were compared with. Sending uncertain cases on to an LLM judge mainly saved cost and added little accuracy. A second model doesn’t replace checking either one against human-reviewed examples.

To find out whether Jev fits your application, run it on saved examples through the TypeSafe API or LangSmith. Test one criterion against the same human-reviewed examples you used for your existing judge. Compare missed errors and false alarms first, then repeated-run consistency, latency, and cost. A cheaper evaluation is useful only if it preserves the quality signal you need. If it does, its lower cost per check could let you score more of your traffic for that criterion. Keep an LLM judge where you need a written explanation alongside its verdict.

Building adaptive guardrails

Judge scores become a guardrail when you use them as a guarded rollout metric for a completion-mode config, so LaunchDarkly can pause or revert a change when quality regresses. For the support assistant example, you could instruct the judge to give an answer a score of 1 if it follows the supplied policy and 0 if it violates it. As the judge scores sampled responses, AgentControl records those results as a metric and displays average scores over time. Use the same judge and rubric for the current and new prompt variations so their scores are comparable.

Then, select that policy-accuracy metric when you configure a guarded rollout. LaunchDarkly compares the new variation with the original and monitors for a statistically significant regression. If you enable automatic rollback for that metric, LaunchDarkly can revert the rollout when it detects a notable decline in policy accuracy. An individual failed answer impacts the score, but would not trigger a rollback on its own.

Both versions could still fall short of your policy requirements. A new prompt could answer routine questions better while promising refunds the policy excludes. That’s why it’s a good idea to test critical policy cases separately before release, so a higher average can't outweigh a failure your team considers unacceptable.

If you also need to catch policy violations before an answer reaches a user, background scoring alone isn’t sufficient, because the application delivers the answer without waiting for the judge. To use the score to determine whether to deliver an answer or route it to a fallback, call the judge directly from your code with the AI SDK and wait for the evaluation result. In that case, evaluate every response, account for the added latency, and provide a human-review path for cases your policy treats as uncertain.

For an individual-response gate, choose score thresholds using the human-reviewed examples, including the false passes and false failures you found. After a rollback or fallback, inspect subsequent scores and review affected answers to check whether policy accuracy recovered.

Making evidence-based decisions

Your judge metrics can also guide experiments across your AgentControl configs. Imagine you're evaluating two configurations for your customer support assistant: one using a faster, more cost-efficient model with a concise prompt, and another using a more capable model with detailed instructions for contextual reasoning.

The underlying question is whether the faster configurations save time and money while still meeting your bar for quality. So measure latency and cost along with judge scores for accuracy, relevance, and safety. And use the same rubric and judge configuration across both variations so the comparison consistently measures the assistant's behavior.

Compare judge scores to see whether each configuration meets your quality criteria, and compare customer satisfaction or task completion to see whether that quality translates into better outcomes. A higher relevance score alone doesn’t establish improved customer outcomes.

What this means for your team

LLM-as-a-judge can support:

  • Safer rollouts: Use validated quality metrics to pause or revert a guarded rollout when a new configuration degrades quality.
  • Confident experimentation: Compare configuration variants using relevance scores, not just engagement metrics.
  • Early detection: Spot toxicity spikes or accuracy drift in evaluated traffic, with detection depending on sampling and evaluation volume. Adaptive triggers can be used to mitigate the effect of performance degradation without human intervention.
  • Ongoing observability: Sample and track quality metrics even after experiments end.

Getting started with online evals

For your first evaluation, choose one criterion that would change a release decision. In the support assistant example, that might mean adherence to a supplied policy. Assemble reviewed examples, validate the judge, and choose a sampling rate that fits your evaluation budget.

Start with a limited pilot before using judge scores to control a rollout. Alongside the scores and answers, track evaluation spend, the share of sampled responses that return usable scores, and the time spent reviewing disagreements. Use those results to decide whether the errors you catch justify the ongoing cost and review work. Assign a team member to investigate delayed or missing scores, and decide when those gaps should hold up a release. A missing score leaves that response unassessed.

To record results in AgentControl, enable online evaluations for your project and use a compatible AI SDK. You can start with our built-in judges or configure a custom judge for your criteria.

Want to explore the technical details first? Set up online evaluations to record judge scores for the configurations you're running in production.

FAQs

What is the difference between online and offline evals?

Offline evals score a fixed set of saved examples before release, while online evals score sampled responses from live production traffic after release. Offline evals catch regressions on cases you already know about. Online evals surface quality problems from real inputs your test set did not anticipate, so the two work best together.

How do you write a rubric for an LLM-as-a-judge?

Write one criterion per judge and define pass and fail in your team's own terms, such as a score of 1 when an answer follows the supplied policy and 0 when it violates it. Give the judge the input, the response, and the reference material it needs, and score tone or style with a separate judge.

How much does LLM-as-a-judge cost to run?

LLM-as-a-judge cost scales with how many responses you score and the price of each judge call, so the sampling rate and the judge model are the main levers. Sampling a smaller share of traffic lowers spend but observes less behavior. Reviewer time spent on judge disagreements adds to the total.

Should an LLM judge use the same model as the application it evaluates?

Using a different model for the judge is often safer, because research on LLM judges has reported self-preference bias, where a model rates its own outputs more favorably. Whichever model you choose, rerun your human-reviewed examples whenever you change it, so you can separate a scoring change from a real quality drop.

Flaming pointer icon
Get started in minutes.

Learn how to scale seamlessly with LaunchDarkly as your project grows.

Letter in envelope icon
Sign up for our newsletter.

Get all the content, tips, and news you can use.

By supplying my contact information, I authorize LaunchDarkly to contact me with personalized marketing communications about our products and services. See our Privacy Policy for more details, or Opt-Out at any time.