Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class PairwiseMetricSpec.
Spec for pairwise metric.
Generated from protobuf message google.cloud.aiplatform.v1.PairwiseMetricSpec
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 pairwise metric.
↳ candidate_response_field_name
string
Optional. The field name of the candidate response.
↳ baseline_response_field_name
string
Optional. The field name of the baseline response.
↳ system_instruction
string
Optional. System instructions for pairwise metric.
↳ custom_output_format_config
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.
getMetricPromptTemplate
Required. Metric prompt template for pairwise metric.
string
hasMetricPromptTemplate
clearMetricPromptTemplate
setMetricPromptTemplate
Required. Metric prompt template for pairwise metric.
var
string
$this
getCandidateResponseFieldName
Optional. The field name of the candidate response.
string
setCandidateResponseFieldName
Optional. The field name of the candidate response.
var
string
$this
getBaselineResponseFieldName
Optional. The field name of the baseline response.
string
setBaselineResponseFieldName
Optional. The field name of the baseline response.
var
string
$this
getSystemInstruction
Optional. System instructions for pairwise metric.
string
hasSystemInstruction
clearSystemInstruction
setSystemInstruction
Optional. System instructions for pairwise metric.
var
string
$this
getCustomOutputFormatConfig
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.
hasCustomOutputFormatConfig
clearCustomOutputFormatConfig
setCustomOutputFormatConfig
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.
$this

