QnA Maker SDK/Azure templates active learning and endpoint URL

◇◆丶佛笑我妖孽 提交于 2019-12-12 06:23:25

问题


Once the bot is created using qnamaker.ai, I wanted to deploy it in Azure using the SDK and publishing from VS2017, which let me define the top parameter to enable the Active Learning as shown in https://github.com/Microsoft/BotBuilder-CognitiveServices/tree/master/CSharp/Samples/QnAMaker But when I want to register it in dev.botframework the end point URL doesn't work.

If I use Azure Bot Service template, is not possible to set the top parameter but registering in my Bots is ready straight forward. I have realized that the URL from Azure template contains some extra info, that is not available in my web app ...code=2xDGuyPbupZIm8zsDOucgcHDvXO908dPIad2LFG2y/37TPecdMfQEw==

A "typical" URL from Azure, that work with other deployed Bots is https://"MyBotName".azurewebsites.net/api/messages

Please, can you help enabling the active learning in Azure templates for a Q&A bot? Can you explain me what should I add to get the "extra details" in my Web app URL?


回答1:


I think there is some misunderstanding here. The QnA Maker site is not creating any bot for you. It just provisions the QnA service (a rest API).

If you want to have a bot on top of the service you created, grab the code of the QnABotWithActiveLearning sample that you linked, update the QnADialogWithActiveLearning.cs class to include your QnA subscription key (that you can get from the Settings tab of your QnA service), update MicrosotAppId and MicrosoftAppPassword settings on the Web.config with the ones you got from the BotFramework developer portal and deploy to Azure as a Web App.

Once done, you will have the standard websites URL https://"MyBotName".azurewebsites.net and the API endpoint https://"MyBotName".azurewebsites.net/api/messages.

Then just update your bot URL in the BotFramework portal with this URL.



来源:https://stackoverflow.com/questions/44304269/qna-maker-sdk-azure-templates-active-learning-and-endpoint-url

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