Skip to content

docs(evaluate): document rubric_based_multi_turn_trajectory_quality_v1 and clarify Rubric.type / criterion.rubrics#1853

Draft
zettaittenani wants to merge 1 commit into
google:mainfrom
zettaittenani:docs/evaluate-rubric-clarifications
Draft

docs(evaluate): document rubric_based_multi_turn_trajectory_quality_v1 and clarify Rubric.type / criterion.rubrics#1853
zettaittenani wants to merge 1 commit into
google:mainfrom
zettaittenani:docs/evaluate-rubric-clarifications

Conversation

@zettaittenani

@zettaittenani zettaittenani commented Jun 22, 2026

Copy link
Copy Markdown

Fixes #1852.

What

Closes a documentation gap around rubric-based evaluation criteria in docs/evaluate/criteria.md. Three small additions:

  1. New section: rubric_based_multi_turn_trajectory_quality_v1. The metric is registered in metric_evaluator_registry.py and exists in upstream ADK 2.x, but the explanatory section that the other two rubric-based metrics have was missing. Also adds the corresponding row to the criteria table at the top of the page.
  2. Rubric.type notes added to each rubric-based metric section. Each RubricBasedEvaluator subclass uses a RUBRIC_TYPE ClassVar that acts as a filter — rubrics carried on EvalCase.rubrics are only picked up when their type field matches the evaluator's expected value:
    Metric Required Rubric.type
    rubric_based_final_response_quality_v1 FINAL_RESPONSE_QUALITY
    rubric_based_tool_use_quality_v1 TOOL_USE_QUALITY
    rubric_based_multi_turn_trajectory_quality_v1 TRAJECTORY_QUALITY
    The existing examples also now include the type field explicitly so users have a complete template.
  3. criterion.rubrics requirement clarified. RubricBasedEvaluator.__init__ asserts criterion.rubrics is non-empty (rubric_based_evaluator.py:332), and EvalCase.rubrics is additive on top of the criterion-level list (create_effective_rubrics_list). The "Notes On Rubrics" block in each rubric-based metric section now states both.

Why

Without these notes, three failure modes happen quickly in practice (see #1852 for full context):

  1. Users see rubric_based_multi_turn_trajectory_quality_v1 in the criteria table but no example of how to build an EvalConfig entry for it.
  2. Users put rubrics on EvalCase.rubrics with type unset (or mismatched) and the rubrics are silently dropped.
  3. Users put all rubrics on EvalCase.rubrics and none on the criterion, and hit AssertionError: Rubrics are required. at evaluator init.

All three are observable in RubricBasedEvaluator source but aren't surfaced in the user-facing docs.

Changes

Only docs/evaluate/criteria.md is modified. No code changes.

Testing

  • mkdocs serve locally; verified the new section renders, the criteria table at the top is consistent with the sections below, and existing internal anchors still resolve.

CLA

Individual CLA signed; cla/google check is passing on this PR.

Notes

…1 and clarify Rubric.type / criterion.rubrics

Closes three gaps in docs/evaluate/criteria.md:

1. Adds a section for `rubric_based_multi_turn_trajectory_quality_v1`. The
   metric is registered in metric_evaluator_registry.py and implemented in
   rubric_based_multi_turn_trajectory_evaluator.py upstream, but the
   explanatory section that its two sibling rubric-based metrics have was
   missing. Also adds the corresponding row to the criteria table.
2. Adds a "Notes On Rubrics" subsection under each of the three
   rubric-based metric sections, stating the required Rubric.type value
   (FINAL_RESPONSE_QUALITY / TOOL_USE_QUALITY / TRAJECTORY_QUALITY) and the
   criterion-vs-EvalCase rubric relationship (criterion.rubrics required
   and non-empty; EvalCase.rubrics is additive, filtered by type).
3. Adds the explicit `type` field to existing JSON examples in the two
   existing rubric-based sections so users have a complete template.

Refs google#1852.
@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 873d31a
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6a3913bbaee88f0008a5daf6
😎 Deploy Preview https://deploy-preview-1853--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(evaluate): missing section for rubric_based_multi_turn_trajectory_quality_v1 + Rubric.type / criterion.rubrics requirements

1 participant