Hi everyone,
I’m having trouble implementing my fallback utter message. As of now, I already defined utter_default
template on the domain.yaml
and registered it as an action in that same file. Also, I created two stories:
## story_fallback
* out_of_scope
- action_default_fallback
## fallback
- utter_fallback
The first one is working: when the intent is out_of_scope
(I have some examples of this on my nlu_data.md
) it activates the action_default_fallback
and spits out my utter_fallback
template.
However, since I’m training my model using:
python -m rasa_core.train -d domain.yml -s data/stories.md -o models/current/dialogue --nlu_threshold 0.1 --core_threshold 0.1 --fallback_action action_default_fallback
I was expecting the model to fallback to utter_fallback
when the NLU confidence was bellow 0.1. But on reality this doesn’t happen:
2018-10-04 15:21:03 DEBUG urllib3.connectionpool - Starting new HTTP connection (1): localhost
2018-10-04 15:21:03 DEBUG rasa_core.tracker_store - Recreating tracker for id 'default'
2018-10-04 15:21:03 DEBUG rasa_core.processor - Received user message '' with intent '{'name': None, 'confidence': 0.0}' and entities '[]'
2018-10-04 15:21:03 DEBUG rasa_core.processor - Logged UserUtterance - tracker now has 19 events
2018-10-04 15:21:03 DEBUG rasa_core.processor - Current slot values:
address: None
delivery_state: None
name: paulo
2018-10-04 15:21:03 DEBUG rasa_core.policies.memoization - Current tracker state [{'slot_name_0': 1.0, 'intent_name': 1.0, 'prev_action_listen': 1.0}, {'slot_name_0': 1.0, 'intent_name': 1.0, 'prev_utter_greet': 1.0}, {'prev_action_listen': 1.0, 'slot_name_0': 1.0}]
2018-10-04 15:21:03 DEBUG rasa_core.policies.memoization - There is no memorised next action
2018-10-04 15:21:03 DEBUG rasa_core.policies.ensemble - Predicted next action using policy_2_KerasPolicy
2018-10-04 15:21:03 DEBUG rasa_core.processor - Predicted next action 'utter_thanks' with prob 0.66.
As you can see, it predicts another action (utter_thanks
) when I type an empty string (that has an intent confidence of 0.0).
What am I doing wrong? I followed all the directions on the tutorial and I still can’t default when the confidence is low.