Skip to content

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

Merged
koverholt merged 6 commits into
google:mainfrom
zettaittenani:docs/evaluate-rubric-clarifications
Jul 16, 2026
Merged

koverholt merged 6 commits into
google:mainfrom
zettaittenani:docs/evaluate-rubric-clarifications

Conversation

@zettaittenani

@zettaittenani zettaittenani commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

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 9d203e8
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/6a58ac9e7636ce000946d376
😎 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.

@zettaittenani
zettaittenani marked this pull request as ready for review July 14, 2026 16:18

@koverholt koverholt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and additions / fixes! The new section, table row, and the non-empty/additive notes are accurate and verified against adk-python.

Requesting changes on one substantive point, flagged inline: the Rubric.type filter only applies to EvalCase.rubrics, not to criterion-level rubrics in EvalConfig. The "Notes On Rubrics" bullets state it as a blanket rule, and the examples add type to criterion-level rubrics, which together imply criterion rubrics are dropped on a type mismatch, which they aren't. See the inline suggestions on both the bullets and the example type fields across all three sections. Everything else looks good.

(Cross-referencing #1833 as the original adk-bot issue where these were originally flagged.)

Comment thread docs/evaluate/criteria.md Resolved
Comment thread docs/evaluate/criteria.md Resolved
Comment thread docs/evaluate/criteria.md Resolved
Comment thread docs/evaluate/criteria.md Resolved
Comment thread docs/evaluate/criteria.md Resolved
Comment thread docs/evaluate/criteria.md Resolved
Comment thread docs/evaluate/criteria.md Resolved
Only EvalCase.rubrics is filtered by type in create_effective_rubrics_list;
criterion-level rubrics on EvalConfig are added unconditionally. Update the
Notes On Rubrics bullet in each of the three rubric-based metric sections
to reflect this, using koverholt's review suggestion.
…mples

type is only consulted for entries in EvalCase.rubrics, per
create_effective_rubrics_list. Keeping it on criterion-level rubrics
implied they were type-filtered, which they are not. Removed from all
six criterion-level rubric entries across the three rubric-based metric
sections.
…ally applies

The type field only affects filtering on EvalCase.rubrics per
create_effective_rubrics_list. Show that behavior concretely in each of
the three rubric-based metric sections by adding a small EvalCase.rubrics
snippet with the type field set to the criterion's expected value, plus a
one-line reminder that the effective rubric set passed to the judge is the
union of criterion-level rubrics and any type-matching entries from
EvalCase.rubrics.
@zettaittenani

Copy link
Copy Markdown
Contributor Author

Thank you @koverholt. Verified the filter scope in create_effective_rubrics_list and updated the PR in three commits:

  1. 299bc8c corrects the "Notes On Rubrics" bullet in each rubric-based section (your three suggestion blocks).
  2. 9dd9714 removes the inert type field from the six criterion-level rubric entries.
  3. bdc5869 adds a short EvalCase.rubrics snippet to each of the three sections showing where type actually filters (took the "relocate" option from your comments so Rubric.type still has an example, just in the right place).

PTAL.

@koverholt koverholt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working through the issues and revising. All updates and content LGTM. Thank you for the contribution! Merging.

@koverholt
koverholt merged commit 709f914 into google:main Jul 16, 2026
12 checks passed
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

2 participants