message representing a single testable criterion for evaluation. One input prompt could have multiple rubrics.
rubricIdstring
Unique identifier for the rubric. This id is used to refer to this rubric, e.g., in RubricVerdict.
Required. The actual testable criteria for the rubric.
typestring
Optional. A type designator for the rubric, which can inform how it's evaluated or interpreted by systems or users. It's recommended to use consistent, well-defined, upper snake_case strings. Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT", "INSTRUCTION_ADHERENCE".
Optional. The relative importance of this rubric.
| JSON representation |
|---|
{ "rubricId": string, "content": { object ( |
Content
Content of the rubric, defining the testable criteria.
content_typeUnion type
content_type can be only one of the following:Evaluation criteria based on a specific property.
| JSON representation |
|---|
{
// content_type
"property": {
object ( |
Property
Defines criteria based on a specific property.
descriptionstring
description of the property being evaluated. Example: "The model's response is grammatically correct."
| JSON representation |
|---|
{ "description": string } |
Importance
Importance level of the rubric.
| Enums | |
|---|---|
IMPORTANCE_UNSPECIFIED |
Importance is not specified. |
HIGH |
High importance. |
MEDIUM |
Medium importance. |
LOW |
Low importance. |