简体   繁体   English

用于多个域的单个 Azure 机器人,需要示例项目

[英]Single Azure bot for multiple domains, require sample project

I am trying to build a bot for multiple knowledge bases as described in this documentation: https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/tutorials/multiple-domains .我正在尝试为多个知识库构建一个机器人,如本文档中所述: https ://docs.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/tutorials/multiple-domains . I didn't find any relevant samples which would take the user input and fetch answers from the specific knowledge base(prediction url) based on the user input.我没有找到任何相关的样本,这些样本会接受用户输入并根据用户输入从特定知识库(预测 URL)中获取答案。 I am unsure how to configure the bot to use 2 different knowledge base projects.我不确定如何配置机器人以使用 2 个不同的知识库项目。

It would help if you read more documentation on LUIS, the Orchestrator or LUIS dispatch, to get an idea of how a bot framework chatbot functions.如果您阅读有关 LUIS、Orchestrator 或 LUIS 调度的更多文档,以了解机器人框架聊天机器人的功能,将会有所帮助。

When a user inputs an utterance, the bot should first call the root LUIS recognizer to get the user's intent.当用户输入话语时,机器人应首先调用根 LUIS 识别器以获取用户的意图。 Once you have the user's intent you can route to a specific dialog which queries a specific knowledgebase, so for example dialog A might query knowledgebase A and dialog B might query knowledgebase B.一旦您有了用户的意图,您就可以路由到查询特定知识库的特定对话,例如对话 A 可能会查询知识库 A,对话 B 可能会查询知识库 B。

If you cannot reliably route based on LUIS, your only choice is to query both knowledgebase A and B in an Unknown/None intent event, check if there is an answer in either A or B knowledgebases and compile both results into a single list, or whatever other way you want to handle your result.如果您无法基于 LUIS 可靠地路由,您唯一的选择是在未知/无意图事件中同时查询知识库 A 和 B,检查 A 或 B 知识库中是否有答案并将两个结果编译到一个列表中,或者无论您想以何种其他方式处理您的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM