Skip to content

Get Full Retrieval Intent Name#12998

Merged
vcidst merged 6 commits into3.6.xfrom
ATO-1956
Jan 19, 2024
Merged

Get Full Retrieval Intent Name#12998
vcidst merged 6 commits into3.6.xfrom
ATO-1956

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 January 18, 2024 16:52
@vcidst vcidst requested review from a team, ancalita and radovanZRasa and removed request for a team January 18, 2024 17:01

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
@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