llm evals platform
Summary
- An LLM evals platform runs the whole quality loop in one place: trace the app, turn real traces into evaluation datasets, score them with judges, gate releases, and keep scoring in production.
- Open-source MLflow covers that loop with MLflow Tracing,
mlflow.genai.evaluate(), built-in and custom judges, evaluation datasets, pytest regression tests marked with@mlflow.test, and automatic evaluation of new traces. - The feature that matters most is reuse. The same scorer definitions should gate a pull request, compare app versions and score live traffic.
- Expert feedback closes the loop: labels become ground truth for datasets and calibration data for judge alignment.
- On Databricks, managed MLflow keeps traces and evaluation datasets in Unity Catalog. Production monitoring, which runs registered scorers on sampled traffic, is in Beta.
llm evals platform
An LLM evals platform is the system of record for whether your LLM application is any good, and whether the last change made it better or worse. A library can score a dataset once. A platform keeps datasets, scorers, results and traces together across every version and on into production. MLflow is an open-source platform built for this loop. Databricks runs the same MLflow as a managed service, with traces and datasets governed in Unity Catalog.
What does an LLM evals platform include?
| Component | What it does | MLflow building block |
|---|---|---|
| Tracing | Records each step of a request | MLflow Tracing, @mlflow.trace, autologging |
| Evaluation datasets | Stores test inputs and expected results | mlflow.genai.datasets.create_dataset |
| Scorers | Judge quality with LLMs or code | mlflow.genai.scorers, make_judge, @scorer |
| Evaluation runs | Score an app version against a dataset | mlflow.genai.evaluate() |
| Regression tests | Fail CI when a known behavior breaks | @mlflow.test with pytest |
| Human feedback | Expert labels attached to traces | Feedback and expectations on traces |
| Judge alignment | Calibrate judges against expert labels | align() on a judge |
| Production scoring | Run judges on live traces | Automatic evaluation |
How to choose an evals platform
- Scorer reuse. Databricks' scorers documentation says the same scorer can be used in development and in production, which keeps evaluation consistent. Treat that as a requirement.
- Datasets from real traffic. Synthetic test sets miss the questions users actually ask. Look for a direct path from a production trace to a dataset record.
- Measurement and gating. MLflow's regression testing guide separates the two: a dataset evaluation measures aggregate quality, while a regression test answers "did this specific behavior break?"
- Trace-aware judges. Agents fail in retrieval and tool steps. Judges need access to the trace, not only the final answer.
- Open formats. MLflow Tracing is fully compatible with OpenTelemetry, so traces aren't locked to one viewer.
- Governance. Traces and datasets contain prompts, documents and user data. Access should follow your data permissions.
Gating releases with open-source MLflow
MLflow lets you write behavioral tests as ordinary pytest functions. This example is from the MLflow docs, where agent is a pytest fixture you define and the tests run through a pytest plugin you enable with pytest -p mlflow.pytest.plugin:
# tests/regression/test_support_agent.py
import mlflow
from mlflow.genai.scorers import Guidelines
@mlflow.test
def test_answers_concisely_in_english(agent):
result = mlflow.genai.evaluate(
predict_fn=agent.invoke,
data=[{"inputs": {"question": "What are your support hours?"}}],
scorers=[
Guidelines(name="is_english", guidelines="The answer must be written in English."),
Guidelines(name="is_concise", guidelines="The answer must be a single sentence."),
],
)
assert result.passed, result.reason
Every test in the session is recorded under a single MLflow run, so the CI result and the browsable record come from the same source. For live traffic, MLflow's automatic evaluation runs LLM judges on traces and multi-turn conversations as they're logged, with a configurable sample rate.
How Databricks approaches LLM evals
Databricks describes MLflow on Databricks as the same open-source product, managed and integrated with the platform, so the code above runs unchanged against a workspace. What the platform adds:
- Governed datasets.
mlflow.genai.datasets.create_dataset(uc_table_name=...)creates the dataset in a Unity Catalog schema, with fields that track lineage and version history (evaluation dataset reference). - A default judge model. Built-in judges use a Databricks-hosted LLM unless you set the
modelargument. - Expert review. The Review App lets subject-matter experts define what a high-quality response looks like. Developers click Assess to record an expected answer and Add to dataset to turn a trace into a test case.
- Production monitoring (Beta). You call
.register()on a scorer and then.start()with aScorerSamplingConfig, and results are attached as feedback to each evaluated trace (production monitoring). Custom@scorerfunctions must be defined and registered from a Databricks notebook, and class-based scorers can't be registered for monitoring. - Traces in Unity Catalog. Traces are stored as OpenTelemetry-format Delta tables with schema- and table-level access control, and you can query them with SQL.
Use cases
- Prompt or model change review: run the same dataset and judges against both versions in
mlflow.genai.evaluate()before merging. - Incident to test: a reported bad answer becomes a trace with an expectation, then a dataset record and a regression test.
- Domain sign-off: subject-matter experts label a sample in the Review App, and those labels align a custom judge that then scores at volume.
FAQs
What's the difference between an evals library and an evals platform?
A library computes scores. A platform also stores datasets, results and traces over time, so you can compare versions and reuse judges in CI and production.
Should LLM evaluation run in CI?
Yes, for known failure modes. MLflow's @mlflow.test turns a past failure into a pass/fail pytest check that runs on every change.
Can production traffic feed my evaluation datasets?
Yes. On Databricks, Add to dataset turns a trace into a dataset record. In code, mlflow.search_traces() retrieves traces to work with.
Is production monitoring generally available on Databricks?
No. Production monitoring on Databricks is in Beta as of October 2026. Evaluation with mlflow.genai.evaluate() doesn't depend on it.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.