public sealed class QuestionAnsweringCorrectnessSpec : IMessage<QuestionAnsweringCorrectnessSpec>, IEquatable<QuestionAnsweringCorrectnessSpec>, IDeepCloneable<QuestionAnsweringCorrectnessSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class QuestionAnsweringCorrectnessSpec.
[[["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 page provides reference documentation for the \u003ccode\u003eQuestionAnsweringCorrectnessSpec\u003c/code\u003e class, a part of the Vertex AI v1beta1 API, specifically within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuestionAnsweringCorrectnessSpec\u003c/code\u003e class is designed to define the specifications for the correctness metric in question-answering tasks and has two properties: \u003ccode\u003eUseReference\u003c/code\u003e, a boolean that determines whether to use instance.reference, and \u003ccode\u003eVersion\u003c/code\u003e, an integer for selecting the evaluation version.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 1.0.0-beta21, and it inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class, as well as implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the \u003ccode\u003eQuestionAnsweringCorrectnessSpec\u003c/code\u003e class: a default constructor, and another which uses another instance of \u003ccode\u003eQuestionAnsweringCorrectnessSpec\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class QuestionAnsweringCorrectnessSpec (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.QuestionAnsweringCorrectnessSpec)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringCorrectnessSpec) \n\n public sealed class QuestionAnsweringCorrectnessSpec : IMessage\u003cQuestionAnsweringCorrectnessSpec\u003e, IEquatable\u003cQuestionAnsweringCorrectnessSpec\u003e, IDeepCloneable\u003cQuestionAnsweringCorrectnessSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class QuestionAnsweringCorrectnessSpec.\n\nSpec for question answering correctness metric. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QuestionAnsweringCorrectnessSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[QuestionAnsweringCorrectnessSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringCorrectnessSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QuestionAnsweringCorrectnessSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringCorrectnessSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[QuestionAnsweringCorrectnessSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.QuestionAnsweringCorrectnessSpec), [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### QuestionAnsweringCorrectnessSpec()\n\n public QuestionAnsweringCorrectnessSpec()\n\n### QuestionAnsweringCorrectnessSpec(QuestionAnsweringCorrectnessSpec)\n\n public QuestionAnsweringCorrectnessSpec(QuestionAnsweringCorrectnessSpec other)\n\nProperties\n----------\n\n### UseReference\n\n public bool UseReference { get; set; }\n\nOptional. Whether to use instance.reference to compute question answering\ncorrectness.\n\n### Version\n\n public int Version { get; set; }\n\nOptional. Which version to use for evaluation."]]