Skip to content
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

Get Full Retrieval Intent Name #12998

Merged
merged 6 commits into from
Jan 19, 2024
Merged

Get Full Retrieval Intent Name #12998

merged 6 commits into from
Jan 19, 2024

Conversation

vcidst
Copy link
Contributor

@vcidst vcidst commented Jan 18, 2024

Proposed changes:

  • Adds FULL_RETRIEVAL_INTENT_NAME_KEY to the intent dictionary. This has downstream effects and fixes a bug in the Analytics pipeline that expects this key
  • Works on ATO-1956

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@vcidst vcidst requested a review from a team as a code owner January 18, 2024 16:52
@vcidst vcidst requested review from a team, radovanZRasa and ancalita and removed request for a team January 18, 2024 17:01
@@ -732,6 +737,23 @@ async def parse_message(

return parse_data

def _update_full_retrieval_intent(self, parse_data: Dict[Text, Any]) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a processor unit test for this case please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, just added it in the commit acf376b

Copy link
Member

@ancalita ancalita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done 💯 Only the linting needs to be fixed.

"text": "I like sunny days in berlin",
"intent": {"name": "chitchat", "confidence": 0.9},
"entities": [],
"response_selector": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a duplicate curly brace or meant to be a list of dicts instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was indeed a duplicate curly brace, I missed it when I copied the response_selector dictionary from an example bot

@vcidst vcidst enabled auto-merge (squash) January 19, 2024 10:42
@vcidst vcidst merged commit ce1f5d2 into 3.6.x Jan 19, 2024
98 checks passed
@vcidst vcidst deleted the ATO-1956 branch January 19, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants