我想了解如何使用我的QnA Maker来识别知识库中前10个最热门或最常见的提问?QnA中有没有用于存储提问频率的参数或元数据键?Azure搜索在这里是否有帮助?请提供建议…
提前感谢!!
回答:
延续@人名的回答,假设你已经为你的机器人QnA认知服务启用了Application Insights,那么一旦你导航到分析页面(如@人名所详细说明的),你可以使用以下查询之一:
这些查询可能不是最优化的或性能最佳的,因为我只是对样本查询进行了一些修改,直到我得到了想要的结果。
// 过去48小时内的热门提问requests| where url endswith "generateAnswer" and timestamp > ago(48h) | project timestamp, id, name, resultCode, duration| parse kind = regex name with *"(?i)knowledgebases/"KbId"/generateAnswer"| join kind= inner (traces | extend id = operation_ParentId) on id| extend question = tostring(customDimensions['Question'])| summarize Count=count() by question| top 100 by Count | project question, Count // 从特定时间戳以来的热门提问requests| where url endswith "generateAnswer" and timestamp > datetime('2019-05-12 00:00:00') | project timestamp, id, name, resultCode, duration| parse kind = regex name with *"(?i)knowledgebases/"KbId"/generateAnswer"| join kind= inner (traces | extend id = operation_ParentId) on id| extend question = tostring(customDimensions['Question'])| summarize Count=count() by question| top 100 by Count | project question, Count // 所有时间的热门提问requests| where url endswith "generateAnswer" | project timestamp, id, name, resultCode, duration| parse kind = regex name with *"(?i)knowledgebases/"KbId"/generateAnswer"| join kind= inner (traces | extend id = operation_ParentId) on id| extend question = tostring(customDimensions['Question'])| summarize Count=count() by question| top 100 by Count | project question, Count
作为额外的好处,你可以在运行查询后点击图表按钮,以图表形式查看信息。