删除数据库对话后,Rasa错误消失了,为什么?

时间:2019-10-13 10:48:17

标签: rasa-nlu rasa-core rasa

我在Rasa中遇到一个奇怪的问题。当我删除某个动作名称或更改某个动作名称时。同时,我还删除了一些插槽。 Rasa将出现以下错误:

2019-10-12 13:57:58 ERROR    rasa.core.trackers  - Tried to set non existent slot 'mathcalc'. Make sure you added all your slots to your domain file.
2019-10-12 13:57:58 ERROR    rasa.core.trackers  - Tried to set non existent slot 'mathcalc'. Make sure you added all your slots to your domain file.
2019-10-12 13:57:58 ERROR    rasa.core.trackers  - Tried to set non existent slot 'mathcalc'. Make sure you added all your slots to your domain file.
2019-10-12 13:57:58 ERROR    rasa.core.trackers  - Tried to set non existent slot 'mathcalc'. Make sure you added all your slots to your domain file.
2019-10-12 13:57:58 ERROR    rasa.core.trackers  - Tried to set non existent slot 'mathcalc'. Make sure you added all your slots to your domain file.

2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'intent_calc_plus' could not be found in feature map.
2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'active_form_meeting_form' could not be found in feature map.
2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'entity_mathcalc' could not be found in feature map.
2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'intent_calc_plus' could not be found in feature map.
2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'active_form_meeting_form' could not be found in feature map.
2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'entity_mathcalc' could not be found in feature map.
2019-10-12 13:57:58 WARNING  rasa.core.featurizers  - Feature 'intent_calc_plus' could not be found in feature map.

2019-10-13 09:08:21 WARNING  rasa.core.domain  - Failed to use action 'action_calc_plus' in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don't worry about this warning. It should stop appearing after a while. 
2019-10-13 09:08:21 WARNING  rasa.core.domain  - Failed to use action 'action_calc_minus' in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don't worry about this warning. It should stop appearing after a while. 
2019-10-13 09:08:21 WARNING  rasa.core.domain  - Failed to use action 'action_calc_divide' in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don't worry about this warning. It should stop appearing after a while. 
2019-10-13 09:08:21 WARNING  rasa.core.domain  - Failed to use action 'action_calc_multiply' in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don't worry about this warning. It should stop appearing after a while. 
2019-10-13 09:08:21 WARNING  rasa.core.domain  - Failed to use action 'action_calc_multiply' in history. Please make sure all actions are listed in the domains action list. If you recently removed an action, don't worry about this warning. It should stop appearing after a while. 

我删除的广告位“ mathcalc”和功能“ intent_calc_plus”以及操作“ action_calc_plus”。 仅当我删除对话表时,以上错误才会消失。是什么原因? 我无法在生产环境中删除对话表。

非常感谢!

1 个答案:

答案 0 :(得分:0)

好像我回答得有点晚了,但是在这里。

您收到此错误,是因为当用户重新启动与漫游器的对话时,rasa首先会检索与该用户之前的对话(称为tracker)。这意味着在上一个对话中,它具有插槽mathcalc。但是这一次,当它尝试填充插槽mathcalc时,它不能,因为这次它不存在。这就是您收到错误的原因。

这是跟踪器的外观:

{
 "sender_id": "2408196042602645",
  "slots": {
    "mathcalc": null,
    ...
  },
 "latest_message": {...},
 "events": [...]
}

要解决该问题,您应该使用新数据重新训练您的机器人,并且应该没问题。

当您删除conversations表时,此问题消失的原因是因为先前的对话不存在,因此它不会尝试重新创建最后的对话。

希望有帮助。