Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Specification for how rubrics should be generated.
Instance Attribute Summary collapse
-
#metric_resource_name ⇒ String
Optional.
-
#model_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig
The autorater config used for the evaluation run.
-
#prompt_template ⇒ String
Optional.
-
#rubric_content_type ⇒ String
Optional.
-
#rubric_type_ontology ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec
Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricGenerationSpec.
17292 17293 17294 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17292 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_resource_name ⇒ String
Optional. Resource name of the metric definition.
Corresponds to the JSON property metricResourceName
17267 17268 17269 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17267 def metric_resource_name @metric_resource_name end |
#model_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigAutoraterConfig
The autorater config used for the evaluation run.
Corresponds to the JSON property modelConfig
17272 17273 17274 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17272 def model_config @model_config end |
#prompt_template ⇒ String
Optional. Template for the prompt used to generate rubrics. The details should
be updated based on the most-recent recipe requirements.
Corresponds to the JSON property promptTemplate
17278 17279 17280 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17278 def prompt_template @prompt_template end |
#rubric_content_type ⇒ String
Optional. The type of rubric content to be generated.
Corresponds to the JSON property rubricContentType
17283 17284 17285 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17283 def rubric_content_type @rubric_content_type end |
#rubric_type_ontology ⇒ Array<String>
Optional. An optional, pre-defined list of allowed types for generated rubrics.
If this field is provided, it implies include_rubric_type should be true,
and the generated rubric types should be chosen from this ontology.
Corresponds to the JSON property rubricTypeOntology
17290 17291 17292 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17290 def rubric_type_ontology @rubric_type_ontology end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17297 17298 17299 17300 17301 17302 17303 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17297 def update!(**args) @metric_resource_name = args[:metric_resource_name] if args.key?(:metric_resource_name) @model_config = args[:model_config] if args.key?(:model_config) @prompt_template = args[:prompt_template] if args.key?(:prompt_template) @rubric_content_type = args[:rubric_content_type] if args.key?(:rubric_content_type) @rubric_type_ontology = args[:rubric_type_ontology] if args.key?(:rubric_type_ontology) end |