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
Merge resposnes from NLU and Domain when there're no retrieval intents #7390
Conversation
6ae3b4f
to
5a0011c
Compare
5a0011c
to
5f0a1fb
Compare
@@ -65,7 +65,6 @@ async def get_domain(self) -> Domain: | |||
return domain | |||
try: | |||
domain = Domain.load(self._domain_path) | |||
domain.check_missing_templates() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this check be done somewhere if not here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Using the RetrievalModelDataImporter
to achieve this without having any retrieval intents seems weird. Shouldn't the logic of syncing all responses defined in NLU data(irrespective of them being response templates for retrieval intents) be done inside CombinedDataImporter
itself and then RetrievalModelDataImporter
adds retrieval intents to domain and fetches the response templates from domain. What do you think?
@dakshvar22 I agree, that |
@degiz I also do not have very strong opinions but renaming it more appropriately(something like - |
@dakshvar22 I've change the name! Do you have time to re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for fixing this 💯
Proposed changes:
responses
are synced between NLU data and the Domain even if there're no retrieval intents in the training data.Status (please check what you already did):
black
(please check Readme for instructions)