Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::LLMBasedMetricSpec.
Specification for an LLM based metric.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#additional_config
def additional_config() -> ::Google::Protobuf::Struct- (::Google::Protobuf::Struct) — Optional. Optional additional configuration for the metric.
#additional_config=
def additional_config=(value) -> ::Google::Protobuf::Struct- value (::Google::Protobuf::Struct) — Optional. Optional additional configuration for the metric.
- (::Google::Protobuf::Struct) — Optional. Optional additional configuration for the metric.
#judge_autorater_config
def judge_autorater_config() -> ::Google::Cloud::AIPlatform::V1::AutoraterConfig- (::Google::Cloud::AIPlatform::V1::AutoraterConfig) — Optional. Optional configuration for the judge LLM (Autorater).
#judge_autorater_config=
def judge_autorater_config=(value) -> ::Google::Cloud::AIPlatform::V1::AutoraterConfig- value (::Google::Cloud::AIPlatform::V1::AutoraterConfig) — Optional. Optional configuration for the judge LLM (Autorater).
- (::Google::Cloud::AIPlatform::V1::AutoraterConfig) — Optional. Optional configuration for the judge LLM (Autorater).
#metric_prompt_template
def metric_prompt_template() -> ::String- (::String) — Required. Template for the prompt sent to the judge model.
#metric_prompt_template=
def metric_prompt_template=(value) -> ::String- value (::String) — Required. Template for the prompt sent to the judge model.
- (::String) — Required. Template for the prompt sent to the judge model.
#predefined_rubric_generation_spec
def predefined_rubric_generation_spec() -> ::Google::Cloud::AIPlatform::V1::PredefinedMetricSpec-
(::Google::Cloud::AIPlatform::V1::PredefinedMetricSpec) — Dynamically generate rubrics using a predefined spec.
Note: The following fields are mutually exclusive:
predefined_rubric_generation_spec,rubric_group_key. If a field in that set is populated, all other fields in the set will automatically be cleared.
#predefined_rubric_generation_spec=
def predefined_rubric_generation_spec=(value) -> ::Google::Cloud::AIPlatform::V1::PredefinedMetricSpec-
value (::Google::Cloud::AIPlatform::V1::PredefinedMetricSpec) — Dynamically generate rubrics using a predefined spec.
Note: The following fields are mutually exclusive:
predefined_rubric_generation_spec,rubric_group_key. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AIPlatform::V1::PredefinedMetricSpec) — Dynamically generate rubrics using a predefined spec.
Note: The following fields are mutually exclusive:
predefined_rubric_generation_spec,rubric_group_key. If a field in that set is populated, all other fields in the set will automatically be cleared.
#rubric_group_key
def rubric_group_key() -> ::String-
(::String) — Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
Note: The following fields are mutually exclusive:
rubric_group_key,predefined_rubric_generation_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#rubric_group_key=
def rubric_group_key=(value) -> ::String-
value (::String) — Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
Note: The following fields are mutually exclusive:
rubric_group_key,predefined_rubric_generation_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
Note: The following fields are mutually exclusive:
rubric_group_key,predefined_rubric_generation_spec. If a field in that set is populated, all other fields in the set will automatically be cleared.
#system_instruction
def system_instruction() -> ::String- (::String) — Optional. System instructions for the judge model.
#system_instruction=
def system_instruction=(value) -> ::String- value (::String) — Optional. System instructions for the judge model.
- (::String) — Optional. System instructions for the judge model.