scoreThreshold no longer works in 4.17.0 and later #4568
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Describe the bug
When supplying scoreThreshold, it is not honored and will return the answer even though the score is much lower.
Versions
4.17.0 and later
Works in 4.16.0
Describe the bug
When supplying scoreThreshold, it is not honored and will return the answer even though the score is much lower.
To Reproduce
Steps to reproduce the behavior:
const qnaOptions = {scoreThreshold:0.65};
const qnaResults = await this.qnaMaker.getAnswers(context,qnaOptions);
Expected behavior
Should give
No QnA Maker answers were found.
or similar error as the answer is not above the threshold.Additional context
Somewhat related issue:
#1808
The text was updated successfully, but these errors were encountered: