Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::LLMBasedMetricSpec (v1.40.0)

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
Returns

#additional_config=

def additional_config=(value) -> ::Google::Protobuf::Struct
Parameter
Returns

#judge_autorater_config

def judge_autorater_config() -> ::Google::Cloud::AIPlatform::V1::AutoraterConfig
Returns

#judge_autorater_config=

def judge_autorater_config=(value) -> ::Google::Cloud::AIPlatform::V1::AutoraterConfig
Parameter
Returns

#metric_prompt_template

def metric_prompt_template() -> ::String
Returns
  • (::String) — Required. Template for the prompt sent to the judge model.

#metric_prompt_template=

def metric_prompt_template=(value) -> ::String
Parameter
  • value (::String) — Required. Template for the prompt sent to the judge model.
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::String) — Optional. System instructions for the judge model.

#system_instruction=

def system_instruction=(value) -> ::String
Parameter
  • value (::String) — Optional. System instructions for the judge model.
Returns
  • (::String) — Optional. System instructions for the judge model.