Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class PointwiseMetricSpec.
Spec for pointwise metric.
Generated from protobuf message google.cloud.aiplatform.v1.PointwiseMetricSpec
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ metric_prompt_template
string
Required. Metric prompt template for pointwise metric.
↳ system_instruction
string
Optional. System instructions for pointwise metric.
↳ custom_output_format_config
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.
getMetricPromptTemplate
Required. Metric prompt template for pointwise metric.
string
hasMetricPromptTemplate
clearMetricPromptTemplate
setMetricPromptTemplate
Required. Metric prompt template for pointwise metric.
var
string
$this
getSystemInstruction
Optional. System instructions for pointwise metric.
string
hasSystemInstruction
clearSystemInstruction
setSystemInstruction
Optional. System instructions for pointwise metric.
var
string
$this
getCustomOutputFormatConfig
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
scoreandexplanationfields in the corresponding metric result will be empty.
hasCustomOutputFormatConfig
clearCustomOutputFormatConfig
setCustomOutputFormatConfig
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
scoreandexplanationfields in the corresponding metric result will be empty.
$this

