rasa-nlu - rasa form如何不断循环提问?

标签 rasa-nlu rasa rasa-core

我现在想通过rasa实现以下功能

User:How is the weather in New York today?
Bot:New York today is sunny.
User:How about Washington?
Bot:Washington today is rain
User:How about London
Bot:London today is cloudy
User:What about tomorrow?
Bot:London tomorrow is sunny
User:How about New York?
Bot:New York tomorrow is rain
......

这个对话可以继续循环,直到用户的意图改变。我使用的是rasa中的表单,但是该表单只能循环一轮。当所有槽都被填满后,它被停用。那么有没有更好的方法来实现这个功能呢?谢谢!

最佳答案

每次都停用表单应该没问题;当用户提供相关输入时,它将被重新激活。在表单的最后一个操作中,您可以将您想要的任何插槽重置为None。然后,如果用户再次提出相同类型的问题,表单将以空槽重新开始。即使不重置槽,如果用户提供了一个用新值填充槽的输入,则表单将使用该新值。

关于rasa-nlu - rasa form如何不断循环提问?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65405194/

相关文章:

flask - 用 flask 运行 RASA

bots - rasa 核心和 botkit 框架在对话流程方面有什么区别?

rasa-nlu - 为 Rasa nlu 返回 Null 的意图

rasa-nlu - 如何从命令行与 rasa 助手交互?

machine-learning - Rasa NLU Trainer-如何修复“"Can' t 查找训练文件”错误?

rasa - 用实体列表填充插槽 |拉萨

python - PIP 安装 rasa-x 需要永远

python - Rasa 聊天机器人不会回复某些消息

docker - 设置我们的Rasa/NLU容器,对吗?

python - Rasa NLU 模型不起作用。属性错误: 'str' object has no attribute 'load'