---
title: Collect feedback and build datasets
description: Capture human feedback and ground-truth expectations directly on your agent traces, and turn a trace into an evaluation test case in a few clicks. Developers, domain experts, and end users each have a way to contribute.
canonical_url: https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/
---

# Collect feedback and build datasets

> [!TIP]
>
> Using a coding agent? Paste this prompt:
>
> ```
> Read the documentation at https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback and set up human feedback collection and evaluation datasets for my agent.
> ```
>
> Optionally, install [mlflow/skills](https://github.com/mlflow/skills) for a deeper integration with MLflow.

Human judgment — ratings, comments, and ground-truth expectations from developers, users, and domain experts — is what keeps evaluation aligned with what "good" actually means for your app. In MLflow you record that judgment directly on a trace, and a trace that carries a ground-truth expectation becomes a ready-made test case for [automated evaluation](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/concepts/eval-harness.md).

## Quick overview: turn a trace into a test case

1. In the **Traces** tab, click a trace to open it.
2. Click **Assess**, then **Add expectation** to record the correct answer (ground truth). The expectation is stored on the trace, alongside its inputs, outputs, and any other feedback.
3. Click **Add to dataset** to add the trace — with its expectation — to an [evaluation dataset](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/concepts/eval-datasets.md).

![Open a trace and use the Assessments panel to add feedback or an expectation.](https://docs.databricks.com/aws/en/images/mlflow3-genai/human-feedback/assess-trace.png)

That trace is now a test case: you captured the expected answer on a real interaction and promoted it to a dataset you can evaluate future versions against. Because the feedback lives on the trace, anyone who reviews traces — not just the developer — can do this without leaving the trace UI.

## Who leaves feedback

Feedback comes in two forms — **feedback** evaluates the app's actual output (was the response good?), and an **expectation** defines the correct, ground-truth output. Each source of judgment has its own mechanism.

### Developers

Annotate traces as you build, to track quality notes and mark examples for regression testing. See [Label traces as a developer](https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/dev-annotations.md).

### <a id="expert-feedback" /> Domain experts

Engage subject-matter experts through the Review App to define what a high-quality response looks like and to align LLM judges with your business requirements. There are two approaches: [Test an agent with the Chat UI](https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/expert-feedback/live-app-testing.md) or [Enable experts and collaborators to label traces](https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/expert-feedback/label-existing-traces.md).

> [!NOTE]
>
> For new human-review workflows, Databricks recommends [review queues](https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/expert-feedback/review-queues.md) (Beta), which route traces and dataset records to reviewers one item at a time.

### End users

Capture feedback from users of your deployed app to surface problematic queries and preserve successful interactions. See [Enrich traces: tags, context, and feedback](https://docs.databricks.com/aws/en/mlflow3/genai/tracing/enrich-traces.md).

## <a id="additional-resources" /> Next steps

* [Enable experts and collaborators to label traces](https://docs.databricks.com/aws/en/mlflow3/genai/human-feedback/expert-feedback/label-existing-traces.md) - Bring in domain experts and collaborators to label traces.
* [Building MLflow evaluation datasets](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/build-eval-dataset.md) - Package labeled traces and expectations into a dataset.
* [Evaluate and improve](https://docs.databricks.com/aws/en/mlflow3/genai/eval-monitor/index.md) - Evaluate and improve your app against the datasets you build.
