public sealed class SmartReplyMetrics.Types.TopNMetrics : IMessage<SmartReplyMetrics.Types.TopNMetrics>, IEquatable<SmartReplyMetrics.Types.TopNMetrics>, IDeepCloneable<SmartReplyMetrics.Types.TopNMetrics>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class SmartReplyMetrics.Types.TopNMetrics.
Evaluation metrics when retrieving n smart replies with the model.
Number of retrieved smart replies. For example, when n is 3, this
evaluation contains metrics for when Dialogflow retrieves 3 smart replies
with the model.
Defined as number of queries whose top n smart replies have at least one
similar (token match similarity above the defined threshold) reply as the
real reply divided by number of queries with at least one smart reply.
Value ranges from 0.0 to 1.0 inclusive.
[[["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-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eSmartReplyMetrics.Types.TopNMetrics\u003c/code\u003e class within the Google Cloud Dialogflow v2 API, detailing its implementation and usage across various versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eSmartReplyMetrics.Types.TopNMetrics\u003c/code\u003e is 4.26.0, with numerous prior versions available, starting from 3.2.0 and up to the current.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSmartReplyMetrics.Types.TopNMetrics\u003c/code\u003e is designed to evaluate the performance of retrieving \u003ccode\u003en\u003c/code\u003e smart replies, which implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eN\u003c/code\u003e to define the number of smart replies retrieved, and \u003ccode\u003eRecall\u003c/code\u003e to assess the quality of the retrieved replies compared to the real reply.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to several constructors, including a default one, and another which uses an instance of \u003ccode\u003eSmartReplyMetrics.Types.TopNMetrics\u003c/code\u003e to create a copy.\u003c/p\u003e\n"]]],[],null,[]]