创建LUIS和KB并将其链接所需的清晰度 [英] Clarity required in creating LUIS and KB and linking them

查看:108
本文介绍了创建LUIS和KB并将其链接所需的清晰度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为10个不同的过程创建了10KB.可以说,每个KB都有与每个进程有关的QNA.现在,我需要创建一个LUIS,它将识别用户的正确意图并从正确的KB中获取答案.您能从架构的角度阐明它的工作原理,并请我帮忙执行这些步骤.

I created 10KB for my 10 different process. Lets say, each KB has QNA pertaining to each processes. Now i need to create a LUIS which would identify the right intent of user and fetch an answer from right KB. Can you please clarify how this works from an architecture perspective and please help me with the steps as well.

推荐答案

有一个指南和示例项目

There is a guide and sample project available here.

基本上,您会创建一个LUIS应用程序,然后使用Dispatch工具来创建一个本地文件,该文件会扫描您所有的知识库,并提取您的问题以用作LUIS称为

Basically you create a LUIS app and then you use the Dispatch tool to create a local file which scans all of your knowledge bases and extracts your questions to use as something that LUIS calls utterances, these utterances are then used to determine the user's LUIS intent in your case which knowledge base to use. Basically the dispatch app in LUIS acts as a router. One you have created the dispatch file locally then you need to push it up to your LUIS app (dispatch create command).

我建议下载示例应用程序,并在整个过程中运行,以基本了解所有内容如何组合在一起.一旦发布了LUIS应用程序,您就可以在此处可用,请注意在最初发布调度应用程序后更新知识库(通过添加新条目或替代措词)时,您将必须意向.

I would recommend downloading the sample app and running through the whole process to get a basic understanding of how everything fits together. Once you have published your LUIS app you will be able to test it within the LUIS portal by inputting example utterances and inspecting the reply to see the intent that was selected. The documentation for the Dispatch tool is available here, please note that when you update your knowledge bases (by adding new entries or alternative phrasing) after publishing your dispatch app initially you will have to refresh your dispatch model for these new questions/alternative phrase to have an utterance added in LUIS to that map to the correct LUIS intent - otherwise they will return the None intent.

NB.您可以通过以下方式解决更新调度程序的需求:当您收到无"意图并遍历所有知识库以请求用户查询答案时,只需返回得分较高的答案即可(有一个收集每个知识库的答案的集合),但我不推荐您这样做,因为您会错过针对

NB. you could hack around the need to update the dispatcher by handling the case when you get a the "None" intent back and iterating through all of your knowledge bases to request an answer for the user's query and just return the answer with the higher score (have a collection that keeps the answer from each knowledge base) but I wouldn't recommend it as you miss out on the benefits of Active learning for LUIS and QnA Maker.

这篇关于创建LUIS和KB并将其链接所需的清晰度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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