Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, seeModel versions and lifecycle.
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, thepairwiseChoiceandexplanationfields in the corresponding metric result will be empty.
metricPromptTemplatestring
Required. Metric prompt template for pairwise metric.
systemInstructionstring
Optional. System instructions for pairwise metric.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[],[],null,["# PairwiseMetricSpec\n\nSpec for pairwise metric.\nFields `candidateResponseFieldName` `string` \nOptional. The field name of the candidate response.\n`baselineResponseFieldName` `string` \nOptional. The field name of the baseline response.\n`customOutputFormatConfig` `object (`[CustomOutputFormatConfig](/vertex-ai/generative-ai/docs/reference/rest/v1/CustomOutputFormatConfig)`)` \nOptional. 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 `pairwiseChoice` and `explanation` fields in the corresponding metric result will be empty.\n`metricPromptTemplate` `string` \nRequired. Metric prompt template for pairwise metric.\n`systemInstruction` `string` \nOptional. System instructions for pairwise metric."]]