Class PointwiseMetricSpec (1.92.0)

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

Attributes

Name Description
metric_prompt_template str
Required. Metric prompt template for pointwise metric. This field is a member of oneof_ _metric_prompt_template.
system_instruction str
Optional. System instructions for pointwise 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. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the score and explanation fields in the corresponding metric result will be empty.

Methods

PointwiseMetricSpec

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