-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Rule with slot_was_set
doesn't work as expected
#7253
Comments
Ideas for testing this issue: Test1:
Test2:
|
Maybe related to this issue that I was facing with rules validation for |
By the way, I don't think your rules are expected to work for a |
@nbeuchat I don't agree. I think you should be able to make a rule with a condition for a specific string. That why the rules exists, to make a very specific programmatic rule before any NLP policy. I'm making a pull request with a suggestion of solution for this case. It is basically assigning a float hash [0,1] for the text. I think categorical slots is when you want an one hot encoding feature. The code soo far:
|
@davidhsv It depends a bit on the use case, I feel both are valid. For example, the example they have in the documentation with the name being set or not. How would you differentiate a What could be nice though is to have different type of conditions in the rules instead of |
@nbeuchat That is a nice idea. By the actual docs I got that slot_was_set: null = slot is not set, and slot_was_set without value = slot is set. I asked this question on the live yesterday and they confirmed that this is the desired behavior. But, ultimately, it's very confusing and buggy. |
@degiz Would you rather forbid using the name only for |
@Ghostvv I was wondering about @davidhsv 's comment here. Making a |
@wochinge, I agree it is a categorical slot to me. Otherwise, it is a perfect case for custom slot, where you can provide any featurization you want |
Rasa version: 2.4.3
I also tried |
Seems that categorical slots don't care about the category values as well and just care about the slot being
|
That seems like a bug . Could you please open up a new issue, @behnam354 ? Thanks! 🙌🏻 |
Rasa version: 2.0.6
Issue:
slot_was_set
condition doesn't work with a Rule below:Expected behavior: Rule is applied when the
some_text_slot
was set to a not-null value.Actual behavior: Rule is applied when the slot is not filled.
The text was updated successfully, but these errors were encountered: