Class Rubric (1.130.0)

  Rubric 
 ( 
 * 
 , 
 rubricId 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 content 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 evals 
 . 
 RubricContent 
 ] 
 = 
 None 
 , 
 type 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 importance 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 evals 
 . 
 Importance 
 ] 
 = 
 None 
 ) 
 

Message representing a single testable criterion for evaluation.

One input prompt could have multiple rubrics.

Methods

Rubric

  Rubric 
 ( 
 * 
 , 
 rubricId 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 content 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 evals 
 . 
 RubricContent 
 ] 
 = 
 None 
 , 
 type 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 importance 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 evals 
 . 
 Importance 
 ] 
 = 
 None 
 ) 
 

Create a new model by parsing and validating input data from keyword arguments.

Raises [ ValidationError ][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Create a Mobile Website
View Site in Mobile | Classic
Share by: