Hi New to Rasa,
I am getting the same issue, The first time even though the intent is threshold confidence is met. it triggers the fallbackpolicy and next minute it works fine by predicting TED policy. The version we are using is still 1.10.2. I have also attached the config as well.
2020-11-20 12:27:20 DEBUG rasa.core.policies.memoization - Current tracker state [{‘prev_action_address_confirmation’: 1.0, ‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_listen’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0, ‘prev_change_address’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_change_address’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_address_confirmation’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}]
2020-11-20 12:27:20 DEBUG rasa.core.policies.memoization - There is no memorised next action
2020-11-20 12:27:20 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘affirm’.
2020-11-20 12:27:20 DEBUG rasa.core.policies.form_policy - There is no active form
2020-11-20 12:27:20 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.7).
2020-11-20 12:27:20 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy
2020-11-20 12:27:20 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00.
2020-11-20 12:27:20 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’.
2020-11-20 12:27:20 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘xxxxxx xxxxx’.
2020-11-20 12:27:32 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘21915 5003’.
2020-11-20 12:27:32 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘21915 5003’.
2020-11-20 12:27:32 DEBUG rasa.core.lock_store - Acquired lock for conversation ‘21915 5003’.
2020-11-20 12:27:32 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘21915 5003’
2020-11-20 12:27:32 DEBUG rasa.nlu.classifiers.diet_classifier - There is no trained model for ‘ResponseSelector’: The component is either not trained or didn’t receive enough training data.
2020-11-20 12:27:32 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default
2020-11-20 12:27:32 DEBUG rasa.core.processor - Received user message ‘yes’ with intent ‘{‘name’: ‘affirm’, ‘confidence’: 0.9999963641166687}’ and entities ‘[]’
2020-11-20 12:27:32 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 610 events.
2020-11-20 12:27:32 DEBUG rasa.core.policies.memoization - Current tracker state [{‘intent_deny’: 1.0, ‘prev_action_listen’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0, ‘prev_change_address’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_change_address’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_address_confirmation’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}]
2020-11-20 12:27:32 DEBUG rasa.core.policies.memoization - There is no memorised next action
2020-11-20 12:27:32 DEBUG rasa.core.policies.form_policy - There is no active form
2020-11-20 12:27:32 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.7).
2020-11-20 12:27:32 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_4_FallbackPolicy
2020-11-20 12:27:32 DEBUG rasa.core.processor - Predicted next action ‘action_fallback’ with confidence 0.70.
2020-11-20 12:27:32 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_fallback’.
2020-11-20 12:27:32 DEBUG rasa.core.processor - Action ‘action_fallback’ ended with events ‘[BotUttered(‘I beg your pardon ! Could you please repeat it again ?’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1605875252.4759085), <rasa.core.events.SlotSet object at 0x7ff186d95cc0>]’.
2020-11-20 12:27:32 DEBUG rasa.core.processor - Current slot values:
Second time it uses TED Policy
2020-11-20 12:27:32 DEBUG rasa.core.policies.memoization - Current tracker state [{‘intent_deny’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0, ‘prev_change_address’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_change_address’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_address_confirmation’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0, ‘prev_action_fallback’: 1.0}]
2020-11-20 12:27:32 DEBUG rasa.core.policies.memoization - There is no memorised next action
2020-11-20 12:27:32 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘affirm’.
2020-11-20 12:27:32 DEBUG rasa.core.policies.form_policy - There is no active form
2020-11-20 12:27:32 DEBUG rasa.core.policies.fallback - Predicted ‘action_listen’ after fallback action ‘action_fallback’
2020-11-20 12:27:32 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_4_FallbackPolicy
2020-11-20 12:27:32 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00.
2020-11-20 12:27:32 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘[]’.
2020-11-20 12:27:32 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘07960021915 5003’.
2020-11-20 12:27:38 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘07960021915 5003’.
2020-11-20 12:27:38 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘07960021915 5003’.
2020-11-20 12:27:38 DEBUG rasa.core.lock_store - Acquired lock for conversation ‘07960021915 5003’.
2020-11-20 12:27:38 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘07960021915 5003’
2020-11-20 12:27:38 DEBUG rasa.nlu.classifiers.diet_classifier - There is no trained model for ‘ResponseSelector’: The component is either not trained or didn’t receive enough training data.
2020-11-20 12:27:38 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default
2020-11-20 12:27:38 DEBUG rasa.core.processor - Received user message ‘yes’ with intent ‘{‘name’: ‘affirm’, ‘confidence’: 0.9999963641166687}’ and entities ‘[]’
2020-11-20 12:27:38 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 615 events.
2020-11-20 12:27:38 DEBUG rasa.core.policies.memoization - Current tracker state [{‘intent_deny’: 1.0, ‘prev_action_change_address’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘intent_deny’: 1.0, ‘prev_action_address_confirmation’: 1.0, ‘slot_registered_0’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}, {‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0, ‘prev_action_fallback’: 1.0}, {‘prev_action_listen’: 1.0, ‘slot_registered_0’: 1.0, ‘intent_affirm’: 1.0, ‘slot_Order_Type_0’: 1.0, ‘slot_Item_available_0’: 1.0}]
2020-11-20 12:27:38 DEBUG rasa.core.policies.memoization - There is no memorised next action
2020-11-20 12:27:38 DEBUG rasa.core.policies.form_policy - There is no active form
2020-11-20 12:27:38 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.7).
2020-11-20 12:27:38 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy
2020-11-20 12:27:38 DEBUG rasa.core.processor - Predicted next action ‘action_save_order’ with confidence 0.78.
2020-11-20 12:27:38 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_save_order’.
2020-11-20 12:27:40 DEBUG rasa.core.processor - Action ‘action_save_order’ ended with events ‘[BotUttered(‘The total bill amount is 23 pounds and 95 pence.How would you like to pay ? Cash or Card ?’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {“order_id”: “ivr121”, “pounds”: “23”, “pence”: “95”}, 1605875260.1129186), <rasa.core.events.SlotSet object at 0x7ff1a4cafeb8>, <rasa.core.events.SlotSet object at 0x7ff1a4caf6a0>, <rasa.core.events.SlotSet object at 0x7ff1d9d6b0f0>]’.
2020-11-20 12:27:40 DEBUG rasa.core.processor - Current slot values:
Config
policies:
- name: MemoizationPolicy
- name: TEDPolicy
max_history: 10
epochs: 100
- name: MappingPolicy
- name: FormPolicy
- name: FallbackPolicy
nlu_threshold: 0.7
ambiguity_threshold: 0.1
core_threshold: 0.7
fallback_action_name: action_fallback