I have 4 intents with the same text:
> {"intent": "bread-conditions", "text": "Terms & Benefits"},
> {"intent": "wine-conditions", "text": "Terms & Benefits"},
> {"intent": "juice-conditions", "text": "Terms & Benefits"},
> {"intent": "apple-conditions", "text": "Terms & Benefits"}
For every intent I have their own actions, so I differentiate them with writing 4 different stories:
## story-1
* bread
- utter_bread
* bread-conditions
- utter_bread-conditions
## story-2
* wine
- utter_wine
* wine-conditions
- utter_wine-conditions
## story-3
* juice
- utter_juice
* juice-conditions
- utter_juice-conditions
## story-4
* apple
- utter_apple
* apple-conditions
- utter_apple-conditions
Configuration for Rasa Core:
> agent = Agent(path_to_domain, policies=[AugmentedMemoizationPolicy(max_history=2), > KerasPolicy(max_history=2, > epochs=300, > batch_size=64, > random_seed=2, > validation_split=0.0, > featurizer=MaxHistoryTrackerFeaturizer( > max_history=2, > state_featurizer=BinarySingleStateFeaturizer())), > fallback])
The problem is that bot is not following flow, it goes one of those intents(writed at the beginning) but not to the correct one. Is there any way to overcome this problem ? Or How prioritize RasaCore over RasaNLU?