The documentation for Fallback Actions states that you can “Add the FallbackPolicy to your policy ensemble” or you can “run it from python”.
Question 1: Can anyone clarify what “adding FallbackPolicy to the policy ensemble” means? It also mentions parameters to adjust thresholds and identify the name of the fallback action. Does that mean you can put them directly into the run command below?
python -m rasa_core.run -d models/current/dialogue -u models/current/nlu_model
Question 2: If running from python, do you simply place this in the same actions.py file that you use for custom actions?
from rasa_core.policies.fallback import FallbackPolicy
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.agent import Agent
fallback = FallbackPolicy(fallback_action_name=“action_default_fallback”, core_threshold=0.3, nlu_threshold=0.3)
agent = Agent(“domain.yml”, policies=[KerasPolicy(), fallback])