如何使用机器人服务将 qnamaker.ai 上的 QnA 服务连接到 azure 聊天机器人?

How to connect QnA Service on qnamaker.ai to an azure chatbot using Bot Service?

我已经使用 qnamaker.ai 创建了 QnA 服务,当我进一步使用机器人服务创建机器人时,我不能,因为在搜索时没有像机器人服务(预览版)这样的选项,如中所述教程。相反,我看到了以下内容: • 网络应用机器人 • 函数机器人 • 机器人频道注册

在 Azure 上,有 3 个与 Bot 相关的服务:

  1. Web 应用程序机器人
  2. 函数机器人
  3. 机器人频道注册

Web App Bot 和 Function Bot 都是 Bot Service 的一部分:

Bot Service provides the core components for creating bots, including the Bot Builder SDK for developing bots and the Bot Framework for connecting bots to channels.

简单地说,Bot Service 将在 Azure 中托管一个 Web App / Functions Bot,让您配置通道或在线编辑代码。

Bot Channels Registration 适用于开发人员基于 Bot Builder SDK 创建自己的 Web 应用程序项目并将 Web 应用程序部署到 Azure/AWS/Google Cloud Platform 的项目。在 Azure 的 Bot Channels Registration 中,开发人员可以 link 他们的网络应用程序 url 到 Azure 并启用频道以与他们的 bot 通信。总之,此方案在开发和托管方面具有更大的灵活性。

对于您的情况,您可以使用 QnA Bot 模板创建 Web 应用程序/Functions Bot。创建后,在“应用程序设置”>“应用程序设置”下 > 查找 QnAKnowledgebaseId & QnASubscriptionKey 替换 QnA 服务中信息中的两个字段。 保存更新,您的机器人应该会使用您发布的 QnA 服务。