QnA Maker SDK/Azure模板主动学习和端点URL [英] QnA Maker SDK/Azure templates active learning and endpoint URL

查看:87
本文介绍了QnA Maker SDK/Azure模板主动学习和端点URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦使用qnamaker.ai创建了该机器人,我想使用该SDK将其部署到Azure中并从VS2017发布,这让我定义了top参数来启用Active Learning,如 https://github.com/Microsoft/BotBuilder-CognitiveServices/tree/master/CSharp/Samples/QnAMaker 但是当我想在dev.botframework中注册它时,终点URL不起作用.

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.

如果我使用Azure Bot Service模板,则无法设置top参数,但是直接在Bot中注册就可以了. 我已经意识到Azure模板中的URL包含一些额外的信息,这些信息在我的Web应用程序中不可用 ... code = 2xDGuyPbupZIm8zsDOucgcHDvXO908dPIad2LFG2y/37TPecdMfQEw ==

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==

Azure中与其他已部署的Bot一起使用的典型" URL是https://"MyBotName" .azurewebsites.net/api/messages

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

请,您能否帮助在Q& A机器人的Azure模板中启用主动学习? 您能解释一下我应该添加些什么以便在Web应用程序URL中获得更多详细信息"吗?

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?

推荐答案

我认为这里存在一些误解. QnA Maker网站没有为您创建任何机器人.它只是提供QnA服务(其余的API).

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).

如果您希望在创建的服务之上拥有一个机器人,请获取链接的QnABotWithActiveLearning示例的代码,并更新

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.

完成后,您将拥有标准网站URL https://"MyBotName" .azurewebsites.net和API端点https://"MyBotName" .azurewebsites.net/api/messages.

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

然后只需使用此URL在BotFramework门户中更新您的机器人URL.

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

这篇关于QnA Maker SDK/Azure模板主动学习和端点URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆