How to get the Qna Maker “Q” from Analytics Application Insights?

懵懂的女人 提交于 2019-12-11 10:16:38

问题


I have created my chatbot's knowledge base with Qna Maker and I am trying to visualize some statistics with Analytics Application Insights.

What I want to do

I would like to create a chart with the most requested Qna Maker questions.

My problem

I can't find the Qna Maker questions in the customDimensions traces on Analytics but only their Id :

My question

Is their a way to get the Qna Maker Question linked to this Id directly from the Analytics Application Insights tool ?

Thank you.

PS : I had to use "Q" instead of "Question" in the title due to Stackoverflow rules.


回答1:


Not directly.

the only info you have in appinsights is whatever was submitted with the data. so if they aren't sending the question (odd that they send the answer but not the question?) then you're out of luck.

As a workaround, you could create a custom table in your application insights instance: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-analytics-import and populate that table with the id and question.

then you could join those two things in analytics queries in the analytics tool or in workbooks.




回答2:


if you're looking for a query with question and answer linked through id, here is your answer:

requests
| where url endswith "generateAnswer"
| project timestamp, id, name, resultCode, duration
| parse name with *"/knowledgebases/"KbId"/generateAnswer"
| join kind= inner (
traces | extend id = operation_ParentId
) on id
| extend question = tostring(customDimensions['Question'])
| extend answer = tostring(customDimensions['Answer'])
| project KbId, timestamp, resultCode, duration, question, answer

This doesn't necessarily solve your issue but might be of help for other people looking for a simple report of question/answer to improve their QnA maker.

The sample could be found in the official documentation: https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/get-analytics-knowledge-base



来源:https://stackoverflow.com/questions/51712132/how-to-get-the-qna-maker-q-from-analytics-application-insights

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!