public sealed class PairwiseMetricSpec : IMessage<PairwiseMetricSpec>, IEquatable<PairwiseMetricSpec>, IDeepCloneable<PairwiseMetricSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class PairwiseMetricSpec.
Spec for pairwise metric.
Implements
IMessagePairwiseMetricSpec, IEquatablePairwiseMetricSpec, IDeepCloneablePairwiseMetricSpec, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
PairwiseMetricSpec()
public PairwiseMetricSpec()
PairwiseMetricSpec(PairwiseMetricSpec)
public PairwiseMetricSpec(PairwiseMetricSpec other)
Parameter | |
---|---|
Name | Description |
other |
PairwiseMetricSpec |
Properties
BaselineResponseFieldName
public string BaselineResponseFieldName { get; set; }
Optional. The field name of the baseline response.
Property Value | |
---|---|
Type | Description |
string |
CandidateResponseFieldName
public string CandidateResponseFieldName { get; set; }
Optional. The field name of the candidate response.
Property Value | |
---|---|
Type | Description |
string |
CustomOutputFormatConfig
public CustomOutputFormatConfig CustomOutputFormatConfig { get; set; }
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.
Property Value | |
---|---|
Type | Description |
CustomOutputFormatConfig |
HasMetricPromptTemplate
public bool HasMetricPromptTemplate { get; }
Gets whether the "metric_prompt_template" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasSystemInstruction
public bool HasSystemInstruction { get; }
Gets whether the "system_instruction" field is set
Property Value | |
---|---|
Type | Description |
bool |
MetricPromptTemplate
public string MetricPromptTemplate { get; set; }
Required. Metric prompt template for pairwise metric.
Property Value | |
---|---|
Type | Description |
string |
SystemInstruction
public string SystemInstruction { get; set; }
Optional. System instructions for pairwise metric.
Property Value | |
---|---|
Type | Description |
string |