Skip to content

Only show "NO MATCH" response button if active learning is active #1579

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

Merged
merged 6 commits into from
Mar 25, 2021

Conversation

Zerryth
Copy link
Contributor

@Zerryth Zerryth commented Mar 19, 2021

Fixes #1571

Description

Currently when using the multi-turn feature in QnAMakerDialog, it will show "None of the above"

Multi-turn prompt has a 3rd extra button, "None of the above" (Incorrect behavior)
image

"None of the above" is the "NO MATCH" response for active learning when QnAMaker wants explicit feedback about which of the closely scored answers the user considers is the actual answer their question correctly (in "NO MATCH" case, it means that none of the suggestions that are offered answers the user's question)

This "NO MATCH" response is only supposed to show up in an active learning prompt, however it is incorrectly also showing up fo rmulti-turn as well. See below

Testing

  1. Ensure that multi-turn prompt does not have NO MATCH response present

    • image
  2. Ensure that NO MATCH response does show up for active learning prompts:

    • image

@@ -67,13 +67,6 @@ def get_qna_prompts_card(result: QueryResult, card_no_match_text: str) -> Activi
for prompt in result.context.prompts
]

# Add No match text
Copy link
Contributor Author

@Zerryth Zerryth Mar 19, 2021

Choose a reason for hiding this comment

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

  • get_qna_prompts_card gets called for multi-turn qna dialog scenarios
  • It's not an active learning scenario
  • remove active learning NO MATCH response appending from get_qna_prompts_card
  • the NO MATCH response is still present within get_suggestions_card, which is what is called for active learning prompt scenarios

@Zerryth Zerryth requested review from tracyboehrer and axelsrz March 19, 2021 19:00
@Zerryth Zerryth added this to the R13 milestone Mar 19, 2021
@Zerryth
Copy link
Contributor Author

Zerryth commented Mar 25, 2021

@tracyboehrer @axelsrz could someone please review this PR? Want to get this in before code complete date

@axelsrz axelsrz merged commit 3e22475 into main Mar 25, 2021
@axelsrz axelsrz deleted the zerryth/qna-no-match-res branch March 25, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants