Skip to main content

The quick decision framework

Online evals provide real-time quality monitoring for LLM applications. Using LLM-as-a-judge methodology, they run automated quality checks on a configurable percentage of your production traffic, producing structured scores and pass/fail judgments you can act on programmatically. LaunchDarkly includes three built-in judges: accuracy, relevance, and toxicity. Skip online evals if:
  • Your checks are purely deterministic (schema validation, compile tests)
  • You have low volume and can manually review outputs in observability dashboards
  • You’re primarily debugging execution problems
Add online evals when:
  • You need quantified quality scores to trigger automated actions (rollback, rerouting, alerts)
  • Manual quality review doesn’t scale to your traffic volume
  • You’re measuring multiple quality dimensions (accuracy, relevance, toxicity)
  • You want statistical quality trends across segments for AI governance and compliance
  • You need to monitor token usage and cost alongside quality metrics
  • You’re running A/B tests or guarded releases and need automated quality gates
Most teams add them within 2-3 sprints when manual quality review becomes the bottleneck. Configurable sampling rates let you balance evaluation coverage with cost and latency.

Online evals vs. LLM observability

LLM observability shows you what happened. Online evals automatically assess quality and trigger actions based on those assessments.

LLM observability: your security camera

LLM observability shows you everything that happened through distributed tracing: full conversations, tool calls, token usage, latency breakdowns, and cost attribution. Perfect for debugging and understanding what went wrong. But when you’re handling 10,000 conversations daily, manually reviewing them for quality patterns doesn’t scale.

Online evals: your security guard

Automatically scores every sampled request using LLM-as-a-judge methodology across your quality rubric (accuracy, relevance, toxicity) and takes action. Instead of exporting conversations to spreadsheets for manual review, you get real-time quality monitoring with drift detection that triggers alerts, rollbacks, or rerouting. The 3 AM difference Without evals: “Let’s meet tomorrow to review samples and decide if we should rollback.” With evals: “Quality dropped below threshold, automatic rollback triggered, here’s what failed…”

How online evals actually work

LaunchDarkly online evals use LLM-as-a-judge methodology with three built-in judges you can configure directly in the dashboard. No code changes required. Getting started:
  1. Install judges from the Judges tab on the Agents page
  2. Attach judges to AgentControl config variations
  3. Configure sampling rates (balance coverage with cost/latency)
  4. Evaluation metrics are automatically emitted under the judge’s event key, conventionally $ld:ai:judge:<name>
  5. Metrics are automatically available for A/B tests and guarded releases
A judge config generates its own metric. You do not create a separate custom metric alongside it. Before you can use a judge metric in an experiment, check its analysis unit. Judge metrics default to a unit that usually has to be changed to request, because each generation is a single request and request is the unit LaunchDarkly measures AI metrics by. To learn more, read Edit metrics. What you get from each built-in judge: Accuracy judge:
Relevance judge:
Toxicity judge:
Each judge returns a score from 0.0 to 1.0 plus reasoning that explains the assessment. The built-in judges (accuracy, relevance, toxicity) have fixed evaluation criteria, and you configure them only by selecting the provider and model. Configuration: Configure judges from the Judges tab on the Agents page in the LaunchDarkly UI. We provide three preconfigured judges (Accuracy, Relevance, Toxicity), and you can create your own custom judges. When configuring your config variations, select which judges to attach and set your desired sampling rate. Use different judge combinations or sampling rates across environments to match your quality requirements and cost constraints.
Never specify an output format in a custom judge promptThe score-and-reasoning shape above is produced by the SDK, not by the judge prompt. The judge runner supplies its own instruction requiring the model to return { "score": <number, 0-1>, "reasoning": <string> } and nothing else, and it delivers that instruction inside the {{message_history}} variable along with the conversation being judged. Write your custom judge prompt as criteria only: what to look for, what each point on the scale means, and a request for a score and reasoning. End it with {{message_history}}.If the placeholder is missing, the model never sees the format and answers in prose. If your prompt also dictates a format, the two instructions compete. Both fail with Invalid JSON from judge. This bites hardest when porting a judge written for the legacy launchdarkly-server-sdk-ai, which parsed a bare SCORE: <n> line. Older prompts often end by asking for exactly that. Delete those lines when you migrate.

Run judges off the request path

By default, judges run inline when you invoke a config, and the SDK tracks the scores for you. That costs latency on every sampled request. If you need full coverage without it, pass skip_judges=True to config() in Python (skipJudges: true in JavaScript). The invocation then hands back judge_tasks instead of running them, and you pass each one to run_judge() on a background task, thread, or queue consumer, then track the score yourself. This changes the cost/latency tradeoff rather than the coverage one: sampling decides how many requests are judged, and skip_judges decides whether the user waits for the verdict.

Real problems online evals solve

Scale for production applications: Your SQL generator handles 50,000 queries daily. LLM observability shows you every query through distributed tracing. Online evals tell you the proportion that are semantically wrong, automatically, with hallucination detection built in. Multi-dimensional quality monitoring: Customer service AI applications aren’t just “did it respond?” It’s accuracy, relevance, toxicity, compliance, and appropriateness. Online evals score all dimensions simultaneously, each with its own threshold and reasoning. RAG pipeline validation: Your retrieval-augmented generation system needs continuous monitoring of both retrieval quality and generation accuracy. Online evals can assess whether retrieved context is relevant and whether the response accurately uses that context, preventing hallucinations and ensuring factual grounding. Cost and performance optimization: Monitor token usage alongside quality metrics. If certain queries consume 10x more tokens than others, online evals help identify these patterns so you can optimize prompts or routing logic to reduce costs without sacrificing quality. Actionable metrics for AI governance: Turn 10,000 scored responses into evaluator-driven quality gates:
  • Accuracy trending below 0.8? Automated alerts to the team
  • Toxicity above 0.2? Immediate review and potential rollback
  • Relevance dropping for specific user segments? Targeted configuration updates
  • Metrics automatically feed A/B tests and guarded releases for continuous improvement

Example implementation path

Week 1-2: Define quality dimensions and install judges. Use LLM observability alone first. Manually review samples to understand your system. Define your quality dimensions: accuracy, relevance, toxicity, or other criteria specific to your application. Install the built-in judges from the Judges tab on the Agents page in LaunchDarkly. Week 3-4: Attach judges with sampling. Attach judges to config variations in LaunchDarkly. Start with one or two key judges (accuracy and relevance are good defaults). Configure sampling rates between 10-20% of traffic to balance coverage with cost and latency. Compare automated scores with human judgment to validate the judges work for your use case. Week 5+: Operationalize with quality gates. Add more evaluation dimensions as you learn. Connect scores to automated actions and evaluator-driven quality gates: when accuracy drops below 0.7, trigger alerts; when toxicity exceeds 0.2, investigate immediately. Leverage the custom events and metrics for A/B testing and guarded releases to continuously improve your application’s performance.

The bottom line

You don’t need online evals on day one. Start with LLM observability to understand your AI system through distributed tracing. Add evaluations when you hear yourself saying “we need to review more conversations” or “how do we know if quality is degrading?” The three built-in judges (accuracy, relevance, toxicity) provide LLM-as-a-judge evaluation that you can attach to any config variation with configurable sampling rates. When judges are attached in the UI, evaluation metrics are emitted under $ld:ai:judge:<name> and feed directly into A/B tests and guarded releases, with no code changes. When you outgrow the built-ins, write a custom judge as criteria only and let the SDK impose the response format. Start simple with one judge, learn what matters for your application, and expand from there. LLM observability is your security camera. Online evals are your security guard.

Next steps

Ready to get started? Sign up for a free LaunchDarkly account if you haven’t already. Build a complete quality pipeline: Learn more about AgentControl: See it in action: Industry standards: LaunchDarkly aligns with emerging AI observability standards, including OpenTelemetry’s semantic conventions for AI monitoring, ensuring your evaluation infrastructure integrates with the broader observability ecosystem.