diff --git a/rasa/config.yml b/rasa/config.yml index 107a70da5b4e9665e23050e59dadf188c09c2826..8e67e49fa13650147329732767c820af114d8daf 100644 --- a/rasa/config.yml +++ b/rasa/config.yml @@ -36,7 +36,7 @@ pipeline: epochs: 100 constrain_similarities: true - name: FallbackClassifier - threshold: 0.3 + threshold: 0.7 ambiguity_threshold: 0.1 # Configuration for Rasa Core. diff --git a/rasa/data/rules/rules_basics.yml b/rasa/data/rules/rules_basics.yml index 58143fd5b42e3f736eae0476655b34fc5863fc87..db03ca78517a8b059efe05604c07081595f0736b 100644 --- a/rasa/data/rules/rules_basics.yml +++ b/rasa/data/rules/rules_basics.yml @@ -1,6 +1,11 @@ version: "3.1" rules: +- rule: ask the user to rephrase whenever they send a message with low NLU confidence + steps: + - intent: nlu_fallback + - action: utter_could_not_understand + - rule: respond to a thankful user steps: - intent: thank_you diff --git a/rasa/domain.yml b/rasa/domain.yml index 9d03497bb52061033838e1ecb3944d881957892b..9233a15556029b13109a3749b196f54bdddd433d 100644 --- a/rasa/domain.yml +++ b/rasa/domain.yml @@ -65,6 +65,13 @@ actions: - action_future_iss_location responses: + utter_could_not_understand: + - text: "I'm sorry, I didn't quite understand that. Could you rephrase?" + + ####################################################### + ####################################################### + ####################################################### + utter_your_welcome: - text: "You're welcome! I am always happy to assist you." - text: "Of course! If you have any other question or request feel free to ask them!"