让chatbot(wit.ai)答复它没有正确答案 [英] Make chatbot (wit.ai) reply that it doesn't have a proper answer

查看:96
本文介绍了让chatbot(wit.ai)答复它没有正确答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Wit.ai用于我的聊天机器人.问题是我的机器人总是试图回答一些问题.如果机器人真正理解了所要询问的内容,我只会做出回答.我知道这是有可能的,但是如果我的机器人没有多少回复,即使被问到完全不同的东西,它似乎总是会选择其中一个回复.

I am using Wit.ai for my chatbot. The problem is that my bot always tries to answer something. I will only make my bot answer if it actually understood what was being asked. I know it is possible, but if I have a bot with very few replies, it seems it always chooses one of the replies even though it is asked something completely different.

我想可以让它回复诸如对不起.我不知道您在问什么.我可以帮助您....."之类的东西.

I imagine it is possible to make it reply something like "I am sorry. I don't know what you are asking. I can help you with .....".

也许我应该使用可以检索的置信度值,并确保它在某个阈值之上?

Maybe I should use the confidence value that I can retrieve, and make sure it's above some threshold?

推荐答案

现在,解决此问题的最佳方法是使用范围外的请求创建一个或多个故事,并使用用户消息的策略特征"(更多详细信息,请此处) .

Right now the best way to deal with this problem is to create one or more stories with out-of-scope requests, and add a "catchall" entity with strategy "trait" to the user message (more details here).

在最简单的情况下,"catchall"实体将具有单个值.您可能有多个值,例如,如果您想要针对不同种类的范围外请求提供不同种类的答案,但是请记住,机器人越复杂,则需要编写的故事和数据就越多.它工作正常.

In the simplest case, your "catchall" entity will have a single value. You could have several values, for example if you want different kind of answers for different kind of out-of-scope requests, but keep in mind that the more complex your bot is, the more stories and data you will need to have to make it working correctly.

我们还在努力寻找更优雅的解决方案.请继续关注: https://github.com/wit-ai/wit

We are also working on a more elegant solution. Stay tuned here: https://github.com/wit-ai/wit

这篇关于让chatbot(wit.ai)答复它没有正确答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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