Skip to content

Commit 3db124f

Browse files
authored
Merge pull request #102606 from diberry/diberry/0128-qna-prakul-2
[Cogsvcs] QnA - Migrate - screenshots
2 parents d31278b + def93e1 commit 3db124f

File tree

11 files changed

+50
-58
lines changed

11 files changed

+50
-58
lines changed

articles/cognitive-services/QnAMaker/Concepts/content-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The table below summarizes the types of content and file formats that are suppor
1616
|Source Type|Content Type| Examples|
1717
|--|--|--|
1818
|URL|FAQs<br> (Flat, with sections or with a topics homepage)<br>Support pages <br> (Single page how-to articles, troubleshooting articles etc.)|[Plain FAQ](https://docs.microsoft.com/azure/cognitive-services/qnamaker/faqs), <br>[FAQ with links](https://www.microsoft.com/en-us/software-download/faq),<br> [FAQ with topics homepage](https://www.microsoft.com/Licensing/servicecenter/Help/Faq.aspx)<br>[Support article](https://docs.microsoft.com/azure/cognitive-services/qnamaker/concepts/best-practices)|
19-
|PDF / DOC|FAQs,<br> Product Manual,<br> Brochures,<br> Paper,<br> Flyer Policy,<br> Support guide,<br> Structured QnA,<br> etc.|[Structured QnA.doc](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/structured.docx),<br> [Sample Product Manual.pdf](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/product-manual.pdf),<br> [Sample semi-structured.doc](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/semi-structured.docx),<br> [Sample white paper.pdf](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/white-paper.pdf),<br>[Sample multi-turn.docx](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/multi-turn.docx)|
19+
|PDF / DOC|FAQs,<br> Product Manual,<br> Brochures,<br> Paper,<br> Flyer Policy,<br> Support guide,<br> Structured QnA,<br> etc.|**Without Multi-turn**<br>[Structured QnA.doc](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/structured.docx),<br> [Sample Product Manual.pdf](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/product-manual.pdf),<br> [Sample semi-structured.doc](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/semi-structured.docx),<br> [Sample white paper.pdf](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/white-paper.pdf),<br><br>**Multi-turn**:<br>[Surface Pro (docx)](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/multi-turn.docx)<br>[Contoso Benefits (docx)](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/Multiturn-ContosoBenefits.docx)<br>[Contoso Benefits (pdf)](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/Multiturn-ContosoBenefits.pdf)|
2020
|*Excel|Structured QnA file<br> (including RTF, HTML support)|[Sample QnA FAQ.xls](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/QnA%20Maker%20Sample%20FAQ.xlsx)|
2121
|*TXT/TSV|Structured QnA file|[Sample chit-chat.tsv](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/qna-maker/data-source-formats/Scenario_Responses_Friendly.tsv)|
2222

articles/cognitive-services/QnAMaker/How-To/improve-knowledge-base.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ title: Improve knowledge base - QnA Maker
33
titleSuffix: Azure Cognitive Services
44
description: Improve the quality of your knowledge base with active learning. Review, accept or reject, add without removing or changing existing questions.
55
author: diberry
6-
manager: nitinme
6+
manager: nitinme
77
services: cognitive-services
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: conceptual
11-
ms.date: 10/14/2019
11+
ms.date: 01/28/2020
1212
ms.author: diberry
1313
---
1414

1515
# Use active learning to improve your knowledge base
1616

17-
Active learning allows you to improve the quality of your knowledge base by suggesting alternative questions, based on user-submissions, to your question and answer pair. You review those suggestions, either adding them to existing questions or rejecting them.
17+
Active learning allows you to improve the quality of your knowledge base by suggesting alternative questions, based on user-submissions, to your question and answer pair. You review those suggestions, either adding them to existing questions or rejecting them.
1818

1919
Your knowledge base doesn't change automatically. In order for any change to take effect, you must accept the suggestions. These suggestions add questions but don't change or remove existing questions.
2020

2121
## What is active learning?
2222

2323
QnA Maker learns new question variations with implicit and explicit feedback.
24-
24+
2525
* [Implicit feedback](#how-qna-makers-implicit-feedback-works) – The ranker understands when a user question has multiple answers with scores that are very close and considers this as feedback. You don't need to do anything for this to happen.
26-
* [Explicit feedback](#how-you-give-explicit-feedback-with-the-train-api) – When multiple answers with little variation in scores are returned from the knowledge base, the client application asks the user which question is the correct question. The user's explicit feedback is sent to QnA Maker with the [Train API](#train-api).
26+
* [Explicit feedback](#how-you-give-explicit-feedback-with-the-train-api) – When multiple answers with little variation in scores are returned from the knowledge base, the client application asks the user which question is the correct question. The user's explicit feedback is sent to QnA Maker with the [Train API](#train-api).
2727

2828
Both methods provide the ranker with similar queries that are clustered.
2929

@@ -39,53 +39,54 @@ Once questions are suggested in the QnA Maker portal, you need to review and acc
3939

4040
QnA Maker's implicit feedback uses an algorithm to determine score proximity then make active learning suggestions. The algorithm to determine proximity is not a simple calculation. The ranges in the following example are not meant to be fixed but should be used as a guide to understand the impact of the algorithm only.
4141

42-
When a question's score is highly confident, such as 80%, the range of scores that are considered for active learning are wide, approximately within 10%. As the confidence score decreases, such as 40%, the range of scores decreases as well, approximately within 4%.
42+
When a question's score is highly confident, such as 80%, the range of scores that are considered for active learning are wide, approximately within 10%. As the confidence score decreases, such as 40%, the range of scores decreases as well, approximately within 4%.
4343

4444
## How you give explicit feedback with the Train API
4545

4646
It is important that QnA Maker gets explicit feedback about which of the answers was the best answer. How the best answer is determined is up to you and can include:
4747

4848
* User feedback, selecting one of the answers.
49-
* Business logic, such as determining an acceptable score range.
49+
* Business logic, such as determining an acceptable score range.
5050
* A combination of both user feedback and business logic.
5151

5252
## Upgrade your runtime version to use active learning
5353

54-
Active Learning is supported in runtime version 4.4.0 and above. If your knowledge base was created on an earlier version, [upgrade your runtime](set-up-qnamaker-service-azure.md#get-the-latest-runtime-updates) to use this feature.
54+
Active Learning is supported in runtime version 4.4.0 and above. If your knowledge base was created on an earlier version, [upgrade your runtime](set-up-qnamaker-service-azure.md#get-the-latest-runtime-updates) to use this feature.
5555

5656
## Turn on active learning to see suggestions
5757

5858
Active learning is off by default. Turn it on to see suggested questions. After you turn on active learning, you need to send information from the client app to QnA Maker. For more information, see [Architectural flow for using GenerateAnswer and Train APIs from a bot](#architectural-flow-for-using-generateanswer-and-train-apis-from-a-bot).
5959

6060
1. Select **Publish** to publish the knowledge base. Active learning queries are collected from the GenerateAnswer API prediction endpoint only. The queries to the Test pane in the QnA Maker portal do not impact active learning.
6161

62-
1. To turn active learning on in the QnA Maker portal, go to the top-right corner, select your **Name**, go to [**Service Settings**](https://www.qnamaker.ai/UserSettings).
62+
1. To turn active learning on in the QnA Maker portal, go to the top-right corner, select your **Name**, go to [**Service Settings**](https://www.qnamaker.ai/UserSettings).
6363

6464
![Turn on active learning's suggested question alternatives from the Service settings page. Select your user name in the top-right menu, then select Service Settings.](../media/improve-knowledge-base/Endpoint-Keys.png)
6565

6666

67-
1. Find the QnA Maker service then toggle **Active Learning**.
67+
1. Find the QnA Maker service then toggle **Active Learning**.
6868

69-
[![On the Service settings page, toggle on Active Learning feature. If you are not able to toggle the feature, you may need to upgrade your service.](../media/improve-knowledge-base/turn-active-learning-on-at-service-setting.png)](../media/improve-knowledge-base/turn-active-learning-on-at-service-setting.png#lightbox)
69+
> [!div class="mx-imgBorder"]
70+
> [![On the Service settings page, toggle on Active Learning feature. If you are not able to toggle the feature, you may need to upgrade your service.](../media/improve-knowledge-base/turn-active-learning-on-at-service-setting.png)](../media/improve-knowledge-base/turn-active-learning-on-at-service-setting.png#lightbox)
7071
7172
> [!Note]
72-
> The exact version on the preceding image is shown as an example only. Your version may be different.
73+
> The exact version on the preceding image is shown as an example only. Your version may be different.
7374
7475
Once **Active Learning** is enabled, the knowledge base suggests new questions at regular intervals based on user-submitted questions. You can disable **Active Learning** by toggling the setting again.
7576

7677
## Accept an active learning suggestion in the knowledge base
7778

7879
Active Learning alters the Knowledge Base or Search Service after you approve the suggestion, then save and train. If you approve the suggestion it will be added as an alternate question.
7980

80-
1. In order to see the suggested questions, on the **Edit** knowledge base page, select **View Options**, then select **Show active learning suggestions**.
81+
1. In order to see the suggested questions, on the **Edit** knowledge base page, select **View Options**, then select **Show active learning suggestions**.
8182

8283
[![On the Edit section of the portal, select Show Suggestions in order to see the active learning's new question alternatives.](../media/improve-knowledge-base/show-suggestions-button.png)](../media/improve-knowledge-base/show-suggestions-button.png#lightbox)
8384

8485
1. Filter the knowledge base with question and answer pairs to show only suggestions by selecting **Filter by Suggestions**.
8586

8687
[![Use the Filter by suggestions toggle to view only the active learning's suggested question alternatives.](../media/improve-knowledge-base/filter-by-suggestions.png)](../media/improve-knowledge-base/filter-by-suggestions.png#lightbox)
8788

88-
1. Each QnA pair suggests the new question alternatives with a check mark, `` , to accept the question or an `x` to reject the suggestions. Select the check mark to add the question.
89+
1. Each QnA pair suggests the new question alternatives with a check mark, `` , to accept the question or an `x` to reject the suggestions. Select the check mark to add the question.
8990

9091
[![Select or reject active learning's suggested question alternatives by selecting the green check mark or red delete mark.](../media/improve-knowledge-base/accept-active-learning-suggestions.png)](../media/improve-knowledge-base/accept-active-learning-suggestions.png#lightbox)
9192

@@ -113,7 +114,7 @@ A bot or other client application should use the following architectural flow to
113114

114115
### Use the top property in the GenerateAnswer request to get several matching answers
115116

116-
When submitting a question to QnA Maker for an answer, the `top` property of the JSON body sets the number of answers to return.
117+
When submitting a question to QnA Maker for an answer, the `top` property of the JSON body sets the number of answers to return.
117118

118119
```json
119120
{
@@ -125,7 +126,7 @@ When submitting a question to QnA Maker for an answer, the `top` property of the
125126

126127
### Use the score property along with business logic to get list of answers to show user
127128

128-
When the client application (such as a chat bot) receives the response, the top 3 questions are returned. Use the `score` property to analyze the proximity between scores. This proximity range is determined by your own business logic.
129+
When the client application (such as a chat bot) receives the response, the top 3 questions are returned. Use the `score` property to analyze the proximity between scores. This proximity range is determined by your own business logic.
129130

130131
```json
131132
{
@@ -166,9 +167,9 @@ When the client application (such as a chat bot) receives the response, the top
166167

167168
## Client application follow-up when questions have similar scores
168169

169-
Your client application displays the questions with an option for the user to select _the single question_ that most represents their intention.
170+
Your client application displays the questions with an option for the user to select _the single question_ that most represents their intention.
170171

171-
Once the user selects one of the existing questions, the client application sends the user's choice as feedback using QnA Maker's Train API. This feedback completes the active learning feedback loop.
172+
Once the user selects one of the existing questions, the client application sends the user's choice as feedback using QnA Maker's Train API. This feedback completes the active learning feedback loop.
172173

173174
## Train API
174175

@@ -212,11 +213,11 @@ An example JSON body looks like:
212213
}
213214
```
214215

215-
A successful response returns a status of 204 and no JSON response body.
216+
A successful response returns a status of 204 and no JSON response body.
216217

217218
### Batch many feedback records into a single call
218219

219-
In the client-side application, such as a bot, you can store the data, then send many records in a single JSON body in the `feedbackRecords` array.
220+
In the client-side application, such as a bot, you can store the data, then send many records in a single JSON body in the `feedbackRecords` array.
220221

221222
An example JSON body looks like:
222223

@@ -253,7 +254,7 @@ Your bot framework code needs to call the Train API, if the user's query should
253254
* Determine if query should be used for active learning
254255
* Send query back to QnA Maker's Train API for active learning
255256

256-
In the [Azure Bot sample](https://aka.ms/activelearningsamplebot), both of these activities have been programmed.
257+
In the [Azure Bot sample](https://aka.ms/activelearningsamplebot), both of these activities have been programmed.
257258

258259
### Example C# code for Train API with Bot Framework 4.x
259260

@@ -318,7 +319,7 @@ public async static void CallTrain(string endpoint, FeedbackRecords feedbackReco
318319
}
319320
```
320321

321-
### Example Node.js code for Train API with Bot Framework 4.x
322+
### Example Node.js code for Train API with Bot Framework 4.x
322323

323324
The following code illustrates how to send information back to QnA Maker with the Train API. This [complete code sample](https://github.com/microsoft/BotBuilder-Samples/blob/master/experimental/qnamaker-activelearning/javascript_nodejs) is available on GitHub.
324325

@@ -348,7 +349,7 @@ async callTrain(stepContext){
348349

349350
// Call Active Learning Train API
350351
this.activeLearningHelper.callTrain(this.qnaMaker.endpoint.host, feedbackRecords, this.qnaMaker.endpoint.knowledgeBaseId, this.qnaMaker.endpoint.endpointKey);
351-
352+
352353
return await stepContext.next(qnaResults);
353354
}
354355
else{
@@ -363,7 +364,7 @@ async callTrain(stepContext){
363364

364365
## Active learning is saved in the exported knowledge base
365366

366-
When your app has active learning enabled, and you export the app, the `SuggestedQuestions` column in the tsv file retains the active learning data.
367+
When your app has active learning enabled, and you export the app, the `SuggestedQuestions` column in the tsv file retains the active learning data.
367368

368369
The `SuggestedQuestions` column is a JSON object of information of implicit, `autosuggested`, and explicit, `usersuggested` feedback. An example of this JSON object for a single user-submitted question of `help` is:
369370

@@ -389,7 +390,7 @@ You can also use the download alterations API to review these alterations, using
389390
* [.NET SDK](https://docs.microsoft.com/dotnet/api/microsoft.azure.cognitiveservices.knowledge.qnamaker.alterationsextensions.getasync?view=azure-dotnet)
390391

391392

392-
When you reimport this app, the active learning continues to collect information and recommend suggestions for your knowledge base.
393+
When you reimport this app, the active learning continues to collect information and recommend suggestions for your knowledge base.
393394

394395

395396

@@ -398,6 +399,6 @@ When you reimport this app, the active learning continues to collect information
398399
For best practices when using active learning, see [Best practices](../Concepts/best-practices.md#active-learning).
399400

400401
## Next steps
401-
402+
402403
> [!div class="nextstepaction"]
403404
> [Use metadata with GenerateAnswer API](metadata-generateanswer-usage.md)

articles/cognitive-services/QnAMaker/How-To/set-up-qnamaker-service-azure.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: conceptual
11-
ms.date: 09/13/2019
11+
ms.date: 01/28/2020
1212
ms.author: diberry
1313
ms.custom: seodec18
1414
---
@@ -91,7 +91,8 @@ Endpoint keys can be managed from the [QnA Maker portal](https://qnamaker.ai).
9191

9292
2. View or reset your keys:
9393

94-
![Endpoint key manager](../media/qnamaker-how-to-key-management/Endpoint-keys1.png)
94+
> [!div class="mx-imgBorder"]
95+
> [![Show, copy, or set endpoint key in the Service Settings](../media/qnamaker-how-to-key-management/Endpoint-keys1.png)](../media/qnamaker-how-to-key-management/Endpoint-keys1.png#lightbox)
9596
9697
>[!NOTE]
9798
>Refresh your keys if you think they've been compromised. This may require corresponding changes to your client application or bot code.
@@ -130,7 +131,7 @@ QnA Maker's **App Service** resource uses the Cognitive Search resource. In orde
130131
1. Select **Settings**, then **Configuration**. This will display all existing settings for the QnA Maker's App Service.
131132

132133
> [!div class="mx-imgBorder"]
133-
> ![Screenshot of Azure portal showing App Service configuration settings](../media/qnamaker-how-to-upgrade-qnamaker/change-search-service-app-service-configuration.png)
134+
> [![Screenshot of Azure portal showing App Service configuration settings](../media/qnamaker-how-to-upgrade-qnamaker/change-search-service-app-service-configuration.png)](../media/qnamaker-how-to-upgrade-qnamaker/change-search-service-app-service-configuration.png#lightbox)
134135
135136
1. Change the values for the following keys:
136137

@@ -140,7 +141,7 @@ QnA Maker's **App Service** resource uses the Cognitive Search resource. In orde
140141
1. To use the new settings, you need to restart the App service. Select **Overview**, then select **Restart**.
141142

142143
> [!div class="mx-imgBorder"]
143-
> ![Screenshot of Azure portal restarting App Service after configuration settings change](../media/qnamaker-how-to-upgrade-qnamaker/screenshot-azure-portal-restart-app-service.png)
144+
> [![Screenshot of Azure portal restarting App Service after configuration settings change](../media/qnamaker-how-to-upgrade-qnamaker/screenshot-azure-portal-restart-app-service.png)](../media/qnamaker-how-to-upgrade-qnamaker/screenshot-azure-portal-restart-app-service.png)
144145
145146
If you create a QnA service through Azure Resource Manager templates, you can create all resources and control the App Service creation to use an existing Search service.
146147

0 commit comments

Comments
 (0)