Skip to content

Commit 720741f

Browse files
committed
[Cogsvcs] QnA Maker - threshold
1 parent efb4304 commit 720741f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/cognitive-services/QnAMaker/Concepts/confidence-score.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ title: Confidence Score - QnA Maker
33
titleSuffix: Azure Cognitive Services
44
description: The confidence score indicates the confidence that the answer is the right match for the given user query.
55
services: cognitive-services
6-
author: tulasim88
6+
author: diberry
77
manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: article
11-
ms.date: 04/05/2019
12-
ms.author: tulasim
11+
ms.date: 06/17/2019
12+
ms.author: diberry
1313
ms.custom: seodec18
1414
---
1515
# Confidence score of a QnA Maker knowledge base
@@ -40,7 +40,7 @@ The following table indicates typical confidence associated for a given score.
4040
|0|No match, so the answer is not returned.|"How much does the service cost"|
4141

4242
## Choose a score threshold
43-
The table above shows the scores that are expected on most KBs. However, since every KB is different, and has different types of words, intents and goals- we recommend you test and choose the threshold that best works for you. By default the threshold is set to 0, so that all possible answers are returned. The recommended threshold that should work for most KBs, is **50**.
43+
The table above shows the scores that are expected on most KBs. However, since every KB is different, and has different types of words, intents, and goals- we recommend you test and choose the threshold that best works for you. By default the threshold is set to 0, so that all possible answers are returned. The recommended threshold that should work for most KBs, is **50**.
4444

4545
When choosing your threshold, keep in mind the balance between Accuracy and Coverage, and tweak your threshold based on your requirements.
4646

@@ -51,6 +51,10 @@ When choosing your threshold, keep in mind the balance between Accuracy and Cove
5151
> [!NOTE]
5252
> Newer versions of QnA Maker include improvements to scoring logic, and could affect your threshold. Any time you update the service, make sure to test and tweak the threshold if necessary. You can check your QnA Service version [here](https://www.qnamaker.ai/UserSettings), and see how to get the latest updates [here](../How-To/troubleshooting-runtime.md).
5353
54+
## Set threshold in GenerateAnswer API JSON body
55+
56+
Set the threshold score as a property of the [GenerateAnswer API JSON body](../how-to/metadata-generateanswer-usage.md#generateanswer-request-configuration). This means you can set it for each call to GenerateAnswer.
57+
5458
## Improve confidence scores
5559
To improve the confidence score of a particular response to a user query, you can add the user query to the knowledge base as an alternate question on that response. You can also use case-insensitive [word alterations](https://docs.microsoft.com/rest/api/cognitiveservices/qnamaker/alterations/replace) to add synonyms to keywords in your KB.
5660

0 commit comments

Comments
 (0)