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
use_entities is broken when domain is split #10137
Comments
The fix for this issue will need to be backported to the last minor of the previous major (i.e. Rasa Open Source 2.8) |
I made a showcase on a possible solution here: raoulvm@17b4d81 in branch https://github.com/raoulvm/rasa/tree/2.8.14-fix-domain_from_directory |
@raoulvm Awesome. Thank you so much! This will help us make progress quickly on this issue |
Happy to help. We are waiting for the fix ... |
@raoulvm am working on this right now. I've identified the root cause but need to ensure my fix doesn't break other things ;) I'll message you if I need some help. |
I have a bad feeling. intents:
- play:
use_entities:
- ball
- chess
- stow_away:
use_entities: true
entities:
- ball
- chess intents:
- support_banning:
use_entities:
- automatic_rifles
- anti_person_land_mines
- certify:
use_entities: true
entities:
- automatic_rifles
- anti_person_land_mines
- tanks and post the results here? |
Spoiler, that is expected, when using
|
This is what I get when I use your
So yeah. There's some additional logic needed. Let me look at your fix. |
Aside from the moral question if |
Are you able to raise a PR from your branch against |
You could just copy the code changes. I provided that as an example. |
There are open topics though: If the domains are not loaded from a directory, but individually listed in CLI, the fix does not apply. The change probably would be similar, but I neither had time nor interest to tackle that. |
You linked to the entire branch. Which files did you change? |
Let me have quick look at the commits. |
raoulvm@17b4d81 |
@raoulvm thanks! Let me add your changes to the PR... |
@raoulvm this fix has now been released in |
Rasa Open Source version
2.8.12
Rasa SDK version
2.8.2
Rasa X version
No response
Python version
3.8
What operating system are you using?
Linux
What happened?
Create a domain.yml with the following content:
Create another domain yaml with the following content:
Reading the merged domain files using
Domain.load
shows that the intentinform
is still using the entitiescity
andcountry
.The workaround is to repeat the list of entities in the first domain file in the second domain file i.e.:
Here is the code to reproduce this behavior.
Command / Request
No response
Relevant log output
No response
Definition of done
The text was updated successfully, but these errors were encountered: