Fixed/hack/work-around:
I don’t think this is the right approach but I got the fallback to work.
I modified rasa_core.train to suport a new argument, in short:
Edit:
So I came across ´ActionDefaultFallback´ in the changelog, and found ´utter_default´ in the documentation. But when I add ´utter_default´ to my domain.yml, there still isn’t any fallback in the bot. What else do I need to set up for the default fallback to work?
I want to define a default fallback action action_default_fallback but I get the error when I run rasa_core.train
ValueError: Action names are not unique! Found two actions with name ‘action_default_fallback’. Either rename or remove one of them.
Hmm what’s the most recent edit on this? is it working now or not? So yeah the fallback policy isn’t currently part of the train script, we’re aware of that and it should be. At the moment we just have a separate python file for the specific bot and define all the policies we want there. However, since you’ve already modified the train script – do you mind submitting a PR to Core for this?
Is the default fallback disabled by default?
rasa_core.constants.py the vars DEFAULT_NLU_FALLBACK_THRESHOLD and DEFAULT_NLU_FALLBACK_THRESHOLD are set to 0.0.
If I understood the theory behind intent classification then the probability can never be equal zero.
I am tempted to set a float value myself, unless 0.0 is actually a valid value.
In action server i see action_default_fallback is triggered
I0822 18:59:21.712826 139684754990912 executor.py:173] Received request to run ‘action_default_fallback’
I0822 18:59:21.712929 139684754990912 executor.py:186] Successfully ran ‘action_default_fallback’
But, in cmd test bot answer nothing, nevertheless i have utter_default in domain.yml and copied class ActionDefaultFallback(Action): class to actions.py
ERROR:rasa.core.actions.action:The model predicted the custom action ‘my_fallback_action’, but you didn’t configure an endpoint to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. https://rasa.com/docs/rasa/core/actions
ERROR:rasa.core.processor:Encountered an exception while running action ‘my_fallback_action’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
I am getting this error. I have mentioned the utter_default in domain file also, but it is not calling