Rasa is not able to predict the correct intent if I jump stories. See below, if I type “good morning” after “hello”, it is not able to understand. Because in the stories, good_morning was a separate story, but in a real-world scenario, it is possible that users jump stories and start a new story in the middle of an existing story.
Shouldn’t the NLU and intent matching threshold be given priority in this case?
Your input -> qqq
Sorry I could not underastand.
Your input -> hello
Hey! How are you?
Your input -> good morning
Sorry I could not underastand. <------ this
Your input -> how are you
I am good, you tell.
Your input -> i am sad
Here is something to cheer you up:
Image: https://i.imgur.com/nGF1K8f.jpg
Did that help you?
Your input -> yep
Sorry I could not underastand.
Your input -> i am sad
Great, carry on! <----------------- this
config:
language: en
pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: CRFEntityExtractor
- name: EntitySynonymMapper
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: EmbeddingIntentClassifier
policies:
- name: MemoizationPolicy
max_history: 5
- name: KerasPolicy
featurizer:
- name: MaxHistoryTrackerFeaturizer
max_history: 5
state_featurizer:
- name: BinarySingleStateFeaturizer
- name: MappingPolicy
- name: "FallbackPolicy"
nlu_threshold: 0.4
core_threshold: 0.3
fallback_action_name: "action_default_fallback"
Stories:
happy path
- greet
- utter_greet
- mood_great
- utter_happy
sad path 1
- greet
- utter_greet
- mood_unhappy
- utter_cheer_up
- utter_did_that_help
- affirm
- utter_happy
sad path 2
- greet
- utter_greet
- mood_unhappy
- utter_cheer_up
- utter_did_that_help
- deny
- utter_goodbye
say goodbye
- goodbye
- utter_goodbye
bot challenge
- bot_challenge
- utter_iamabot
happy path 2
- greet
- utter_greet
- how_are_you
- utter_i_am_good
- mood_great
- utter_happy
- utter_goodbye
good morning
- good_morning
- utter_good_morning