Hi, I am facing an issue where in-between a story some other action is getting called. eg. Let’s say there are two stories or paths… 1. create a reservation 2. edit existing reservation. Now when I am in the first story. Ill ask a user for details such as restaurant name, booking date etc. .similar questions will be asked when editing the booking. So when I am in story1 for some reason it’s asking some questions related to editing. Intent and entities are identified properly.
It is happening when its in story1 and user gives restaurant name. After that its says “DEBUG:rasa_core.policies.memoization:There is no memorised next action” and goes to story2. It askes for which reservation to edit.
I am new to rasa so I have a basic question. If there is a story and inputs are given according to the story then whats the reason for it move to other story?
I have more stories but I cannot paste the exact stories. I tried interactive online learning. I got similar stories from that as well. I tried evaludate.py and it says no wrong story and even the matrix is fine. If I train multiple times it resolves the issues sometimes. I am not sure whats wrong.
That is weird. You are running 0.11 version or previous?
Are your slots featurised as text or categorical? though if you receive the right slot name as ‘city name’ which is not present in any other story, there shouldn’t be any confusion.
it’s not your fault , don’t expect rasa stories to be accurate . I have been struggling to do the same for sometime but no luck . Tried a lot of permutations but eventually gave up
But does a city name say “NYC” or “LA” in a slot is different ? Both means true right? we can distinguish between two paths on the basis of slot’s emptiness not it’s content . Only if it’s categorical then only different content of slots means different.
@akelad please do respond , it seems this issue is popping out every now and then
I am simply using interactive learning , the stories are purely generated by them. I haven’t added a single story on my own apart from the initial stateless stories. Can you explain where could be the mistake ?
You see both the story starts with 2 distinct intents r8 , but it doesn’t follow the expected path . rather it follows one path for a portion and then jumps to another path , hence ruining the overall flow of bot. But only when we make each custom action distinct by name , it works to some extent. If you could address this issue
Ah i know what’s going wrong – it’s because your max_history is not long enough. The stories start to be different at this point right?
For this to properly be able to distinguish between the stories you’d need a max_history of something like 17. That’s not really advisable though because it won’t memorise shorter story segments anymore. What you can do is create one action that you use for both, but does different things dependent on what the state of the conversation is.