-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a global not_intent
parameter for the slot_mappings
#261
Comments
cc @Ghostvv |
@RasaHQ/production-squad Unsure about this one. |
backlog it is |
This is actually a Rasa Open Source issue as we moved the forms from the SDK to Rasa Open Source with the release of Rasa Open Source 2.0 |
So here are my thoughts (mostly questions) on this issue which I share with @RasaHQ/enable-squad since I do not have enough knowledge on this to completely understand the related concepts, correctly assess the issue and even do a proposal. First some questions that come into my mind by reading the very detailed and clear description.
Regarding the code, I checked where a global I think that maybe it would be very helpful if someone could also outline different test cases, eg. in test case A, the actual result is X and the desired one is Y because of reason B. Thank you so much in advance for any answer/comment/advice. |
Forms overrule everything else unless they previously rejected their execution (for the sake of simplicity you can just assume
Imagine a form wants to fill a slot
The
I'd imagine something like the following:
|
Description of Problem:
Right now a Form ignores the confidence of an intent when filling a slot, the FallbackPolicy doesn't jump in. There's no option to configure that (see #256).
With 2.0, that behaviour changes, because the FallbackClassifier overrides the intent with
nlu_fallback
. So you can specifynot_intent=nlu_fallback
on an individual slot_mapping level to make sure the Form doesn't use a user message that is below the confidence threshold. It would be great to have a global option to this, so you don't have to define it on a per slot basisOverview of the Solution:
We have a global parameter in the Form, where you can define that you would like slots to never be filled, if the intent doesn't pass the confidence threshold (and therefore has the intent
nlu_fallback
). We could even generalise this to have a globalnot_intent
setting for other intents too, e.g. you might never want to fill any slots withchitchat
The text was updated successfully, but these errors were encountered: