Class PairwiseMetricSpec (1.135.0)

PairwiseMetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

Name Description
metric_prompt_template str
Required. Metric prompt template for pairwise metric. This field is a member of oneof_ _metric_prompt_template.
candidate_response_field_name str
Optional. The field name of the candidate response.
baseline_response_field_name str
Optional. The field name of the baseline response.
system_instruction str
Optional. System instructions for pairwise metric. This field is a member of oneof_ _system_instruction.
custom_output_format_config google.cloud.aiplatform_v1beta1.types.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.

Methods

PairwiseMetricSpec

PairwiseMetricSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)