GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseMetricSpec (google_api_ai_platform v0.27.0)

View Source

Spec for pairwise metric.

Attributes

  • baselineResponseFieldName (type: String.t, default: nil) - Optional. The field name of the baseline response.
  • candidateResponseFieldName (type: String.t, default: nil) - Optional. The field name of the candidate response.
  • customOutputFormatConfig (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig.t, default: nil) - 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.
  • metricPromptTemplate (type: String.t, default: nil) - Required. Metric prompt template for pairwise metric.
  • systemInstruction (type: String.t, default: nil) - Optional. System instructions for pairwise metric.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseMetricSpec{
  baselineResponseFieldName: String.t() | nil,
  candidateResponseFieldName: String.t() | nil,
  customOutputFormatConfig:
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig.t()
    | nil,
  metricPromptTemplate: String.t() | nil,
  systemInstruction: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.