I have a problem while trying to build a rasa bot. I have tree slots, tracks entities which I use as keys for a dictionary data. Very primitive, but it the only way I can think of for my task–QA problem. It can answer questions in this sequence:
user: ‘who is lebron james?’ bot: ‘a NBA player, currently playing the los angeles lakers’ user: ‘how tall is he?’ bot: ‘lebron is 6’8’’ tall’
but right after this sequence, when user asks:
user: ‘who is Kevin Love’
bot: ‘Love is 6’10" tall’
I only have the slot ‘person’ to track the person in the topic. I want to solve this by tracking the change of person slot. If the person in the Person slot changes from ‘lebron’ to ‘kevin’, I would reset the second slot instead of leaving it as ‘height’ (it’s not ideal, as user may ask ‘how about kevin love’ and the ‘love is 6’10" tall’ would be the right answer, but I still like to have this option to manipulate the dialogue).
I can spend more time digging the docs and the source code, but if anyone can give me some pointers, I would appreciate it very much.
Besides the access to previous slots technique, if anyone can give me some advise about how to store the not too big knowledge better than a dictionary, I thank you in advance.