我的意图与预期的响应不匹配
My intent is not matching with expected response
我正在使用 botkit
和 luis
识别器,下面是示例代码:
bot.dialog('OnboardingDialog', (session) => {
....
....
}).triggerAction({ matches: 'OnboardingBook' })
我在回复中定义了入职意图如下:
OnboardingBook:{buttonTitle:'',url:'',响应:'new hire can be onboarded some extra stuff',标题:'Onboarding book'}
食谱:{buttonTitle:'',url:'',response:'this is about cookbook',title:'cook'}
理想情况下,如果我在我的聊天机器人中输入入职,它应该 return 在入职意图中定义的响应。但现在它给了我其他意图的答案。如果我打字,入职书会给我烹饪书的意图。
请帮我弄清楚为什么很少有意图与预期之外的匹配。这背后有什么逻辑吗?如何解决这个问题。请帮帮我。
当您再次 test your LUIS app in the LUIS portal do you get the correct intent? If so then perhaps you need to save and train, the publish 您的 LUIS 应用时。如果您在 LUIS 门户中没有得到正确的结果,那么您可以单击检查并编辑得分最高的意图(保存 + 训练然后发布以实时推送更改)。
我正在使用 botkit
和 luis
识别器,下面是示例代码:
bot.dialog('OnboardingDialog', (session) => {
....
....
}).triggerAction({ matches: 'OnboardingBook' })
我在回复中定义了入职意图如下:
OnboardingBook:{buttonTitle:'',url:'',响应:'new hire can be onboarded some extra stuff',标题:'Onboarding book'}
食谱:{buttonTitle:'',url:'',response:'this is about cookbook',title:'cook'}
理想情况下,如果我在我的聊天机器人中输入入职,它应该 return 在入职意图中定义的响应。但现在它给了我其他意图的答案。如果我打字,入职书会给我烹饪书的意图。
请帮我弄清楚为什么很少有意图与预期之外的匹配。这背后有什么逻辑吗?如何解决这个问题。请帮帮我。
当您再次 test your LUIS app in the LUIS portal do you get the correct intent? If so then perhaps you need to save and train, the publish 您的 LUIS 应用时。如果您在 LUIS 门户中没有得到正确的结果,那么您可以单击检查并编辑得分最高的意图(保存 + 训练然后发布以实时推送更改)。