What you will be able to do
- Choose between the Review App Chat UI and labeling existing traces for a given expert-review need
- Grant a domain expert the minimum access needed to label traces or chat with an agent
- Create a labeling session with Feedback or Expectation labeling schemas that fit what you need to collect
- Turn SME expectations from a labeling session into evaluation dataset records
- Calibrate a built-in or custom LLM judge to expert standards with align() and register the result
Key concept
Feedback versus expectation — Every label an expert attaches to a trace is one of two assessment types. Feedback judges the output the agent actually gave. An expectation records the correct, ground-truth output. Expectations become evaluation test cases, and feedback that uses a judge's name is what calibrates that judge.
1.Why expert judgment enters through the Review App
Automated judges only score what they were told to look for, and they have never read your claims policy or your product catalogue. A subject matter expert (SME) has. In MLflow, expert judgment is recorded directly on a trace, so the rating or the correct answer stays attached to the exact interaction it describes: the inputs, the outputs, and the retriever and tool steps in between. The MLflow Review App is how experts who are not developers add that judgment.
Expert input does three jobs. It shows what a high-quality, correct response looks like for a specific query. It provides the signal for aligning LLM judges with business requirements. It also turns production traces into evaluation datasets. All three rest on the distinction between two assessment types. Feedback says whether the response the agent gave was good. An expectation says what the correct response would have been. Only an expectation can serve as ground truth for a later test.
The Review App gives experts two ways in, and each answers a different question. The Chat UI is for vibe checks. Experts type questions to a live agent, rate each response with built-in feedback controls, and keep the conversation going to test multi-turn flows. It requires an agent deployed to a Model Serving endpoint and does not currently support agents deployed on Databricks Apps. Labeling existing traces works however the agent is deployed. Here experts review interactions that already happened, and structured questions guide what they record. This mode is where ground truth comes from.
| Aspect | Chat UI | Label existing traces |
|---|---|---|
| What the expert does | Chats with the deployed agent and gives feedback after each response | Reviews logged traces and answers the questions in a labeling session |
| Deployment requirement | Agent on a Model Serving endpoint (not Databricks Apps) | Any deployment, as long as traces are logged |
| Labeling schemas used | No; schemas do not apply to vibe checks | Yes; schemas define every question |
| Best for | Conversational flows, validating updates before production | Ambiguous or borderline traces, edge cases, judge disagreements |
Experts' time is limited, so choose the traces they review on purpose. Good candidates are traces of ambiguous or borderline quality, edge cases that automated judges do not cover, examples where automated metrics disagree with the expected quality, and a representative sample of different interaction patterns. In the MLflow UI you can filter traces by status, tags or time range to find them. For new human-review workflows, Databricks recommends review queues (Beta), which route traces and dataset records to reviewers one item at a time.
Checkpoint 1 of 8· Check yourself
Your team deployed a claims-support agent on Databricks Apps. You want claims specialists to provide the correct answers for tricky past queries so you can use them later as evaluation test cases. Which Review App approach fits?
The Chat UI needs an agent on a Model Serving endpoint, but labeling existing traces works however the agent is deployed. Only an expectation records the correct answer that can serve as ground truth. Ratings are feedback, and labeling schemas do not apply in the Chat UI.
“If you deploy your agent on Databricks Apps, you can still label existing traces for evaluation.”Source: docs.databricks.com
2.The minimum access a reviewer needs
Reviewer access is a short list of specific grants, and none of them is an admin role. To label existing traces, the expert must be provisioned in the Databricks account, through account-level SCIM from your identity provider or by manual registration. They also need CAN_EDIT on the MLflow experiment that holds the traces. Two workspace entitlements complete the list, and each has a concrete reason.
The Workspace access entitlement is required because the Review App loads traces through workspace UI routes, so provisioning the account alone is not enough. The Databricks SQL access entitlement is required because the Review App queries a SQL warehouse to display traces and to record labels. The expert does not need notebook or cluster permissions, a personal access token for Unity Catalog tables, or rights to create and delete experiments.
The Chat UI swaps the experiment grant for an endpoint grant. An expert who only chats with the agent needs account provisioning, the Workspace access entitlement, and CAN_QUERY on the model serving endpoint, because their questions go to the live endpoint and not to stored traces.
Checkpoint 2 of 8· Check yourself
A claims specialist has been provisioned in your Databricks account. They have the Workspace access entitlement and CAN_EDIT on the MLflow experiment. They still cannot view or label traces in the Review App's labeling session. Which grant is missing?
The Review App queries a SQL warehouse to display traces and record labels, so the reviewer needs the Databricks SQL access entitlement. CAN_QUERY on an endpoint is only needed for the Chat UI. CAN_MANAGE gives more than the minimum, and a personal access token is not required.
“because the Review App queries a SQL warehouse to display traces and record labels”Source: docs.databricks.com
Checkpoint 3 of 8· Exam question
An organization contracts an external subject matter expert to review and label agent traces in the Review App as part of a labeling session, but the expert should not receive broader access to the Databricks workspace. What is the minimum access the expert needs?
Correct answer: A — CAN_EDIT on the MLflow experiment that holds the traces, plus an account-level user identity for the external expert.
- A. Labeling traces in the Review App needs CAN_EDIT on the specific MLflow experiment and an account-level identity for the reviewer. Workspace access is not required, so this is the minimum that still lets the expert submit labels.
- B. CAN_MANAGE lets the expert change the experiment's permissions and delete it, and a workspace user account opens the workspace itself to a contractor. Both go beyond what labeling needs and break the limit on broader workspace access.
- C. The experiment permission is right, but a workspace user account and SQL warehouse access give the contractor workspace resources unrelated to labeling. The Review App works without them, so this breaks the limit on broader workspace access.
- D. CAN_READ lets the expert view the traces but not save labels. Submitting feedback writes assessments to the experiment's traces, which needs CAN_EDIT, so the labeling session would fail for this reviewer.
3.Labeling sessions and the schemas that define the questions
A labeling session is a container for the traces you want reviewed and for the labels experts attach to them. It is a special type of MLflow run, so sessions appear in the Evaluations tab, and mlflow.search_runs() can reach their traces and assessments. When you create one, you set a name, the assigned users, optional agent and multi-turn chat settings, and at least one labeling schema. Session names do not have to be unique, so code should store session.mlflow_run_id to refer to a session later.
import mlflow.genai.labeling as labeling
import mlflow.genai.label_schemas as schemas
# Create a simple labeling session with built-in schemas
session = labeling.create_labeling_session(
name="customer_service_review_jan_2024",
assigned_users=["alice@company.com", "bob@company.com"],
label_schemas=[schemas.EXPECTED_FACTS] # Required: at least one schema needed
)After you create a session, it stays empty until you add traces. In the UI, select traces in the Traces tab and choose Add to labeling session from the Actions menu. In code, call add_traces(). Share the session to give reviewers access: click Share, enter each reviewer's email, and they are notified and given access to the Review App.
The labeling schema decides what the expert actually produces. A schema sets the question shown to reviewers, the input method, validation rules, and optional instructions. Each schema has a type. A feedback schema collects subjective assessments such as ratings, preferences or opinions. An expectation schema collects objective ground truth such as correct answers or expected behaviour. If you need reference answers for testing correctness, a 1-to-5 quality rating cannot supply them, however carefully experts score. Only an expectation schema records what the right answer was.
| Schema name | What experts provide | Used by built-in judges |
|---|---|---|
| GUIDELINES | Ideal instructions the agent should follow for a request | ExpectationGuidelines |
| EXPECTED_FACTS | Factual statements that must be included for correctness | Correctness, RetrievalSufficiency |
| EXPECTED_RESPONSE | The complete ground-truth answer | Correctness, RetrievalSufficiency |
If you create a custom schema under one of these predefined names, the labels it collects stay compatible with the built-in judges. Custom schemas are scoped to the experiment, so names must be unique within it. To change one, call create_label_schema again with overwrite=True. The input type should match the answer you want. InputCategorical is a single-select drop-down for mutually exclusive ratings. InputCategoricalList is a multi-select for cases such as several error types. InputText is a free-form box for explanations. InputTextList holds several items, such as required facts. InputNumeric takes a numeric range for scores.
expected_response_schema = schemas.create_label_schema(
name=schemas.EXPECTED_RESPONSE,
type=LabelSchemaType.EXPECTATION,
title="Expected response",
input=InputText(),
instruction="Please provide a correct agent response.",
overwrite=True
)Two. Tone is a subjective judgment of the actual output, so it needs a feedback schema, for example InputCategorical with the options Too formal, Just right and Too casual. Required facts are ground truth, so they need an expectation schema with InputTextList. Both schemas can be attached to the same labeling session.
Checkpoint 4 of 8· Fill the gap
Experts using this schema write the complete correct answer, which Correctness will later use as the reference. Which schema type goes in the blank?
expected_response_schema = schemas.create_label_schema(
name=schemas.EXPECTED_RESPONSE,
type=LabelSchemaType. ? ,
title="Expected response",
input=InputText(),
instruction="Please provide a correct agent response.",
overwrite=True
)A correct answer is objective ground truth, so the schema has to be an expectation type. A feedback schema only records subjective ratings of the output the agent actually gave, and those cannot act as reference answers for testing correctness.
Source: docs.databricks.comCheckpoint 5 of 8· Exam question
A GenAI engineering team wants to build a high-quality evaluation dataset from production traces by having subject matter experts (SMEs) supply correct reference answers that can later be used to test agent correctness. Which approach should they use?
Correct answer: A — Create a labeling session with create_labeling_session() and an Expectation-type schema such as EXPECTED_RESPONSE, so SMEs record the expected answer on each trace.
- A. An Expectation-type schema such as
EXPECTED_RESPONSEin a labeling session lets SMEs attach a reference answer to each production trace. Those answers can then be added to an evaluation dataset and used to test agent correctness. - B. A Feedback-type schema with a numeric scale records a subjective rating of how good a response looks. It gives no reference answer for the trace, so the resulting labels cannot be used to test whether the agent answers correctly.
- C. The built-in
GUIDELINESschema captures general rules a response should follow. It does not capture the correct answer for a specific trace, so it cannot supply the per-trace reference answers the team needs for correctness testing. - D. Inference tables store raw request and response payloads for monitoring. They are not traces, and they offer SMEs no schema-based labeling workflow. Hand-editing a Delta table with SQL is not a practical way for SMEs to record structured reference answers.
4.Turning expert expectations into evaluation dataset records
An expectation recorded on a real trace is already a test case: it holds the input, and it holds the answer the agent should have given. Turning it into an evaluation record means moving it into an evaluation dataset that future agent versions are scored against. There are two ways to do this, one trace at a time or one session at a time.
From the trace UI, anyone reviewing a trace can click Assess, then Add expectation to record the correct answer, and then Add to dataset to promote the trace with its expectation. Because the label lives on the trace, the reviewer never leaves the trace view, and the reviewer does not have to be a developer.
At session scale, the labeling session's sync() method copies collected expectations into an evaluation dataset as an upsert. Each trace's inputs act as the record key. A trace whose inputs match an existing record updates that record's expectations of the same name. A trace with new inputs becomes a new record. Records with other inputs are left as they are. Because of this, you can run review rounds again and again: a second session that corrects last month's answers updates those records without duplicating them, and it adds the queries nobody had labelled yet.
The same expert work also strengthens retrieval testing. When SMEs record EXPECTED_FACTS or EXPECTED_RESPONSE on real queries, they are saying what the retrieved context must support, which is what RetrievalSufficiency checks. Those labels can therefore seed building a retrieval evaluation set, where each query is paired with the documents it should retrieve.
Checkpoint 6 of 8· Put it in order
While browsing production traces, a support lead finds one where the agent gave a wrong answer. They want that interaction to become a test case that future agent versions are scored against. Put the trace-UI steps in order.
- 1.Click Assess on the trace
- 2.Add an expectation that records the correct answer (ground truth)
- 3.Click Add to dataset to promote the trace, with its expectation, to an evaluation dataset
- 4.Open the trace from the experiment's Traces tab
The expectation has to be on the trace before it is promoted. Add to dataset copies the trace together with its expectation, and the dataset record is only a usable test case if it carries that ground-truth answer.
“Click Assess, then Add expectation to record the correct answer (ground truth). The expectation is stored on the trace, alongside its inputs, outputs”Source: docs.databricks.com
5.Aligning an LLM judge to expert standards
A judge that often disagrees with your experts gives you a misleading score at scale. Judge alignment fixes this from the feedback itself: you do not rewrite the prompt by hand. The workflow is the same for built-in judges such as RelevanceToQuery, Safety and Correctness and for custom judges built with make_judge(). It has three steps. First, run the judge on traces to get baseline assessments. Second, have domain experts review and correct those assessments. Third, call the judge's align() method, which returns a new judge whose standards are closer to the experts'. The optimizers come from mlflow.genai.judges.optimizers, and if you name none, MemAlign is used.
The detail that silently breaks alignment is the feedback name. Human feedback must be logged under exactly the judge's name attribute. For a built-in judge, that is the default snake_case name, such as relevance_to_query for RelevanceToQuery, unless you passed name= when you created it. For a custom judge, it is the name you gave make_judge(), such as product_quality. If experts label under a different name, the alignment step has no human signal to learn from.
Experts can give feedback in two ways. Reviewing in the UI suits smaller sets of under 100 examples, and it suits teams still refining their criteria. Logging programmatically with mlflow.log_feedback and a HUMAN assessment source suits existing ground-truth labels, sets of 100 or more, and cases where collection must be reproducible. Either way, the quality of the feedback limits the result. Use several domain experts, at least 30% negative examples (poor or fair ratings), detailed rationales, and samples that cover both edge cases and common scenarios.
if len(traces_for_alignment) >= 10:
# Align the judge based on human feedback using the default optimizer
aligned_judge = initial_judge.align(traces_for_alignment)
# Register the aligned judge for production use.
# Use a new name to distinguish it from the original judge.
aligned_judge.register(
experiment_id=experiment_id,
name=f"{initial_judge.name}_aligned",
tags={"alignment_date": "2025-10-23", "num_traces": str(len(traces_for_alignment))}
)Ten traces are enough for reasonable alignment, and 50 to 100 give better results. Compared with baseline judges, alignment improves agreement with human assessments by 30 to 50 percent. Register the aligned judge under a new name so the baseline judge remains available for comparison. One limit applies: session-level (multi-turn) judges such as ConversationCompleteness cannot be aligned.
Checkpoint 7 of 8· Check yourself
Experts reviewed 60 traces scored by a RelevanceToQuery judge created with its default settings. They logged their corrections as human feedback named "expert_relevance". When you call align(), the result does not move any closer to the experts' ratings. What is the most likely cause?
align() uses only human feedback logged under exactly the judge's name attribute. For a default RelevanceToQuery judge, that name is relevance_to_query. Ten traces are already enough, built-in judges can be aligned, and when no optimizer is named, MemAlign is used.
“The human feedback assessment name must exactly match the judge's name attribute.”Source: docs.databricks.com
Checkpoint 8 of 8· Exam question
A team's custom LLM judge for evaluating response correctness frequently disagrees with domain expert assessments on production traces. They want to systematically improve the judge's agreement with expert judgment without hand-tuning the judge's prompt. Which approach should they take?
Correct answer: A — Log expert feedback on production traces under the same name as the judge, then call the judge's align() method on those traces to get an aligned judge.
- A. Human feedback logged under the judge's name gives
align()the expert labels it needs. It optimizes the judge's instructions against those labels and returns an aligned judge, with no manual prompt editing. - B. Writing expert-rated examples into the judge's instructions is manual prompt tuning, which the team wants to avoid. It is not a systematic optimization of the judge against the expert labels.
- C.
Safetyis a built-in judge that checks a different quality dimension, harmful content, not the team's correctness criteria. Swapping to it drops the custom judge and does nothing to align it with expert assessments. - D. Setting temperature to 0 makes the judge's outputs more repeatable, but a consistent judge can still disagree with experts. Without expert labels feeding an optimization step, agreement does not improve systematically.
Sources6
Sources
(6)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/expert-feedback/label-existing-tracesOfficial docs
“MLflow's Review App provides a structured process for collecting this expert feedback on real interactions with your application.”
↩︎ Why expert judgment enters through the Review App“Experiment access: CAN_EDIT permission on the MLflow experiment.”
↩︎ The minimum access a reviewer needs“because the Review App queries a SQL warehouse to display traces and record labels”
↩︎ The minimum access a reviewer needs“The Review App loads traces through workspace UI routes that require this entitlement, so account provisioning alone is not enough.”
↩︎ Exam trap 2 - 2.https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/expert-feedback/live-app-testingOfficial docs
“The Review App Chat UI requires an agent deployed to a Model Serving endpoint.”
↩︎ Why expert judgment enters through the Review App“Endpoint access: CAN_QUERY permission on the model serving endpoint.”
↩︎ The minimum access a reviewer needs“The Review App Chat UI requires an agent deployed to a Model Serving endpoint.”
↩︎ Exam trap 4“If you deploy your agent on Databricks Apps, you can still label existing traces for evaluation.”
↩︎ Checkpoint - 3.
“feedback evaluates the app's actual output (was the response good?), and an expectation defines the correct, ground-truth output.”
↩︎ Why expert judgment enters through the Review App“a trace that carries a ground-truth expectation becomes a ready-made test case for automated evaluation.”
↩︎ Turning expert expectations into evaluation dataset records“feedback evaluates the app's actual output (was the response good?), and an expectation defines the correct, ground-truth output.”
↩︎ Key concept“Click Assess, then Add expectation to record the correct answer (ground truth). The expectation is stored on the trace, alongside its inputs, outputs”
↩︎ Checkpoint - 4.https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/concepts/labeling-sessionsOfficial docs
“A labeling session is a special type of MLflow run that contains a specific set of traces that you want domain experts to review”
↩︎ Labeling sessions and the schemas that define the questions“Use the MLflow run ID (session.mlflow_run_id) to store and reference sessions.”
↩︎ Labeling sessions and the schemas that define the questions“Each trace's inputs serve as a unique key to identify records in the dataset.”
↩︎ Turning expert expectations into evaluation dataset records“Traces from the labeling session that do not match existing trace inputs in the dataset are added as new records.”
↩︎ Turning expert expectations into evaluation dataset records“For traces with matching inputs, expectations from the labeling session overwrite existing expectations in the dataset when the expectation names are the same.”
↩︎ Prediction - 5.https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/concepts/labeling-schemasOfficial docs
“Labeling schemas define the specific questions that domain experts answer when labeling existing traces in the Review App.”
↩︎ Labeling sessions and the schemas that define the questions“expectation: Objective ground truth like correct answers or expected behavior.”
↩︎ Labeling sessions and the schemas that define the questions“expectation: Objective ground truth like correct answers or expected behavior.”
↩︎ Exam trap 1 - 6.
“The human feedback assessment name must exactly match the judge's name attribute.”
↩︎ Aligning an LLM judge to expert standards“You can achieve reasonable alignment with at least 10 traces, but 50-100 traces yield better results.”
↩︎ Aligning an LLM judge to expert standards“When you call align() without specifying an optimizer, the MemAlign optimizer is used automatically”
↩︎ Aligning an LLM judge to expert standards“Alignment is not supported for session-level (multi-turn) judges such as ConversationCompleteness.”
↩︎ Aligning an LLM judge to expert standards“Balanced examples: Include at least 30% negative examples (poor/fair ratings)”
↩︎ Aligning an LLM judge to expert standards“The human feedback assessment name must exactly match the judge's name attribute.”
↩︎ Exam trap 3