Skip to content
Snippets Groups Projects
Commit 0e83d4f7 authored by Dominic Daniel Krämer's avatar Dominic Daniel Krämer
Browse files

add fallback feature

parent ad376978
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ pipeline: ...@@ -36,7 +36,7 @@ pipeline:
epochs: 100 epochs: 100
constrain_similarities: true constrain_similarities: true
- name: FallbackClassifier - name: FallbackClassifier
threshold: 0.3 threshold: 0.7
ambiguity_threshold: 0.1 ambiguity_threshold: 0.1
# Configuration for Rasa Core. # Configuration for Rasa Core.
......
version: "3.1" version: "3.1"
rules: 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 - rule: respond to a thankful user
steps: steps:
- intent: thank_you - intent: thank_you
......
...@@ -65,6 +65,13 @@ actions: ...@@ -65,6 +65,13 @@ actions:
- action_future_iss_location - action_future_iss_location
responses: responses:
utter_could_not_understand:
- text: "I'm sorry, I didn't quite understand that. Could you rephrase?"
#######################################################
#######################################################
#######################################################
utter_your_welcome: utter_your_welcome:
- text: "You're welcome! I am always happy to assist you." - 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!" - text: "Of course! If you have any other question or request feel free to ask them!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment