CertSafari
    Databricks Certified Generative AI Engineer Associate· Lessons

    Domain 6 · Lesson 56/56

    SME feedback with the MLflow Review App: labels, datasets and aligned judges

    Incorporate SME feedback to improve agent performance

    18 min read
    1.2% of exam
    6 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    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.

    The two Review App modes compared
    AspectChat UILabel existing traces
    What the expert doesChats with the deployed agent and gives feedback after each responseReviews logged traces and answers the questions in a labeling session
    Deployment requirementAgent on a Model Serving endpoint (not Databricks Apps)Any deployment, as long as traces are logged
    Labeling schemas usedNo; schemas do not apply to vibe checksYes; schemas define every question
    Best forConversational flows, validating updates before productionAmbiguous 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?

    Sources123

    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?

    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?

    Sources12

    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.

    Creating a labeling session with a built-in expectation schemapython
    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.

    Predefined schema names for built-in judges that use expectations
    Schema nameWhat experts provideUsed by built-in judges
    GUIDELINESIdeal instructions the agent should follow for a requestExpectationGuidelines
    EXPECTED_FACTSFactual statements that must be included for correctnessCorrectness, RetrievalSufficiency
    EXPECTED_RESPONSEThe complete ground-truth answerCorrectness, 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.

    An expectation-type schema that collects a full ground-truth responsepython
    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
    )

    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
    )

    Checkpoint 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?

    Sources45

    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. 1.Click Assess on the trace
    2. 2.Add an expectation that records the correct answer (ground truth)
    3. 3.Click Add to dataset to promote the trace, with its expectation, to an evaluation dataset
    4. 4.Open the trace from the experiment's Traces tab

    Sources34

    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.

    Aligning with the default optimizer, then registering the aligned judge under a new namepython
    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?

    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?

    Sources6

    Sources

    (6)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “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. 2.
      “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. 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. 4.
      “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. 5.
      “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. 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

    Ready to test yourself?

    Practise the 6 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.