LUIS应用-获得具有端点命中数的流行意图

问题描述 投票:1回答:1

假设LUIS应用程序具有100个意图。如何检索流行的十大意图名称以及端点命中数?

我想在UI上显示类似的内容。enter image description here

luis
1个回答
0
投票

Microsoft有一个有关add LUIS data to Application Insights的教程(nodejs,但是我确信如果使用C#,您可以找到/做类似的事情)。从那里,您可以使用日志(分析)来识别每种话语的意图并对其进行计数/绘制。就我而言,我删除了None和NULL意图,因为我只想细分已识别的意图,但是如果您想查看所有内容,则可以省略这些行。 “ take”运算符为您提供前n行。确保您排在第一位,否则不一定是前n位。

requests
| where url endswith "messages"
| where timestamp > ago(30d)
| project timestamp, duration, performanceBucket, resultCode, url, id
| parse kind = regex url with *"(?i)http://"botName".azurewebsites.net/api/messages"
| join kind= inner (
traces | extend id = operation_ParentId
) on id
| where message == "LUIS"
| extend topIntent = tostring(customDimensions.LUIS_luisResponse_luisResult_topScoringIntent_intent)
| where topIntent != "None"
| where topIntent != ""
| summarize count() by topIntent
| order by count_ desc
| take 10

这里是结果表。我实际上喜欢为我渲染饼图,但是我将它做成了前10名的表格,以满足您的要求。

enter image description here

如果这不是您想要的,请告诉我,我会尽力提供进一步帮助。

© www.soinside.com 2019 - 2024. All rights reserved.