Skip to main content

llm evaluation platform

Summary

  • An LLM evaluation platform scores an application's outputs against defined quality criteria, using evaluation datasets, LLM judges, code-based checks and human feedback, and ties every score to the trace that produced it.
  • Look for built-in and custom LLM judges, code-based scorers that can read the full trace, managed evaluation datasets, multi-turn evaluation and a review workflow for subject-matter experts.
  • Use one scorer definition before release and on live traffic, so the bar you test against is the bar you monitor.
  • Open-source MLflow runs mlflow.genai.evaluate() over a dataset with a predict function and a list of scorers, and attaches the results to traces as feedback.
  • On Databricks, built-in judges run on Databricks-hosted LLMs, evaluation datasets are stored in Unity Catalog, and production monitoring (Beta) runs registered scorers on a sample of live traces.

llm evaluation platform

An LLM evaluation platform tells you whether an LLM application or agent is good enough to ship, and whether your last change made it better or worse. It runs the app over a set of test inputs, scores each response with LLM judges, code checks and human reviewers, and keeps those scores attached to the traces they came from. Choose one that applies the same scorers in development and in production. MLflow's open-source GenAI evaluation is built on that model, and it's the evaluation layer of MLflow on Databricks.

What is an LLM evaluation platform?

Generative output rarely has one right answer, so evaluation uses scorers instead of classic accuracy metrics: functions that judge a response for correctness, groundedness, safety or adherence to your guidelines. MLflow defines each evaluation by three parts: a dataset of inputs and expectations, scorers as the evaluation criteria, and a predict function that generates the outputs.

Component What it is Why it matters
Evaluation dataset Test inputs plus optional expectations (ground truth) A fixed test set lets you compare versions fairly
LLM judge An LLM prompted to assess a response against criteria Scales review of open-ended text
Code-based scorer A Python function that checks the output or the trace Cheap, deterministic checks on format or tool use
Human feedback Expert or end-user assessments recorded on traces The reference that judges are tuned against
Evaluation run Per-row scores with rationales, attached to each trace Shows exactly where a change regressed

Key capabilities to evaluate

Capability Why it matters
Built-in judges for common failures Relevance, groundedness, safety and correctness checks without writing judge prompts
Custom judges in plain language Encodes business rules, such as tone or required disclaimers
Trace-aware scorers Agents fail in intermediate steps, so scorers should see retrieval and tool calls, not just the final answer
Multi-turn evaluation Chat and agent failures often span a conversation: lost context, repeated questions, a frustrated user
Dataset management Test sets you can grow from production traces and expert labels
Expert review workflow Subject-matter experts label responses without writing code
Offline and online runs The same scorer runs on a test set before release and on sampled live traffic after
Open formats Judges, datasets and traces you can keep if you change frameworks or models

Running an evaluation with open-source MLflow

mlflow.genai.evaluate() takes the dataset, a predict function and a list of scorers. Built-in judges such as Correctness and Guidelines sit next to code-based scorers written with the @scorer decorator.

import mlflow
from mlflow.genai.scorers import Correctness, Guidelines, scorer

dataset = [
    {"inputs": {"question": "Can MLflow manage prompts?"},
     "expectations": {"expected_response": "Yes!"}},
]

@scorer
def no_apology(outputs) -> bool:
    return "sorry" not in str(outputs).lower()

results = mlflow.genai.evaluate(
    data=dataset,
    predict_fn=my_app,  # your function: question in, answer out
    scorers=[Correctness(),
             Guidelines(name="is_english", guidelines="The answer must be in English"),
             no_apology],
)

Open the MLflow UI to review the results. In open-source MLflow, LLM judges need an LLM configured to act as the judge. MLflow's automatic evaluation can also run LLM judges on traces as they're logged; code-based scorers are for offline evaluation only.

How Databricks approaches LLM evaluation

MLflow on Databricks is the same open-source MLflow, managed, so the code above runs unchanged. Databricks adds:

  • Judges ready to run. Built-in judges use Databricks-hosted LLMs. They include RelevanceToQuery, RetrievalGroundedness, RetrievalRelevance, Safety, Correctness, ToolCallCorrectness and ToolCallEfficiency, plus multi-turn judges such as ConversationCompleteness, UserFrustration and KnowledgeRetention.
  • Evaluation from the UI. Select traces in an experiment's Traces tab, choose Actions > Evaluate, and the results attach to each trace and appear under Evaluation runs.
  • Datasets in Unity Catalog. mlflow.genai.datasets.create_dataset() creates a dataset in a Unity Catalog schema, and merge_records() adds traces you selected with mlflow.search_traces(), so real production failures become test cases.
  • Expert feedback. The Review App lets subject-matter experts define what a good response looks like and helps align LLM judges with business requirements. Review queues, which route traces to reviewers one at a time, are in Beta.
  • Production monitoring (Beta). Registered scorers run automatically on a configurable sample of incoming traces, and results are attached to each trace as feedback.

Start with the evaluation overview and the built-in judges reference.

FAQs

What's the difference between LLM evaluation and LLM monitoring?

Evaluation runs scorers over a curated dataset when you call it, typically before a release. Monitoring runs LLM judges automatically on live traces. Using the same judges for both keeps your release bar and production bar aligned.

Do I need ground truth to evaluate an LLM app?

Not for every check. Judges such as RelevanceToQuery, Safety and RetrievalGroundedness don't require ground truth, while Correctness compares the response to an expected answer.

Can I trust LLM judges?

Calibrate them first. Compare judge results with expert labels on the same traces, refine the criteria where they disagree, and keep a human in the loop for high-stakes decisions.

Is MLflow's evaluation open source?

Yes. MLflow is Apache-2.0 licensed, and mlflow.genai.evaluate(), the built-in scorer classes and the @scorer decorator are part of the open-source project.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.