-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 unfeaturized
flag to slots
#6809
Comments
Ok, let's featurize all slots by default (except the old |
Yes this sounds reasonable.
I'd agree. The unfeaturized slot type should stay and throw a deprecation warning. Regarding the naming of the flag:
|
Both valid points 👍 I'd personally prefer imperative style and |
I like "influence_conversation"; English speakers can never get their affects and effects sorted out anyway. |
Sounds good. Gonna go with that one then 👍 |
@melindaloubser1 Just stumbled across this line: rasa/rasa/shared/core/slots.py Line 61 in 4782953
It doesn't make sense to raise a |
|
Motivation
Slots themselves cause confusion in another way -- users may define the type based on what they hold (e.g. “text”) but not include them in their stories because they shouldn’t affect the flow -- it’s common that users don’t understand that setting the type to text will actually featurize the slot, leading to unpredictable behavior.
Suggested Solution
Add a flag
unfeaturized: true / false
to the configuration of each slot in the domain. Return the slots features inas_feature
depending on the value of theunfeaturized
flagOpen questions:
unfeaturized
? I'd vote forfalse
because we will otherwise breaking existing bots.Deprecate
UnfeaturizedSlot
Open questions:
Any
instead which can hold arbitrary values? I'd vote foryes
. We can introduce a slot typeAny
which explicitly throws an error when used withunfeaturized: false
. If users want to use anAny
slot withunfeaturized: false
, they need to implement their own slot typeCheck whether / how this affects Rasa X / Rasa SDK
The text was updated successfully, but these errors were encountered: