public sealed class PairwiseQuestionAnsweringQualityInstance : IMessage<PairwiseQuestionAnsweringQualityInstance>, IEquatable<PairwiseQuestionAnsweringQualityInstance>, IDeepCloneable<PairwiseQuestionAnsweringQualityInstance>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class PairwiseQuestionAnsweringQualityInstance.
Spec for pairwise question answering quality instance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003ePairwiseQuestionAnsweringQualityInstance\u003c/code\u003e class within the Vertex AI v1beta1 API, detailing its structure and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePairwiseQuestionAnsweringQualityInstance\u003c/code\u003e class is used to specify the quality of pairwise question answering instances, with links to both the latest version, and an older version, beta20.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eBaselinePrediction\u003c/code\u003e, \u003ccode\u003eContext\u003c/code\u003e, \u003ccode\u003eInstruction\u003c/code\u003e, \u003ccode\u003ePrediction\u003c/code\u003e, and \u003ccode\u003eReference\u003c/code\u003e, with methods to check whether each is set, such as \u003ccode\u003eHasBaselinePrediction\u003c/code\u003e, \u003ccode\u003eHasContext\u003c/code\u003e, etc.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, one default constructor and one that takes another \u003ccode\u003ePairwiseQuestionAnsweringQualityInstance\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class PairwiseQuestionAnsweringQualityInstance (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseQuestionAnsweringQualityInstance)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.PairwiseQuestionAnsweringQualityInstance) \n\n public sealed class PairwiseQuestionAnsweringQualityInstance : IMessage\u003cPairwiseQuestionAnsweringQualityInstance\u003e, IEquatable\u003cPairwiseQuestionAnsweringQualityInstance\u003e, IDeepCloneable\u003cPairwiseQuestionAnsweringQualityInstance\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class PairwiseQuestionAnsweringQualityInstance.\n\nSpec for pairwise question answering quality instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PairwiseQuestionAnsweringQualityInstance \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PairwiseQuestionAnsweringQualityInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseQuestionAnsweringQualityInstance), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PairwiseQuestionAnsweringQualityInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseQuestionAnsweringQualityInstance), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PairwiseQuestionAnsweringQualityInstance](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PairwiseQuestionAnsweringQualityInstance), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### PairwiseQuestionAnsweringQualityInstance()\n\n public PairwiseQuestionAnsweringQualityInstance()\n\n### PairwiseQuestionAnsweringQualityInstance(PairwiseQuestionAnsweringQualityInstance)\n\n public PairwiseQuestionAnsweringQualityInstance(PairwiseQuestionAnsweringQualityInstance other)\n\nProperties\n----------\n\n### BaselinePrediction\n\n public string BaselinePrediction { get; set; }\n\nRequired. Output of the baseline model.\n\n### Context\n\n public string Context { get; set; }\n\nRequired. Text to answer the question.\n\n### HasBaselinePrediction\n\n public bool HasBaselinePrediction { get; }\n\nGets whether the \"baseline_prediction\" field is set\n\n### HasContext\n\n public bool HasContext { get; }\n\nGets whether the \"context\" field is set\n\n### HasInstruction\n\n public bool HasInstruction { get; }\n\nGets whether the \"instruction\" field is set\n\n### HasPrediction\n\n public bool HasPrediction { get; }\n\nGets whether the \"prediction\" field is set\n\n### HasReference\n\n public bool HasReference { get; }\n\nGets whether the \"reference\" field is set\n\n### Instruction\n\n public string Instruction { get; set; }\n\nRequired. Question Answering prompt for LLM.\n\n### Prediction\n\n public string Prediction { get; set; }\n\nRequired. Output of the candidate model.\n\n### Reference\n\n public string Reference { get; set; }\n\nOptional. Ground truth used to compare against the prediction."]]