Skip to main content

3 posts tagged with "MLflow evaluation"

View All Tags

How to Evaluate an AI Agent Using Production Traces

· 15 min read

To evaluate an AI agent using production traces, record every run as a trace, pull a sample of those traces, and score them without re-running the agent. Use trace-based judges for the path the agent took (which tools it called, with what arguments) and session-level judges for whole conversations. Then turn each failure into a test case, so the next version has to pass it.

Last reviewed: November 14, 2026.

This guide is for engineers who already have an agent in production and a tracing setup, and want to know whether the agent is any good. We work on MLflow, so the code uses MLflow. The steps carry over to any tool that stores full agent traces.

What you will build​

  • A tagged trace stream, with tool calls and conversation sessions recorded
  • Trace-level scores for tool selection, tool arguments, and efficiency
  • Session-level scores for completeness and user frustration
  • A custom judge for one failure mode that matters to your product
  • A loop that sends failed production traces back into a dataset
  • Automatic scoring of a sample of live traffic

If you need the broader program around this, such as CI gates, golden datasets, and a 30-day rollout, read Continuous LLM Evaluation first. This guide does not repeat it. It goes deeper on one question: how do you judge an agent from what it did in production?

Why can't you evaluate an agent on its final answer alone?​

An agent can return a correct answer after a wrong path: a tool called with the wrong arguments, a retry loop that burned tokens, or a lookup that returned nothing and was ignored. Scoring the answer alone misses all of it, and the path is where agents break.

Reliability is the second problem. In the τ-bench paper, researchers tested tool-using agents in simulated customer-service domains. They report that the function-calling agents of the time, including gpt-4o, succeed on fewer than 50% of tasks, and are inconsistent: pass^8, the chance of solving the same task correctly in all of 8 attempts, is below 25% in the retail domain.

One passing run says little. You need many real runs, scored the same way, and production is the only place you get them in volume. The paper is from 2024 and tested gpt-4o-class models, so newer models will score higher, but the lesson about repeated runs has not changed.

What is trace-based agent evaluation?​

Trace-based agent evaluation scores an agent from the recorded trace of its run, instead of re-running it on a test input. A trace holds the user input, every model call, every tool call with its arguments and result, and the final output, so a judge can grade the whole path.

This has three practical benefits:

  • It scores real behavior. Production users ask things you did not predict.
  • It is cheap to repeat. You generate traces once and re-score them with new judges, without paying for the agent's model calls again. The MLflow docs on evaluating traces note this reuse for offline evaluation.
  • It sees the intermediate steps. Scorers get the full trace, including spans and attributes, so they can check the tool-call trajectory and not only the output.

Anthropic's engineering team makes the same split in Demystifying evals for AI agents. Offline evals run on thousands of tasks without touching users, but "can create false confidence if it doesn't match real usage patterns." Production monitoring "reveals real user behavior at scale" but is reactive. Their advice is to combine automated evals for iteration, production monitoring for ground truth, and periodic human review for calibration.

Which tool should you use for production-trace evaluation?​

MLflow is a good fit when you want tracing, judges, datasets, and automatic scoring in one open-source server. It is Apache-2.0 licensed and a Linux Foundation project.

Disclosure: this guide was written by MLflow maintainers. Read the MLflow-specific code as one option. Other platforms such as Langfuse, LangSmith, and Braintrust take their own approach to scoring production traces, and our comparison of agent observability tools covers the trade-offs. The workflow below does not depend on the tool.

StepWhat you scoreMLflow API
RecordNothing yet; capture tools and sessions@mlflow.trace(span_type="TOOL"), mlflow.update_current_trace
Score the pathTool choice, arguments, redundant callsToolCallCorrectness, ToolCallEfficiency
Score the answerRelevance to the requestRelevanceToQuery
Score the dialogueCompleteness, frustration across turnsConversationCompleteness, UserFrustration
Score a custom caseA failure only your product hasmake_judge with {{ trace }}
Keep scoringA sample of live trafficScorer.register() and .start()

Step 1: How do you make traces that an evaluator can use?​

Mark tool functions with span_type="TOOL" and tag each trace with a session ID. The built-in tool-call judges need at least one span of type TOOL, and the conversation judges need a session ID to group turns.

import mlflow

mlflow.set_experiment("support-agent")


@mlflow.trace(span_type="TOOL")
def lookup_order(order_id: str) -> dict:
return {"order_id": order_id, "status": "shipped"}


@mlflow.trace(span_type="AGENT")
def support_agent(question: str, session_id: str) -> str:
mlflow.update_current_trace(metadata={"mlflow.trace.session": session_id})
order = lookup_order("A-1042")
return f"Your order {order['order_id']} has {order['status']}."

If you use a framework such as LangGraph or the OpenAI SDK, call its autolog() function instead of decorating by hand, and still set the session ID. For the full list of what a trace captures, see our page on LLM and agent observability.

Put the session ID on every turn. Without it, a five-turn conversation looks like five unrelated requests, and conversation-level scores are impossible.

Step 2: How do you pull production traces to evaluate?​

Search the tracking server for a recent window and ask for trace objects. A recent window means you score the agent you actually shipped.

from datetime import datetime, timedelta

since = datetime.now() - timedelta(days=1)
traces = mlflow.search_traces(
filter_string=f"timestamp > {int(since.timestamp() * 1000)}",
max_results=200,
return_type="list",
)

The trace search guide lists the supported filters, such as status and tags. Do not sample only successes. Errors, slow runs, and runs where a user gave a thumbs-down are the cases you most need to see, so include them on purpose.

Step 3: How do you score tool calls from a trace?​

Use the two built-in tool-call judges. ToolCallCorrectness checks whether the agent picked the right tools and passed correct arguments for the request. ToolCallEfficiency checks for redundant calls. Neither needs ground-truth labels in its default mode.

from mlflow.genai.scorers import (
RelevanceToQuery,
ToolCallCorrectness,
ToolCallEfficiency,
)

results = mlflow.genai.evaluate(
data=traces,
scorers=[
ToolCallCorrectness(),
ToolCallEfficiency(),
RelevanceToQuery(),
],
)

You do not pass a predict_fn. MLflow reads the inputs, outputs, and spans from each trace. The judges are LLM-based, and the default judge model is an OpenAI model, so set OPENAI_API_KEY or pass model= to use another provider (on a Databricks tracking server the default differs). See the tool-call judge docs for modes that compare against expected tool calls.

Open the run in the MLflow UI and read the rationale on the lowest-scoring traces. Anthropic's guide says plainly that "you won't know if your graders are working well unless you read the transcripts and grades from many trials."

Step 4: How do you evaluate multi-turn conversations?​

Group traces into sessions and use the session-level judges. ConversationCompleteness returns whether the assistant addressed all of the user's requests by the end. UserFrustration returns none, resolved, or unresolved, so you can tell a rough patch that recovered from one that ended badly.

from mlflow.genai.scorers import ConversationCompleteness, UserFrustration

sessions = mlflow.search_sessions(max_results=50)
session_traces = [trace for session in sessions for trace in session]

results = mlflow.genai.evaluate(
data=session_traces,
scorers=[ConversationCompleteness(), UserFrustration()],
)

Multi-turn evaluation needs MLflow 3.10 or later, and the docs mark the feature as experimental, so expect the API to change. Our post on multi-turn evaluation walks through the sessions view and a simulation workflow for conversations you have not seen yet.

Session scores catch things that no single turn shows: an agent that forgets a constraint from turn two, or answers each question well while the user's real goal never gets met.

Step 5: How do you write a judge for a failure only your agent has?​

Write a trace-based judge with make_judge. When the instructions contain {{ trace }}, the judge gets the full trace and can inspect spans on its own. Name one specific failure, give clear categories, and keep it to one question per judge.

from typing import Literal

from mlflow.genai.judges import make_judge

refund_judge = make_judge(
name="refund_policy_followed",
instructions=(
"Analyze the execution {{ trace }}. Decide whether the agent checked "
"the order status with a tool before promising a refund.\n"
"Answer 'checked' if a lookup tool ran before the refund promise, "
"'skipped' if the agent promised a refund without a lookup, and "
"'not_applicable' if no refund was discussed."
),
feedback_value_type=Literal["checked", "skipped", "not_applicable"],
model="openai:/gpt-5-mini",
)

results = mlflow.genai.evaluate(data=traces, scorers=[refund_judge])

Set a model explicitly on a trace-based judge, as in the example. The custom judge docs show more examples, including loop detection and tool optimization.

Do not trust a new judge on day one. The MT-Bench paper, Judging LLM-as-a-Judge, found in 2023 that strong judges like GPT-4 reach over 80% agreement with human preferences on MT-Bench and Chatbot Arena, the same level humans agree with each other. The same abstract lists position, verbosity, and self-enhancement biases. Airbnb's engineering team recommends a golden dataset of 50 to 100 examples that includes bad examples for calibrating a judge, and the same mix works for a regression set. Label a set that size by hand, compare, and rewrite the instructions until the judge agrees with you. Our guide to LLM judge calibration covers the method, and the LLM-as-a-judge overview explains the scorer types.

Step 6: How do you turn failed production traces into regression tests?​

Annotate the failing traces with the expected behavior, then add them to an evaluation dataset. The next version of the agent runs against that dataset, so a fixed failure stays fixed.

from mlflow.genai.datasets import create_dataset

failing_ids = ["<failing-trace-id>"]
for trace_id in failing_ids:
mlflow.log_expectation(
trace_id=trace_id,
name="expected_tool_calls",
value=[{"name": "lookup_order", "arguments": {"order_id": "A-1042"}}],
)

dataset = create_dataset(
name="support_agent_regressions",
experiment_id=mlflow.get_experiment_by_name("support-agent").experiment_id,
)
dataset.merge_records([mlflow.get_trace(trace_id) for trace_id in failing_ids])

Choose the traces you merge. A dataset full of easy cases hides regressions, so add the failures plus a few clean cases, which proves your scorers can tell good from bad.

To run the dataset against a new agent version, call mlflow.genai.evaluate(data=dataset, predict_fn=support_agent, scorers=[...]). The dataset workflow guide shows the full path.

This is the loop that one paper proposes under the name evaluation-driven development: the paper on evaluation-driven development and operations of LLM agents argues that evaluation should run through development and operations as a continuous function, not a gate before launch.

Step 7: How do you score live traffic automatically?​

Register a judge and start it with a sampling rate. MLflow then scores new traces and sessions as they arrive, with no scheduled job to maintain. This is online evaluation, and it is how you notice drift without waiting for a user complaint.

from mlflow.genai.scorers import ScorerSamplingConfig, ToolCallCorrectness

judge = ToolCallCorrectness(model="gateway:/my-llm-endpoint")
registered = judge.register(name="tool_call_correctness")
registered.start(sampling_config=ScorerSamplingConfig(sample_rate=0.2))

Three limits to know from the automatic evaluation docs:

  • It supports LLM judges, built-in or from make_judge. Plain code scorers are not supported on a standard server.
  • The judge model runs through an AI Gateway endpoint, which you configure first.
  • A new judge scores traces and sessions that are at most one hour old. It does not backfill history, so use mlflow.genai.evaluate for that.

Start at a low sample rate. Judge calls cost money, and a small slice of traffic is enough to see a trend. Raise the rate for a new release, then lower it again.

What mistakes should you avoid?​

Most failed trace-evaluation programs fail in the same few ways.

  • Scoring only the answer. You miss wrong tool calls that happened to produce a plausible reply.
  • Skipping the human check. The Who Validates the Validators study describes "criteria drift": people need criteria to grade outputs, but grading outputs helps them define the criteria. Expect your rubric to change after you read real traces.
  • One judge for everything. A single "is this good?" judge gives a vague score. Use one judge per failure mode.
  • Mixing up prompts and sampling. If you change both a judge prompt and the sample at once, you cannot tell whether quality moved or the measurement did. Change one at a time.
  • Sampling only what users flagged. Complaints are a biased sample. Score a random slice too.
  • Treating one run as a result. Given the pass^k results above, repeat the important cases and look at the spread.

When is this approach the wrong choice?​

Trace-based evaluation needs real traffic, so it does not help before launch. For a new agent, build a small dataset by hand or simulate conversations, then switch to production traces once users arrive. It also needs privacy review: traces contain user input, so check what you store and who can read it before you point judges at it.

It does not replace outcome checks either. If you can verify the final state directly, such as a refund row in a database, write a code check and use the LLM judge only for what code cannot see. Anthropic's guidance is to choose deterministic graders where possible and LLM graders where necessary.

FAQ​

How do I evaluate an AI agent using production traces?​

Capture each run as a trace, pull a sample, and score it with judges that read the whole trace. In MLflow that means mlflow.search_traces to fetch the sample and mlflow.genai.evaluate with scorers such as ToolCallCorrectness and UserFrustration. Then add the failures to a dataset to guard against regressions.

How is trace-based evaluation different from offline evaluation?​

Offline evaluation runs the agent on a fixed dataset you chose in advance. Trace-based evaluation scores runs that already happened, so it reflects real user behavior but cannot test a new version by itself. Use both: traces to find failures, a dataset to test the fix.

How many production traces do I need?​

There is no fixed number. Start with the code above, which pulls up to 200 traces from the last day. Include errors and slow runs on purpose, and read the lowest scores by hand. Once your judges agree with your labels, add automatic scoring at a low sample rate.

Can I evaluate multi-turn conversations, not just single requests?​

Yes. Set a session ID on every trace, then use session-level judges such as ConversationCompleteness and UserFrustration. This needs MLflow 3.10 or later and is marked experimental in the docs.

Do I need ground-truth labels?​

Not to start. The default tool-call judges and the conversation judges work without labels. Labels help later: add expected tool calls to failing traces so your regression tests can check exact behavior.

What does it cost to run LLM judges on production traffic?​

Each judged trace is at least one extra model call, and a trace-based judge that explores a long trace costs more. Control it with the sample rate, a cheaper judge model for simple checks, and a filter string that targets only the traces you care about.

Next step​

Pick one agent and one failure mode this week. Add span_type="TOOL" to its tools, pull a day of recent traces, and run ToolCallCorrectness over them. Read the ten lowest scores, then follow the MLflow guide to evaluating production traces to build your first judge. For the monitoring side, see MLflow AI monitoring, and for the wider evaluation toolkit, see LLM and agent evaluation in MLflow.

Sources​

Every external claim in this guide comes from one of these sources.

Best Open-Source LLM Evaluation Tools in 2026: 6 Self-Hosted Tools Compared

· 16 min read

Last reviewed: October 21, 2026. This is Part 2 of a two-part series. Part 1 compares hosted and commercial LLM evaluation platforms.

An open-source LLM evaluation tool lets you test whether your LLM app or agent gives correct, safe, and useful answers, on your own infrastructure and without a vendor contract. The best open-source LLM evaluation tools in 2026 go beyond a metric library. They trace your app, score outputs with LLM judges and code, collect human feedback, and keep monitoring after you ship.

This guide compares six tools that you can self-host for free. For each one, it covers the license, the evaluation features, and what you need to run it.

How we ranked them: by how much of the evaluation loop each tool covers on its own, from tracing and judges to datasets, human review, production monitoring, and optimization. This guide is published by the MLflow team. Every competitor description links to that project's own documentation, and licenses were checked against each project's GitHub repository on the date above.

Quick answer: what are the best open-source LLM evaluation tools in 2026?​

The best open-source LLM evaluation tools in 2026 are:

  1. MLflow: best self-hosted, end-to-end evaluation platform. It is free, Apache 2.0, and every feature is in the open-source release.
  2. Langfuse: best for teams that want tracing, evaluation, and prompt management in one MIT-licensed platform.
  3. Arize Phoenix: best for OpenTelemetry-based tracing and experiments, if a source-available license works for you.
  4. Opik: best for Apache 2.0 tracing and evaluation with test suites and PyTest integration.
  5. Promptfoo: best for red teaming and comparing prompts and models from the command line.
  6. Ragas: best for RAG metrics and synthetic test data in a lightweight Python library.

Table of contents​

What to look for in an open-source LLM evaluation tool​

"Open source" covers a wide range of projects, from a single Python library to a full platform with a UI and a database. Use these criteria to compare them.

  • License. Check the actual license file. Apache 2.0 and MIT are OSI-approved open-source licenses. Some projects are source-available instead, and some keep certain features under a separate commercial license.
  • Feature gating. Check whether every feature you need is in the free release, or whether some require a paid license key.
  • LLM-as-a-judge and code scorers. You need both. LLM judges score open-ended quality. Code scorers check exact rules, such as format or tool arguments.
  • Tracing. The best test cases come from real traces. A tool that traces your app can turn a failure into a test case.
  • Human review. Domain experts should be able to label traces and correct judges without writing code.
  • Production monitoring. The same scorers should run on live traffic, not only in offline tests.
  • What it takes to self-host. Count the services you have to run, back up, and upgrade.

Open-source LLM evaluation tools comparison table​

ToolLicenseMaintained byTypeBest for
MLflowApache 2.0Linux Foundation (LF AI & Data)PlatformSelf-hosted, end-to-end evaluation
LangfuseMIT core, commercial ee featuresClickHousePlatformTracing, evals, and prompt management
Arize PhoenixElastic License 2.0 (source-available)Arize AIPlatformOpenTelemetry tracing and experiments
OpikApache 2.0CometPlatformTest suites and PyTest-based evaluation
PromptfooMITOpenAIFrameworkRed teaming and prompt/model comparison
RagasApache 2.0Vibrant LabsFrameworkRAG metrics and synthetic test data

MLflow is the only tool on this list that is governed by a foundation rather than a single company, and it has no paid tier or license-gated features.

1. MLflow​

MLflow is an Apache 2.0, Linux Foundation project that covers the whole evaluation loop in one free tool: OpenTelemetry tracing, LLM judges and code scorers, automatic issue detection, human review, production monitoring, and prompt and judge optimization. There is no paid tier, and every feature is in the open-source release.

  • Best for: teams that want one self-hosted tool to trace, evaluate, find issues, and optimize.
  • Key fact: 30M+ monthly downloads, 28K+ GitHub stars, and 900+ contributors.

How do you self-host MLflow?​

You can run the full MLflow platform on your laptop with two commands:

pip install mlflow
mlflow server --port 5000

This starts the server and UI with a SQLite database, which is the default backend store. For production, point MLflow at PostgreSQL, MySQL, or Microsoft SQL Server, and deploy it to Kubernetes with the official Helm chart in the MLflow repository. MLflow includes built-in authentication and role-based access control, and you can add single sign-on through an OIDC plugin or a reverse proxy. See the self-hosting guide for the details.

Automatic Issue Detection​

Automatic Issue Detection uses an LLM to analyze the traces you already collect and finds quality and operational issues for you. You do not need to define metrics first, so it works even when you do not yet know what to measure. It shows you the failure patterns, and then you know which judges to build.

Built-in optimizers for prompts and judges​

  • Prompt optimization. mlflow.genai.optimize_prompts() improves a prompt against your evaluation data with optimizers such as GEPA. It works with LangChain, LangGraph, OpenAI Agents, Pydantic AI, and your own code.
  • Judge alignment. SIMBA and MemAlign tune an LLM judge with human feedback, so the judge agrees with your domain experts. MemAlign is experimental and shows improvement with a handful of labeled examples.

Key evaluation features​

Free, with no feature gating​

Open-source MLflow has no paid tier and no license keys. Every feature in this section is in the open-source release. If you need a feature, open a feature request on GitHub. The maintainers review suggestions and feature requests from the community.

2. Langfuse​

Langfuse is an MIT-licensed LLM engineering platform with tracing, LLM-as-a-judge and code evaluators, experiments, human annotation, and prompt management. Its open-source edition includes all core features with no usage limits, and a set of enterprise administration features requires a paid license key. Source: Langfuse evaluation docs.

  • Best for: teams that want tracing, evaluation, and prompt management in one platform.
  • Key fact: 36K+ GitHub stars, and the core is MIT-licensed.

Key evaluation features​

  • LLM-as-a-judge. Score production traces or datasets with LLM evaluators.
  • Experiments. Run test cases against datasets and compare results side by side.
  • Code evaluators. Write custom checks in Python or TypeScript.
  • Human annotation. Review traces with your team and build golden datasets.
  • Prompt management. Version prompts and roll back to earlier versions.

How do you self-host Langfuse?​

Langfuse runs web and worker containers on PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible object storage. This architecture is the same one Langfuse Cloud uses. Most features are in the MIT-licensed core. Project-level RBAC, audit logs, data retention policies, server-side data masking, and SCIM are among the features that require an enterprise license key.

3. Arize Phoenix​

Arize Phoenix is a tracing and evaluation tool built on OpenTelemetry, with LLM evaluators, pre-built metrics, versioned datasets, and experiments. It is source-available under the Elastic License 2.0, not an OSI-approved open-source license. You can self-host it for free, but you cannot offer it to others as a hosted service. Source: Phoenix evaluation docs.

  • Best for: teams that want OpenTelemetry tracing and experiments in a tool that is simple to run, and whose use fits the Elastic License 2.0.
  • Key fact: Arize AX is Arize's separate managed platform. Phoenix is the self-hosted tool.

Key evaluation features​

  • LLM evaluators. Run pre-built or custom evaluators that use an LLM as a judge.
  • Pre-built metrics. Faithfulness, correctness, document relevance, tool use, and deterministic checks.
  • Datasets and experiments. Version datasets and track experiment results.
  • OpenTelemetry tracing. Instrument LLM apps through OpenTelemetry.

How do you self-host Arize Phoenix?​

Phoenix runs as a single application that stores data in SQLite, or in PostgreSQL for production. Source: Phoenix Docker deployment docs. Read the license before you build a product on Phoenix.

4. Opik​

Opik, from Comet, is an Apache 2.0 platform to trace, evaluate, and monitor LLM apps, RAG systems, and agents. It offers LLM-as-a-judge metrics for hallucination and relevance, test suites, datasets and experiments, human annotation, and PyTest integration for CI. You can self-host the full platform, and Comet also runs a hosted version. Source: Opik evaluation docs.

  • Best for: teams that want an Apache 2.0 platform with assertion-based test suites and PyTest integration.
  • Key fact: 22K+ GitHub stars.

Key evaluation features​

  • LLM-as-a-judge metrics. Hallucination, answer relevance, context precision and recall, and moderation.
  • Test suites. Assertion-based tests with pass or fail results.
  • Datasets and experiments. Compare results side by side.
  • Human annotation. Review queues for your team.
  • CI integration. Run evaluations from PyTest.

How do you self-host Opik?​

Opik's Docker Compose deployment runs its backend and frontend services with MySQL, ClickHouse, Redis, ZooKeeper, and MinIO. Kubernetes deployment uses Helm.

5. Promptfoo​

Promptfoo is an MIT-licensed command-line tool and library for testing prompts, models, and agents. It is strongest at red teaming and security scans, and at side-by-side comparisons across model providers, which you can run locally or in CI. Source: Promptfoo red teaming docs.

  • Best for: developers and security teams who red-team LLM apps and compare models from the command line.
  • Key fact: 26K+ GitHub stars.

Key evaluation features​

  • Red teaming. Scan for vulnerabilities and measure attack success rates.
  • Model comparison. Compare outputs across OpenAI, Anthropic, Azure, Bedrock, Ollama, and other providers.
  • CI integration. Run checks in pull requests.
  • Custom assertions. Define your own test cases and evaluation logic.

How do you self-host Promptfoo?​

Promptfoo runs locally, so evaluations do not need a server. It also has a Docker image for sharing results, but its self-hosting docs say that the self-hosted server is not recommended for production: it uses a local SQLite database, it does not scale across replicas, and it has no built-in authentication.

6. Ragas​

Ragas is an Apache 2.0 Python library for evaluating RAG and LLM apps. It provides metrics such as faithfulness, context precision, and context recall, and it can generate test datasets when you have none. It runs locally with no server, and its metrics also run inside MLflow as scorers. Source: Ragas metrics docs.

  • Best for: teams that evaluate RAG pipelines and want a lightweight library with synthetic test data generation.
  • Key fact: maintained by Vibrant Labs, with 16K+ GitHub stars.

Key evaluation features​

  • RAG metrics. Context precision, context recall, faithfulness, and response relevancy.
  • General metrics. LLM-based and traditional metrics for agents and general LLM quality.
  • Test data generation. Generate evaluation datasets without existing test data.
  • Integrations. Works with LangChain, LlamaIndex, and other frameworks.

How do you self-host Ragas?​

You don't host Ragas. It is a library that you install with pip. To store results, compare runs, or add human review, run Ragas metrics inside a platform such as MLflow.

Self-hosting compared: what each tool takes to run​

ToolWhat you runPaid license needed for
MLflowOne server; SQLite to start, PostgreSQL or MySQL for production; Helm chartNothing
LangfuseWeb and worker containers, PostgreSQL, ClickHouse, Redis, object storageProject-level RBAC, audit logs, data retention, SCIM, and more
Arize PhoenixOne application; SQLite or PostgreSQLNothing, but offering it as a hosted service is not allowed
OpikBackend and frontend services, MySQL, ClickHouse, Redis, ZooKeeper, MinIONothing
PromptfooNothing for local runs; an optional single-server Docker imageProduction server features are in the enterprise product
RagasNothing; it is a Python libraryNothing

MLflow and Arize Phoenix each run as a single application on one database, which is the least to operate of the platforms here. With MLflow, you can add replicas later with the Helm chart.

Frameworks vs. platforms​

The six tools fall into two groups.

  • Frameworks are libraries of metrics and tests that you run in code. Ragas and Promptfoo are frameworks. They are quick to start, but you store results, compare runs, and collect human feedback somewhere else.
  • Platforms add tracing, storage, a UI, datasets, human review, and production monitoring. MLflow, Langfuse, Arize Phoenix, and Opik are platforms.

You do not have to choose one or the other. MLflow runs Ragas, DeepEval, Phoenix, and TruLens metrics as third-party scorers, so you can keep the metrics your team already trusts and add tracing, review, and monitoring around them.

How to choose an open-source LLM evaluation tool​

Start from your constraints, not from the feature list.

If your team...Choose
Wants one free, self-hosted tool to trace, evaluate, find issues, and optimizeMLflow
Needs every feature, including access control, with no license keyMLflow
Wants tracing, evals, and prompt management, and already runs ClickHouseLangfuse
Wants simple OpenTelemetry tracing and experiments, and accepts Elastic License 2.0Arize Phoenix
Wants assertion-based test suites with PyTestOpik
Needs red teaming or model comparison from the command linePromptfoo
Needs RAG metrics in a lightweight libraryRagas

Before you commit, run a short pilot on one real agent workflow. Self-host the tool, collect traces, find at least three real failures, and check how the tool helps you measure and fix them.

FAQ​

What is the best open-source LLM evaluation tool in 2026?​

MLflow is the best open-source LLM evaluation tool for most teams in 2026. It is free under the Apache 2.0 license, has no feature gating, and covers tracing, LLM judges, automatic issue detection, human review, production monitoring, and prompt and judge optimization. Langfuse is a strong alternative for tracing and prompt management, and Ragas is a good choice for RAG metrics.

What is the best self-hosted LLM evaluation platform?​

MLflow is the best self-hosted LLM evaluation platform for most teams. You can start it with pip install mlflow and mlflow server, move to PostgreSQL and Kubernetes for production, and use every feature, including access control, without a license key. Langfuse and Opik are also self-hostable, with larger deployments built around ClickHouse.

Can I self-host MLflow for free?​

Yes. MLflow is open source under the Apache 2.0 license, and you can self-host every feature for free, including evaluation, tracing, review queues, and prompt optimization. There is no paid tier and no license key.

Is Arize Phoenix open source?​

Arize Phoenix is source-available, not open source by the OSI definition. It uses the Elastic License 2.0, which lets you use and self-host Phoenix for free but does not allow you to offer it to others as a hosted or managed service.

What is the best open-source RAG evaluation tool?​

Ragas is a popular open-source library for RAG metrics such as faithfulness, context precision, and context recall, and it can generate test data. To trace your RAG pipeline, store results, and add human review, run Ragas metrics inside MLflow as third-party scorers.

What is the difference between Langfuse and MLflow?​

Both are open-source platforms for tracing and evaluating LLM apps. MLflow is Apache 2.0, governed by the Linux Foundation, and has no license-gated features. It also covers prompt and judge optimization and classic ML. Langfuse is MIT-licensed with some enterprise features under a commercial license.

Get started with MLflow evaluation​

Install MLflow with pip install mlflow, start a server with mlflow server, and follow the evaluation quickstart to run your first LLM judge in a few minutes.

Best LLM Evaluation Platforms in 2026: 6 Platforms Compared

· 14 min read

Last reviewed: October 12, 2026. This is Part 1 of a two-part series. Part 2 compares the best open-source LLM evaluation tools you can self-host.

An LLM evaluation platform tells you whether your LLM app or agent gives correct, safe, and useful answers, before and after you ship. The best LLM evaluation platforms in 2026 do more than score outputs. They find failures in production traces, turn those failures into test cases, and help you fix the prompt or the judge that caused them.

This guide compares six platforms on the features that matter for evaluation: judges, datasets, human review, production monitoring, and what happens after a failure is found.

How we ranked them: by how much of the evaluation loop each platform covers in one tool, from finding failures to measuring and fixing them. This guide is published by the MLflow team, and every competitor description links to that platform's own documentation.

Quick answer: what are the best LLM evaluation platforms in 2026?​

The best LLM evaluation platforms in 2026 are:

  1. MLflow: best open-source, end-to-end evaluation platform, with automatic issue detection and built-in prompt and judge optimizers.
  2. LangSmith: best for teams that want to build within the LangChain ecosystem.
  3. Braintrust: best for a hosted experiment workflow with a polished UI.
  4. Confident AI (DeepEval): best for pytest-style evaluation with a large metric library.
  5. Galileo: best for low-latency guardrails that use small evaluation models.
  6. W&B Weave: best for teams that already use Weights & Biases.

Table of contents​

What to look for in an LLM evaluation platform​

An LLM evaluation platform should cover the full loop: find a failure, measure it, fix it, and confirm the fix. Use these criteria to compare platforms.

  • LLM-as-a-judge and code scorers. You need both. LLM judges score open-ended quality. Code scorers check exact rules, such as format or tool arguments.
  • Judge alignment. An LLM judge is only useful if it agrees with your domain experts. Look for a way to tune judges with human feedback.
  • Datasets from production traces. The best test cases come from real failures. The platform should turn a trace into a dataset row in one step.
  • Human review. Domain experts must label traces and correct judges without writing code.
  • Production monitoring. The same scorers should run on live traffic, not only in offline tests.
  • Issue discovery. At scale, nobody can read every trace. The platform should find and group failure patterns for you.
  • Optimization. After you find a failure, the platform should help you fix it, for example by optimizing the prompt against your evaluation data.
  • Open source and self-hosting. If your traces contain sensitive data, check whether you can run the platform on your own infrastructure.

LLM evaluation platforms comparison table​

PlatformStandout evaluation featureBest for
MLflowAutomatic Issue Detection, prompt and judge optimizersOpen-source, end-to-end evals
LangSmithOffline and online evaluations with annotation queuesLangChain and LangGraph teams
BraintrustSide-by-side experiments and the Loop assistantHosted experiment workflow
Confident AI (DeepEval)Large metric library, including G-EvalPytest-style test suites
GalileoLuna evaluation models for low-latency scoring and guardrailsRuntime guardrails
W&B WeaveEvaluations and leaderboards inside Weights & BiasesExisting W&B users

Each platform has a different focus. MLflow covers the full loop, from finding failures to fixing them, and it is free and open source.

1. MLflow​

MLflow is an open-source, end-to-end platform for evaluating, tracing, and improving LLM apps and agents. It is free under the Apache 2.0 license, hosted by the Linux Foundation, and it brings issue detection, evaluation, and prompt and judge optimization together in one tool.

  • Best for: teams that want one open-source tool for the full evaluation loop: trace, evaluate, find issues, and optimize.
  • Key fact: 30M+ monthly downloads, 28K+ GitHub stars, and 900+ contributors.

Automatic Issue Detection​

Automatic Issue Detection finds quality problems in the traces you already collect. It uses an LLM to analyze traces, groups related failures into issues, and tracks each issue over time. You start it from the MLflow UI in three clicks. You do not need to write scorers first, so it works even when you do not yet know what to measure.

This changes the order of work. A typical evaluation workflow starts by defining metrics. MLflow can show you the failure patterns first, so you know which judges to build.

Built-in optimizers for prompts and judges​

MLflow connects evaluation to optimization:

  • Prompt optimization. mlflow.genai.optimize_prompts() improves a prompt against your evaluation data. It gives you a structured way to iterate: every candidate prompt is scored with the same evaluation dataset and judges, and every optimized prompt is saved as a new version in the MLflow Prompt Registry. Each step is measured, not guessed, so you can hill-climb on quality with full confidence that a new version is better than the last one, and roll back if it is not. GEPA and DSPy optimizers sit behind one API, so you can switch algorithms without rewriting your code.
  • Judge alignment. MemAlign and SIMBA tune an LLM judge with human feedback, so the judge agrees with your domain experts. MemAlign shows improvement with a handful of labeled examples.

Key evaluation features​

  • LLM judges and code scorers. Use predefined judges for correctness, relevance, safety, and groundedness, write custom judges in plain language, or write code scorers in Python.
  • Trace-based judges. Judges can read the full trace, including tool calls and retrieval steps, not only the final answer.
  • Multi-turn evaluation. Evaluate whole conversations, and use conversation simulation to test agents before you have real users.
  • Third-party scorers. Run DeepEval and other scorer libraries inside MLflow, next to your own judges.
  • Human review. Review queues let domain experts label traces in the UI.
  • Production monitoring. Automatic evaluations run the same scorers on live traffic.
  • OpenTelemetry tracing. MLflow Tracing is OpenTelemetry-compatible and integrates with major agent frameworks and LLM providers.

Open source, free, and community-driven​

MLflow has no feature gating. Every feature in this section is in the open-source release, and you can self-host it for free. If you need a feature, open a feature request or a suggestion on GitHub. The maintainers review suggestions and feature requests from the community.

2. LangSmith​

LangSmith is the evaluation and observability platform from LangChain, and it is a great choice for teams who want to complete agent evaluation within the LangChain ecosystem. It runs offline evaluations on datasets and online evaluations on production traces, and it understands LangChain runs with no extra setup. Source: LangSmith evaluation docs.

  • Best for: teams whose agents run on LangChain or LangGraph.
  • Key fact: supports both offline evaluations on datasets and online evaluations on production traces.

Key evaluation features​

  • Offline and online evaluations. Run evaluators on datasets before release, and on live traces after release.
  • LLM-as-a-judge evaluators. Score outputs with a rubric, and improve the judge with few-shot corrections from human reviewers.
  • Annotation queues. Send runs or pairwise comparisons to human reviewers and track their status.
  • OpenTelemetry ingestion. Send OpenTelemetry traces to LangSmith and evaluate them.

3. Braintrust​

Braintrust is a hosted evaluation platform that connects datasets, experiments, scorers, and a prompt playground in one workflow for engineers and product managers. Its experiment view compares prompt and model variants row by row, and the same scorers can run on production traffic. Source: Braintrust evaluation docs.

  • Best for: teams that want a hosted experiment workflow with UI-driven evaluations, including product managers who review results.
  • Key fact: Loop, a built-in AI assistant, generates scorers and datasets from plain-language descriptions.

Key evaluation features​

  • Experiments. Compare prompt, model, and configuration variants side by side on the same dataset, and gate CI on regressions.
  • Scorers. Use code scorers, heuristic scorers, and LLM-as-a-judge scorers. The open-source autoevals library provides scoring functions you can run locally.
  • Online scoring. Score production traffic with the same scorers you use in experiments.
  • Playground. Replay traces, swap models, and preview score changes in the UI.

4. Confident AI (DeepEval)​

Confident AI is the hosted platform behind DeepEval, a popular open-source evaluation library. DeepEval lets you write LLM tests that look like pytest unit tests and run them in CI, and Confident AI stores the results, reports, and history for your team. Source: DeepEval docs.

  • Best for: engineers who want evaluation as code, inside their existing test suites and CI.
  • Key fact: DeepEval ships a large metric library, including G-Eval, a general LLM-as-a-judge metric for custom criteria.

Key evaluation features​

  • Metric library. Ready-made metrics for RAG, agents, and conversations, such as faithfulness, answer relevancy, task completion, and tool correctness.
  • G-Eval. Define custom criteria as steps, and get repeatable judge scores.
  • Test runs and regression testing. Run test suites in CI and compare results across prompt or model changes.
  • Red teaming. DeepTeam, a separate open-source project, simulates attacks such as jailbreaks and prompt injection.

5. Galileo​

Galileo is an enterprise platform for AI evaluation and agent reliability. It uses Luna, a family of small evaluation models, to score outputs with low latency and at low cost, so teams can evaluate production traffic and enforce guardrails before answers reach users. Source: Galileo docs.

  • Best for: enterprises that need guardrails in the request path, which block bad outputs before users see them.
  • Key fact: Luna-2 evaluation models are built for fast, low-cost scoring, so you can evaluate a large share of production traffic.

Key evaluation features​

  • Luna evaluation models. Small models tuned to detect issues such as hallucinations, and fine-tunable on your data.
  • Runtime guardrails. Block or transform outputs before they reach users.
  • Agent metrics. Metrics such as tool selection quality and action completion.
  • Insights Engine. Surfaces failure patterns across logs and traces.

6. W&B Weave​

W&B Weave is the LLM evaluation and tracing toolkit from Weights & Biases. It pairs datasets with scorers, versions every evaluation run, and compares results on leaderboards, so it fits well for teams that already track model training in W&B. Source: Weave evaluation docs.

  • Best for: teams that already use Weights & Biases for classic ML experiments.
  • Key fact: the Weave SDK is open source under Apache 2.0.

Key evaluation features​

  • Evaluations. Pair datasets with scorers, version the results, and drill into single examples.
  • Scorers. Built-in scorers plus custom scorer functions.
  • Tracing. Automatic tracing for common LLM and agent SDKs.
  • Leaderboards. Compare evaluation runs and models in shared views.

How to choose an LLM evaluation platform​

Start from your stack and your constraints, not from the feature list.

If your team...Choose
Wants one free, open-source tool to trace, evaluate, find issues, and optimizeMLflow
Wants to self-host evaluation for freeMLflow
Builds agents on LangChain or LangGraphLangSmith
Wants a hosted experiment UI for engineers and product managersBraintrust
Wants evaluation as pytest-style tests in CIConfident AI (DeepEval)
Needs low-latency guardrails in the request pathGalileo
Already tracks training runs in Weights & BiasesW&B Weave

Before you commit, run a short pilot on one real agent workflow. Collect traces, find at least three real failures, and check how each platform helps you measure and fix them. The platform that shortens that loop is the right one.

FAQ​

What is the best LLM evaluation platform in 2026?​

MLflow is the best LLM evaluation platform for most teams in 2026, because it is free, open source, and covers the full loop: tracing, LLM judges, automatic issue detection, human review, and prompt and judge optimization. LangSmith is a strong choice for LangChain teams, and Braintrust is a strong choice for a hosted experiment workflow.

What is the difference between an LLM evaluation platform and an LLM evaluation framework?​

An LLM evaluation framework is a library of metrics that you run in code, such as DeepEval. An LLM evaluation platform adds storage, a UI, datasets, human review, and production monitoring around those metrics. MLflow is a platform that can also run framework metrics as scorers.

Is there a free, open-source LLM evaluation platform?​

Yes. MLflow is free and open source under the Apache 2.0 license, with no feature gating. You can self-host every evaluation feature, including Automatic Issue Detection, review queues, and prompt optimization.

How do I find issues in production LLM traces?​

Use a platform that analyzes traces for you. MLflow's Automatic Issue Detection analyzes your traces, groups related failures into issues, and tracks them over time, so you do not need to read every trace by hand.

How do I make an LLM judge agree with human experts?​

Collect a small set of human labels, then align the judge to them. In MLflow, MemAlign and SIMBA tune a judge with human feedback. MemAlign shows improvement with a handful of labeled examples.

What platform should I use for automated LLM evaluation in production?​

Use a platform that runs the same scorers on live traffic that you use in offline tests. MLflow runs automatic evaluations on production traces with LLM judges and code scorers, and Automatic Issue Detection groups the failures it finds. It is free and open source.

Can I request a feature for MLflow?​

Yes. Open a feature request on GitHub. MLflow is community-driven, and the maintainers review suggestions and feature requests from users.

Get started with MLflow evaluation​

Install MLflow with pip install mlflow, then follow the evaluation quickstart to run your first LLM judge in a few minutes.

Part 2: open-source LLM evaluation tools​

Part 2 of this series compares six open-source LLM evaluation tools you can self-host: MLflow, Langfuse, Arize Phoenix, Opik, Promptfoo, and Ragas.