如何每天从QnA Maker中获取前10个最常见(热门)的提问?

我想了解如何使用我的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 

作为额外的好处,你可以在运行查询后点击图表按钮,以图表形式查看信息。

Related Posts

使用LSTM在Python中预测未来值

这段代码可以预测指定股票的当前日期之前的值,但不能预测…

如何在gensim的word2vec模型中查找双词组的相似性

我有一个word2vec模型,假设我使用的是googl…

dask_xgboost.predict 可以工作但无法显示 – 数据必须是一维的

我试图使用 XGBoost 创建模型。 看起来我成功地…

ML Tuning – Cross Validation in Spark

我在https://spark.apache.org/…

如何在React JS中使用fetch从REST API获取预测

我正在开发一个应用程序,其中Flask REST AP…

如何分析ML.NET中多类分类预测得分数组?

我在ML.NET中创建了一个多类分类项目。该项目可以对…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注