public sealed class TopNMetrics : IMessage<SmartReplyMetrics.Types.TopNMetrics>, IEquatable<SmartReplyMetrics.Types.TopNMetrics>, IDeepCloneable<SmartReplyMetrics.Types.TopNMetrics>, IBufferMessage, IMessage
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"]],[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTopNMetrics\u003c/code\u003e class provides evaluation metrics for retrieving a specified number (\u003ccode\u003en\u003c/code\u003e) of smart replies from a Dialogflow model.\u003c/p\u003e\n"],["\u003cp\u003eThis page documents the \u003ccode\u003eTopNMetrics\u003c/code\u003e class across multiple versions, ranging from 3.2.0 to the latest version 4.26.0, of the \u003ccode\u003eGoogle.Cloud.Dialogflow.V2\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTopNMetrics\u003c/code\u003e class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, defining its functionality and integration.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default one and one that takes another \u003ccode\u003eTopNMetrics\u003c/code\u003e instance for creating copies, and it includes properties for \u003ccode\u003eN\u003c/code\u003e (number of retrieved smart replies) and \u003ccode\u003eRecall\u003c/code\u003e (a measure of the quality of the smart replies).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecall\u003c/code\u003e value of \u003ccode\u003eTopNMetrics\u003c/code\u003e provides a quality metric ranging from 0.0 to 1.0 inclusive, derived from \u003ccode\u003enumber of queries whose top n smart replies have at least one similar reply as the real reply\u003c/code\u003e divided by \u003ccode\u003enumber of queries with at least one smart reply\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]