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

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::PairwiseMetricSpec.

Spec for pairwise metric.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#baseline_response_field_name

def baseline_response_field_name() -> ::String
Returns
  • (::String) — Optional. The field name of the baseline response.

#baseline_response_field_name=

def baseline_response_field_name=(value) -> ::String
Parameter
  • value (::String) — Optional. The field name of the baseline response.
Returns
  • (::String) — Optional. The field name of the baseline response.

#candidate_response_field_name

def candidate_response_field_name() -> ::String
Returns
  • (::String) — Optional. The field name of the candidate response.

#candidate_response_field_name=

def candidate_response_field_name=(value) -> ::String
Parameter
  • value (::String) — Optional. The field name of the candidate response.
Returns
  • (::String) — Optional. The field name of the candidate response.

#custom_output_format_config

def custom_output_format_config() -> ::Google::Cloud::AIPlatform::V1::CustomOutputFormatConfig
Returns
  • (::Google::Cloud::AIPlatform::V1::CustomOutputFormatConfig) — Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the pairwise_choice and explanation fields in the corresponding metric result will be empty.

#custom_output_format_config=

def custom_output_format_config=(value) -> ::Google::Cloud::AIPlatform::V1::CustomOutputFormatConfig
Parameter
  • value (::Google::Cloud::AIPlatform::V1::CustomOutputFormatConfig) — Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the pairwise_choice and explanation fields in the corresponding metric result will be empty.
Returns
  • (::Google::Cloud::AIPlatform::V1::CustomOutputFormatConfig) — Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the pairwise_choice and explanation fields in the corresponding metric result will be empty.

#metric_prompt_template

def metric_prompt_template() -> ::String
Returns
  • (::String) — Required. Metric prompt template for pairwise metric.

#metric_prompt_template=

def metric_prompt_template=(value) -> ::String
Parameter
  • value (::String) — Required. Metric prompt template for pairwise metric.
Returns
  • (::String) — Required. Metric prompt template for pairwise metric.

#system_instruction

def system_instruction() -> ::String
Returns
  • (::String) — Optional. System instructions for pairwise metric.

#system_instruction=

def system_instruction=(value) -> ::String
Parameter
  • value (::String) — Optional. System instructions for pairwise metric.
Returns
  • (::String) — Optional. System instructions for pairwise metric.