How to give priority to intents in RASA NLU

Hi All,

I was just curious to know whether we can give priority to intents while creating intents in rasa nlu? Below are screenshots from Dialog Flow.

Does this RASA NLU - Space Intent Classifier or any other classifier has functionality to assign priority to intents.

Thanks in advance.

This functionality is not yet supported by rasa_nlu. rasa_nlu picks the intent with the highest confidence. In case of low confidence intent prediction, intents can be disambiguated using TwoStageFallbackPolicy

Hi @Ghostvv can you give me a example for twostagefallbackpolicy, I tried only Fallbackpolicy and also can you tell the difference between twostagefallbackpolicy and fallbackpolicy.thanks

The TwoStageFallbackPolicy is not yet part of an official release, but you can already try it out as part of the alpha version 0.13.0a5.

The TwoStageFallbackPolicy handles ambiguous user input (classification with confidence below a certain interval) in multiple stages compared to the default fallback policy which can simply ask the user to rephrase. If the NLU classification confidence is below a given threshold, the TwoStageFallbackPolicy first asks the user to affirm an intent (you can e.g. give him a list of buttons with intents to select from). If the user then affirms the story continues. If the user does not affirm one of the provided intents, they can still rephrase.

Best checkout the documentation of it here: Training and Policies Please let me know if you have any more questions.

1 Like