hey @r4sn4, just check what is the confidence score you get for the above queries, is it above your nlu threshold that you have defined in the fallback policy?
@JiteshGaikwad
I have already checked threshold and it is coming to be above 0.7. Why threshold is coming out to be so high for words which never existed in my data? Even if it is resolving to random intent, it should resolve with low confidence score? On what basis it resolve to particular intent?
@r4sn4 might be itâs able to fine atleast some of the words in your training data, I mean as in the above example you had asked
What is hippa compliance?
What is rasa nlu
since you are using tensorflow_embedding as the classifier, it creates the bag of words from the training data and the words like what, is are getting matched with the bag of words.
can you check with sklearn classifer and see the nlu results
if this is the case. then it should resolve to intents where âwhat isâ is present in the conversation, but instead it is pointing to intents which does not contain such words at all.
with SKlearn classifier, accuracy of model degrades even further.
in your domain.yml file, you create an utter_default template like this to handle your responses:
utter_default:
- text: "Sorry, I didn't get that. Could you please rephrase?"
- text: "I didn't understand, could you rephrase that?"
- text: "I'm sorry, but I didn't understand you. Could you please rephrase what you just said?"
- text: "I'm afraid I didn't get what you just said. Could you rephrase that?"
- text: "I didn't quite get that, could you rephrase your message?"
- text: "Could you rephrase your message? I didn't get it, I'm sorry."
Also in your domain.yml file add the fallback action name to the bottom of your actions: section
action_default_fallback
I think thatâs âallâ I had to to do get a fallback response to work.
retrain it and type some garble in, and you should get one of the random responses back.
Hmm, ok. I donât mean to talk down to you so please donât take this as such.
Do you have it setup the way I do though?
I seem to remember getting randomish responses before I had it all right.
Just asking because I didnât see fallback_action_name: "action_default_fallback" in your initial policies: block above, I think you need that, and the naming convention is important as well.
Again, sorry if you know this already
Maybe if you could post your config.yml, domain.yml and actions.py file to a gist so I (we) can check it out