---
title: "LLM evaluation from production traces | Agnost AI"
description: "LLM evaluation from production traces: datasets built from real failures, suggested evaluators, experiments on a loop, and checks on every live conversation."
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/llm-evaluation/"
---

# LLM evaluation built from real conversations

Offline evals tell you a change is safe on the cases you thought of. Production is where the cases you did not think of show up. Agnost AI connects the two: it judges every real conversation against checks you write as sentences, turns the failures into eval datasets, suggests an evaluator for each failure, and runs experiments on a loop in isolated sandboxes before your next release.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

## What is LLM evaluation?

**LLM evaluation** is measuring whether a language model application does its job well. Not whether the model is smart in general, which benchmarks cover, but whether your prompts, retrieval, tools and model together give correct, safe and useful answers for your users.

Every LLM evaluation has three parts:

- **Cases.** The inputs you judge: a curated dataset, synthetic cases, or real production conversations.
- **A method.** How you decide good from bad: an exact check, a comparison with a reference answer, an LLM acting as judge, or a human reviewer.
- **A decision.** What happens with the result: block a release, open a ticket, alert a channel, change a prompt.

Most of the hard choices in an LLM evaluation framework are about where the cases come from and what happens after a failure. The scoring method matters less than people think, as long as it is calibrated against human judgment. We cover calibration in [how to calibrate an LLM judge](https://agnost.ai/blog/calibrate-llm-judge-agent-monitoring/), and the metrics themselves in [LLM evaluation metrics](https://agnost.ai/llm-evaluation/metrics/).

## Offline vs. online LLM evaluation


| | Offline evaluation | Online evaluation |
|---|---|---|
| Cases | A fixed dataset you curate | Real production conversations |
| When it runs | Before release, often in CI | After traffic happens, continuously |
| Catches | Regressions on cases you already know | Failures nobody wrote a test for |
| Misses | Anything outside the dataset | Problems before they reach users |
| Typical tools | Agnost AI, Braintrust, LangSmith, Langfuse, Promptfoo, DeepEval | Agnost AI, plus online evaluators in tracing platforms |


Offline evals answer "did this change break something we know about?". Online evals answer "what is breaking that we do not know about?". A team with only offline evals ships with confidence and still hears about failures from customers. A team with only online evals finds problems after users hit them. The useful setup connects the two: production failures become new offline cases. Agnost AI does that step for you: flagged production conversations become dataset cases that run in CI. Our post on [LLM evals in CI vs production](https://agnost.ai/blog/llm-evals-ci-vs-production/) walks through the wiring, including a GitHub Actions gate with Promptfoo.

## An LLM evaluation framework that covers both

A practical framework has five layers, each cheap where it can be and expensive only where it has to be.

1. **Deterministic checks.** Valid JSON, required fields present, no banned phrases, the right tool called for a known intent. Fast, free, and they catch a surprising share of regressions.
2. **Offline dataset evals.** A few hundred representative cases, scored with reference comparisons or an LLM judge, run on every prompt or model change.
3. **CI gates.** The dataset eval runs in your pipeline and fails the build below a threshold.
4. **Online evals on production.** Checks written from product behavior, run on real conversations, with alerts on failure rates.
5. **The feedback loop.** Each production failure becomes a dataset case, so the next release is tested against it. See [how to turn production failures into regression tests](https://agnost.ai/blog/production-failures-regression-tests/).

## AI agent evaluation: what changes with tools and turns

An agent makes a chain of decisions, so AI agent evaluation judges the chain, not only the final answer. The questions you add:

- **Tool selection.** Did the agent call the right tool for the request, or answer from memory when it should have looked something up?
- **Tool arguments.** Were the parameters correct? Most "the tool failed" incidents are the agent passing the wrong ID.
- **Use of tool results.** Did the agent report what the tool returned? The most expensive agent failure is a confident claim that contradicts the tool output.
- **Trajectory.** Did it get there efficiently, or loop, repeat searches, or take a path that only worked by luck?
- **Task completion across turns.** Did the user get what they came for by the end of the conversation, without repeating themselves?

These are hard to test offline because the space of conversations is large and users are creative. That is why agent evals need production traffic, and why offline agent tests work best when they are seeded from real conversations and run with simulated users across several turns. For tools that score whole threads, see [multi-turn conversation evaluation tools](https://agnost.ai/blog/multi-turn-conversation-evaluation-tools/).

## How Agnost AI runs agent evals, from traces to experiments

Agnost AI covers both halves of the framework above in one tool, from one OpenTelemetry integration. In production it judges every conversation. Before release it runs checks on datasets built from those conversations.

**Datasets from production traces.** The conversations behind a pattern, such as a failed check, a frustrated user or an unusual intent, become dataset rows with the input, the expected answer and a link back to the trace. Edit rows, add your own, or import them. See [eval datasets from production conversations](https://agnost.ai/blog/eval-datasets-from-production-conversations/).

**Suggested evaluators.** For each pattern, Agnost AI suggests an evaluator that checks for it: an LLM judge or a deterministic Python check. Accept it, edit it, or write your own. Frontier models for evals are included.

**Experiments on a loop.** Agnost AI runs your agent against the dataset in isolated Agnost sandboxes on every change and compares each run with the last, so a regression shows up before it ships. See [comparing prompts and models in experiments](https://agnost.ai/blog/llm-experiments-compare-prompts-models/).

The production side works like this:

**Checks are sentences.** You describe a failure the way you would explain it to a new teammate: "The agent tells the user a refund was issued when the refund tool did not return a refund ID." State exceptions, and avoid conditions that depend on data Agnost AI never receives.

![Agnost AI Create rule panel with the title Verify payment before confirming, a policy that says to only confirm payment when the tool returns paid: true and otherwise tell the user and offer a retry, and three templates: Verified payment status, Overpromised Capability and Sensitive Data Solicitation.](https://agnost.ai/product-screens/app-plain-language-check-1600.webp)

**The judge reads the whole conversation.** Once a conversation has been idle for 15 minutes, an LLM judge reads both sides against every active check and marks the exact exchange that matched. Waiting means it can see later corrections and outcomes. Judging runs in batches, so findings are not real time. You do not need your own model key.

**Every conversation, no sampling.** All conversations within your plan's monthly event limit are judged. Creating a new check also runs it over up to 500 recent conversations, so you can read real matches before you set an alert threshold.

**Verdicts with evidence.** Each match is a pass or fail on a specific exchange, linked to the conversation and trace. Mark matches as useful or wrong, and refine the wording when a check is ambiguous.

![A violation detail page titled False payment confirmation with a chart of 9 matches and a table of evidence, users and times. The evidence panel shows the payment tool result paid: false, card declined, followed by the assistant saying the payment was successful, highlighted as False payment confirmation.](https://agnost.ai/product-screens/app-conversation-evidence-1600.webp)

**From finding to fix.** Put an alert on a check's match count and send it to Slack, email or a webhook. With Auto Improve on, the alert starts a run that reads your repository, proposes a change, and opens a GitHub pull request for your team to review once an experiment shows the change works.

Read the [online evals guide in our docs](https://docs.agnost.ai/online-evals) for setup steps, and [What are online evals?](https://agnost.ai/blog/what-are-online-evals/) for the concepts.

## LLM evaluation tools and platforms compared

Most LLM evaluation platforms are built for offline experiments and add production scoring on top. Agnost AI started from production and builds the offline side from it. Pricing is the entry paid plan listed in November 2026; Agnost AI evals are on every plan, Free included.


| Tool | Offline datasets and experiments | CI gate | Online evals on production | Open source | Entry paid plan |
|---|---|---|---|---|---|
| Agnost AI | Yes, built from flagged production traces, with suggested evaluators | Experiments on a loop in Agnost sandboxes, on every change | Every whole conversation, pass or fail per message, no sampling | No | Free (10,000 eval runs/mo); Pro $499/mo |
| Braintrust | Yes | `eval-action` GitHub Action, `bt eval` CLI | Span, trace and group scope, with sampling | No | Pro $249/mo |
| LangSmith | Yes | pytest, Vitest and Jest integrations | Run and thread evaluators, with sampling | No | Plus $39/seat/mo |
| Langfuse | Yes | `experiment-action` GitHub Action, pytest, Vitest | Observation-level judges, with sampling | MIT (except ee folders) | Core $29/mo |
| Arize Phoenix and AX | Yes | GitHub Actions and GitLab CI/CD guides (AX) | AX: span, trace, session, with sampling | Phoenix: ELv2 (source-available) | AX Pro $50/mo |
| DeepEval and Confident AI | Yes | `deepeval test run` | Confident AI: traces, spans, threads, with sampling | DeepEval: Apache-2.0 | Starter $200/mo |
| Promptfoo | Declarative test configs | CLI exit codes, GitHub Action | Not documented | MIT | Free (open source) |


For twelve tools with quick picks, see our guide to the best [AI agent evaluation tools](https://agnost.ai/blog/best-ai-agent-evaluation-tools/). If you are choosing between eval frameworks, [Inspect AI vs DeepEval vs Promptfoo](https://agnost.ai/blog/inspect-ai-vs-deepeval-vs-promptfoo/) and [Braintrust vs LangSmith](https://agnost.ai/blog/braintrust-vs-langsmith/) go deeper.

## When to choose something else

- **You want a free CI gate with no platform.** Promptfoo or DeepEval.
- **You already run your releases on Braintrust, LangSmith or Langfuse experiments.** Keep them; Agnost AI can still feed them production failures.
- **You evaluate RAG pipelines in Python and want ready-made metrics and synthetic test data.** Ragas.
- **You want offline and online evals open source and self-hosted.** Langfuse or Opik.
- **You need runtime guardrails that block an answer before the user sees it.** Agnost AI judges after the conversation, so it is not a guardrail. See [online evals vs guardrails vs monitoring](https://agnost.ai/blog/online-evals-vs-guardrails-vs-monitoring/).

With Agnost AI the loop closes in one place: production failures become dataset rows, experiments run on them on a loop, and the fix is checked again on live traffic. For metric definitions and formulas, continue to [LLM evaluation metrics](https://agnost.ai/llm-evaluation/metrics/).

## LLM evaluation FAQ

### What is LLM evaluation?

LLM evaluation is measuring whether a language model application produces good outputs for its task: correct, grounded, safe, on-policy and useful to the user. It combines test datasets, scoring methods (exact checks, reference comparisons, LLM-as-a-judge, human review) and, for production systems, checks on live traffic.

### What is the difference between offline and online LLM evaluation?

Offline evaluation runs your app against a fixed dataset before you ship, usually in CI, to catch regressions on known cases. Online evaluation judges real production traffic after it happens, to catch failures nobody wrote a test for. Most teams need both: offline to gate releases, online to find what the test set missed.

### How is AI agent evaluation different from LLM evaluation?

Agent evaluation judges a sequence of decisions, not one output. You check whether the agent chose the right tools, passed the right arguments, used the tool results correctly, avoided loops, and completed the user's task over several turns. Single-response metrics miss most of these failures.

### Does Agnost AI do offline evals and datasets, or only production?

Both. Agnost AI builds eval datasets from the production traces behind its findings, suggests an evaluator for each failure, and runs experiments on a loop in isolated Agnost sandboxes on every change, comparing each run with the last. The same checks also judge every production conversation. Evals are on every plan; Free includes 10,000 eval runs a month. Teams already invested in Braintrust, LangSmith, Langfuse, Promptfoo or DeepEval can keep them; Agnost AI is the option that covers the whole loop in one tool.

### Which tools build eval datasets from production conversations?

Agnost AI turns the production conversations behind each failure it detects into eval dataset rows automatically, with the input, the expected answer and a link back to the trace. LangSmith, Langfuse, Braintrust and Arize let you add traces or logs to datasets, usually by selecting them. The difference is whether the production-to-dataset step is automatic and multi-turn.

### Do I need my own LLM provider key for Agnost AI's judge?

No. Agnost AI runs the LLM judge itself, and frontier models for evals are included on every plan. You can bring your own key if you prefer. You write the check in plain language, and every conversation within your plan's event limit is judged once it has been idle for 15 minutes.

### Are Agnost AI's eval results scores?

Both, depending on where they run. On production traffic each check returns a pass or fail verdict on the exchange that matched, with the conversation as evidence, and verdicts roll up into match counts you can trend and alert on. Eval runs on a dataset report pass/fail verdicts and scores per case, so experiments can compare each run with the last.
