Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A rubric evaluator scores an agent or model response against custom criteria (dimensions), using an LLM as the judge. It gives you control over what "good" and "safe" mean for your use case and applies that judgment consistently across single-turn responses or multi-turn conversations.
Use rubric evaluators as your primary measure of domain-specific agent quality and policy adherence. Pair them with built-in evaluators for general content safety, groundedness, and tool-use accuracy.
Choose a rubric type
Rubric types differ in where their criteria come from and what they report.
| Rubric type | Criteria apply to | Reports | Learn more |
|---|---|---|---|
| Quality | Every row in the evaluation | A 1–5 rating normalized to 0.0–1.0, or a pass/fail checklist |
Quality rubric evaluators |
| Safety (preview) | Every row in the evaluation | Separate results for things the agent must not do and things it should do | Safety rubric evaluators |
| Task-level (preview) | One dataset row, with criteria and an expected output for that row | Results against the row's own criteria and expected output | Task-level rubric evaluator |
Quality and safety rubrics define shared criteria once and apply them to every row. For example, a reservation agent might use one quality rubric that checks policy enforcement for all conversations.
A task-level rubric instead defines what success means for an individual case. For example, one row might check whether the agent states a refund deadline, while another checks whether the agent asks for a missing order number. You can generate these criteria from human annotations on production traces.
How rubrics score
Quality rubrics use either a 1–5 rating, which you can weight by dimension, or a pass/fail checklist. Safety rubrics report two pass/fail results: whether the agent did something disallowed (a don't), and whether it failed to follow something allowed (a do).
Each evaluator uses one scoring mode. To combine 1–5 ratings with pass/fail or safety checks, add multiple rubric evaluators to the same evaluation run.
Create a rubric evaluator
Generate a quality or safety rubric from your agent's context, or write the dimensions yourself. For details, see Quality rubric evaluators and Safety rubric evaluators.
Tip
Start by generating a rubric and refine it manually. Generation gives you a grounded baseline that you can tailor to your standards.
Review, edit, and regenerate the rubric
Refine a rubric until its scores match your team's judgment:
- Edit dimensions: Clarify descriptions, adjust weights or thresholds, and add or remove dimensions.
- Version your changes: Save edits as a new version to keep earlier versions available, or update an existing version in place.
- Regenerate selectively: Regenerate an existing rubric from new sources. Human-edited dimensions are preserved, and only generated dimensions change.
Quality and safety rubrics can't be converted into each other. For request fields and options, see the Foundry REST API reference.
Inspect version lineage and rubric health diagnostics
Rubric diagnostics show how a rubric changed over time and how healthy it was when generated. Use them to see who edited which dimension and when, and to spot overlapping or low-coverage criteria.
The following Python example lists the diagnostics for a rubric evaluator. It requires azure-ai-projects 2.11.0 or later:
import os
from azure.ai.projects import AIProjectClient
from azure.identity import DefaultAzureCredential
with DefaultAzureCredential() as credential, AIProjectClient(
endpoint=os.environ["FOUNDRY_PROJECT_ENDPOINT"],
credential=credential,
) as project:
for entry in project.beta.evaluators.list_diagnostics(
name="support_quality",
order="asc",
):
print(f"[v{entry.evaluator_version}] {entry.type} ({entry.change_type})")
For diagnostic types, fields, and filters, see the Foundry REST API reference.
Use rubric evaluators to run evaluation
Add one or more saved rubric evaluators to an evaluation run. You can combine quality and safety rubrics in the same run.
Set up continuous evaluation with rubric evaluators
When your rubric evaluator reliably reflects your standards, configure it for continuous and scheduled evaluation in Monitor settings. Continuous evaluation runs the rubric against new agent traffic so you can catch regressions in production.
For setup steps, see Monitor agents in the dashboard.