Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGenerationSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGenerationSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Specification for how rubrics should be generated.
Instance Attribute Summary collapse
-
#model_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig
The configs for autorater.
-
#prompt_template ⇒ String
Template for the prompt used to generate rubrics.
-
#rubric_content_type ⇒ String
The type of rubric content to be generated.
-
#rubric_type_ontology ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1RubricGenerationSpec
constructor
A new instance of GoogleCloudAiplatformV1RubricGenerationSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1RubricGenerationSpec
Returns a new instance of GoogleCloudAiplatformV1RubricGenerationSpec.
33855 33856 33857 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#model_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AutoraterConfig
The configs for autorater. This is applicable to both EvaluateInstances and
EvaluateDataset.
Corresponds to the JSON property modelConfig
33835 33836 33837 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33835 def model_config @model_config end |
#prompt_template ⇒ String
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
33841 33842 33843 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33841 def prompt_template @prompt_template end |
#rubric_content_type ⇒ String
The type of rubric content to be generated.
Corresponds to the JSON property rubricContentType
33846 33847 33848 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33846 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
33853 33854 33855 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33853 def rubric_type_ontology @rubric_type_ontology end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33860 33861 33862 33863 33864 33865 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33860 def update!(**args) @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 |