Skip to content

Knowing which evaluation judges need a ground-truth label to run

Databricks evaluation judges (used with Mosaic AI Agent Evaluation / mlflow.evaluate) fall into two categories: those that need a labeled ground truth answer to compare against, and those that assess quality using only the input and generated output. Knowing which judges require ground truth is essential for correctly building evaluation datasets and interpreting metric availability.

1 · Learn the must-know

  • Correctness (answer correctness) judges require a ground truth/expected answer because they measure factual agreement between the model output and the reference answer.
  • Judges like answer relevance, groundedness/faithfulness, and context relevance do NOT require ground truth since they evaluate the output against the retrieved context or the input query alone.
  • Ground truth is typically supplied as a labeled evaluation dataset column (e.g., an 'expected_response' or similar field) when calling mlflow.evaluate.
  • If ground truth is omitted, ground-truth-dependent metrics such as correctness will be skipped or unavailable in the evaluation results.
  • Judges that rely on retrieved context (e.g., groundedness, context sufficiency/relevance) instead depend on the retrieval step output, not a human-labeled answer.
  • Choosing the right judges depends on whether curated reference answers exist; RAG quality checks (faithfulness, relevance) can run without them, but accuracy/correctness checks cannot.

2 · Check your understanding

Check this objectiveFree · always available

A Generative AI Engineer is scoring a customer-support RAG bot with mlflow.evaluate() and Databricks Agent Evaluation. The evaluation dataset includes an expected_response column containing pre-written reference answers written by subject-matter experts. The engineer wants a metric that flags responses which are factually wrong relative to those references. Which built-in judge should be configured, since it is the one that consumes the expected_response column as ground truth?

Your objective map0 tried · 0 answered correctly · 56 untouched

What you have tried across Databricks GenAI Engineer's objectives, not a readiness score.

Design Applications10.71% of the exam*0 of 6 tried
Data Preparation14.29% of the exam*0 of 8 tried
Application Development23.21% of the exam*0 of 13 tried
Assembling and Deploying Applications26.79% of the exam*0 of 15 tried
Governance7.14% of the exam*0 of 4 tried
Evaluation and Monitoring17.86% of the exam*0 of 10 tried

* Our estimate. Databricks publishes no section weights.

3 · Keep going