Skip to content

Commit fb9c54d

Browse files
committed
edit pass: four-qna-maker-articles
1 parent 01138e7 commit fb9c54d

File tree

1 file changed

+42
-41
lines changed

1 file changed

+42
-41
lines changed

articles/cognitive-services/QnAMaker/Tutorials/create-publish-query-in-portal.md

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Create, publish, answer in QnA Maker
2+
title: Create, publish, and answer in QnA Maker
33
titleSuffix: Azure Cognitive Services
4-
description: Create a new knowledge base with questions and answers from a public web-based FAQ. Save, train, and publish the knowledge base. Once the knowledge base is published, send a question and receive an answer with a CURL command. Then create a bot and test the bot with the same question.
4+
description: Create a new knowledge base with questions and answers from a public web-based FAQ. Save, train, and publish the knowledge base. After the knowledge base is published, send a question and receive an answer with a Curl command. Then create a bot, and test the bot with the same question.
55
services: cognitive-services
66
author: diberry
77
manager: nitinme
@@ -14,19 +14,20 @@ ms.author: diberry
1414
#Customer intent: As an model designer, new to the QnA Maker service, I want to understand all the process requirements to create a knowledge base and generate an answer from that knowledge base.
1515
---
1616

17-
# Tutorial: From QnA Maker portal, create a knowledge base
17+
# Tutorial: From the QnA Maker portal, create a knowledge base
1818

19-
Create a new knowledge base with questions and answers from a public web-based FAQ. Save, train, and publish the knowledge base. Once the knowledge base is published, send a question and receive an answer with a Curl command. Then create a bot and test the bot with the same question.
19+
Create a new knowledge base with questions and answers from a public web-based FAQ. Save, train, and publish the knowledge base. After the knowledge base is published, send a question and receive an answer with a Curl command. Then create a bot, and test the bot with the same question.
2020

2121
In this tutorial, you learn how to:
2222

2323
> [!div class="checklist"]
24-
> * Create a knowledge base in the QnA Maker portal
25-
> * Review, save, and train the knowledge base
26-
> * Publish the knowledge base
27-
> * Use Curl to query the knowledge base
28-
> * Create a bot
29-
>
24+
> * Create a knowledge base in the QnA Maker portal.
25+
> * Review, save, and train the knowledge base.
26+
> * Publish the knowledge base.
27+
> * Use Curl to query the knowledge base.
28+
> * Create a bot.
29+
30+
3031
> [!NOTE]
3132
> The programmatic version of this tutorial is available with a complete solution from the [**Azure-Samples/cognitive-services-qnamaker-csharp** GitHub repository](https://github.com/Azure-Samples/cognitive-services-qnamaker-csharp/tree/master/documentation-samples/tutorials/create-publish-answer-knowledge-base).
3233
@@ -40,75 +41,75 @@ This tutorial requires an existing [QnA Maker service](../How-To/set-up-qnamaker
4041

4142
1. Select **Create a knowledge base** from the top menu.
4243

43-
![Step 1 of KB Creation process](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-1.png)
44+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-1.png)
4445

45-
1. Skip the first step because you will use your existing QnA Maker service.
46+
1. Skip the first step, because you will use your existing QnA Maker service.
4647

47-
1. In the next step, select your existing settings:
48+
1. Select your existing settings:
4849

4950
|Setting|Purpose|
5051
|--|--|
51-
|Microsoft Azure Directory Id|Your _Microsoft Azure Directory ID_ is associated with the account you use to sign into the Azure portal and the QnA Maker portal. |
52-
|Azure Subscription name|Your billing account you created the QnA Maker resource in.|
52+
|Microsoft Azure Directory ID|This ID is associated with the account you use to sign into the Azure portal and the QnA Maker portal. |
53+
|Azure Subscription name|The billing account in which you created the QnA Maker resource.|
5354
|Azure QnA Service|Your existing QnA Maker resource.|
5455

55-
![Step 2 of KB Creation process](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-2.png)
56+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-2.png)
5657

57-
1. In the next step, Enter your knowledge base name, `My Tutorial kb`.
58+
1. Enter your knowledge base name, `My Tutorial kb`.
5859

59-
![Step 3 of KB Creation process](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-3.png)
60+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-3.png)
6061

61-
1. In the next step, populate your kb with the following settings:
62+
1. Populate your knowledge base with the following settings:
6263

6364
|Setting name|Setting value|Purpose|
6465
|--|--|--|
6566
|URL|`https://docs.microsoft.com/azure/cognitive-services/qnamaker/faqs` |The contents of the FAQ at that URL are formatted with a question followed by an answer. QnA Maker can interpret this format to extract questions and the associated answers.|
6667
|File |_not used in this tutorial_|This uploads files for questions and answers. |
6768
|Chit-chat personality|Friendly|This gives a friendly and casual [personality](../Concepts/best-practices.md#chit-chat) to common questions and answers. You can edit these questions and answers later. |
6869

69-
![Step 4 of KB Creation process](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-4.png)
70+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-4.png)
7071

7172
1. Select **Create your KB** to finish the creation process.
7273

73-
![Step 5 of KB Creation process](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-5.png)
74+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/create-kb-step-5.png)
7475

75-
## Review KB, save, and train
76+
## Review, save, and train the knowledge base
7677

7778
1. Review the questions and answers. The first page is questions and answers from the URL.
7879

79-
![Save and train](../media/qnamaker-tutorial-create-publish-query-in-portal/save-and-train-kb.png)
80+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/save-and-train-kb.png)
8081

8182
1. Select the last page of questions and answers from the bottom of the table. The page shows questions and answers from the Chit-chat personality.
8283

83-
1. From the toolbar above the list of questions and answers, select the **View options** icon, then select **Show metadata**. This shows the metadata tags for each question and answer. The Chit-chat questions have the **editorial: chit-chat** metadata already set. This metadata is returned to the client application along with the selected answer. The client application, such as a chat bot, can use this filtered metadata to determine additional processing or interactions with the user.
84+
1. From the toolbar above the list of questions and answers, select the **View options** icon, and then select **Show metadata**. This shows the metadata tags for each question and answer. The Chit-chat questions have the **editorial: chit-chat** metadata already set. This metadata is returned to the client application, along with the selected answer. The client application, such as a chat bot, can use this filtered metadata to determine additional processing or interactions with the user.
8485

85-
![![View Metadata tags](../media/qnamaker-tutorial-create-publish-query-in-portal/save-and-train-kb-chit-chat.png)](../media/qnamaker-tutorial-create-publish-query-in-portal/save-and-train-kb-chit-chat.png#lightbox)
86+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/save-and-train-kb-chit-chat.png#lightbox)
8687

8788
1. Select **Save and train** in the top menu bar.
8889

89-
## Publish to get KB endpoints
90+
## Publish to get knowledge base endpoints
9091

91-
Select the **Publish** button from the top menu. Once you are on the publish page, select **Publish**, next to the **Cancel** button.
92+
Select the **Publish** button from the top menu. On the publish page, select **Publish**.
9293

93-
![Publish](../media/qnamaker-tutorial-create-publish-query-in-portal/publish-1.png)
94+
![Screenshot of QnA Maker portal](../media/qnamaker-tutorial-create-publish-query-in-portal/publish-1.png)
9495

95-
After the KB is published, the endpoint is displayed
96+
After the knowledge base is published, the endpoint is displayed.
9697

97-
![Publish page's endpoint settings](../media/qnamaker-tutorial-create-publish-query-in-portal/publish-2.png)
98+
![Screenshot of endpoint settings](../media/qnamaker-tutorial-create-publish-query-in-portal/publish-2.png)
9899

99-
Do not close this **Publish** page, you will use it to create a bot later in the tutorial.
100+
Don't close this **Publish** page. You need it later in the tutorial, to create a bot.
100101

101102
## Use Curl to query for an FAQ answer
102103

103104
1. Select the **Curl** tab.
104105

105-
![Curl command](../media/qnamaker-tutorial-create-publish-query-in-portal/publish-3-curl.png)
106+
![Screenshot of Curl tab](../media/qnamaker-tutorial-create-publish-query-in-portal/publish-3-curl.png)
106107

107-
1. Copy the text of the **Curl** tab and execute in a Curl-enabled terminal or command-line. The authorization header's value includes the text `Endpoint` with a trailing space then the key.
108+
1. Copy the text of the **Curl** tab, and run it in a Curl-enabled terminal or command-line. The authorization header's value includes the text `Endpoint`, with a trailing space and then the key.
108109

109110
1. Replace `<Your question>` with `How large can my KB be?`. This is close to the question, `How large a knowledge base can I create?`, but not exactly the same. QnA Maker applies natural language processing to determine that the two questions are the same.
110111

111-
1. Execute the Curl command and receive the JSON response including the score and answer.
112+
1. Run the Curl command and receive the JSON response, including the score and answer.
112113

113114
```TXT
114115
% Total % Received % Xferd Average Speed Time Time Time Current
@@ -136,7 +137,7 @@ Do not close this **Publish** page, you will use it to create a bot later in the
136137
137138
1. In the Curl-enabled terminal, replace `How large can my KB be?` with a bot conversation-ending statement from the user, such as `Thank you`.
138139
139-
1. Execute the Curl command and receive the JSON response including the score and answer.
140+
1. Run the Curl command and receive the JSON response, including the score and answer.
140141
141142
```TXT
142143
% Total % Received % Xferd Average Speed Time Time Time Current
@@ -170,15 +171,15 @@ Do not close this **Publish** page, you will use it to create a bot later in the
170171
171172
```
172173
173-
Because the question of `Thank you` exactly matched a Chit-chat question, QnA Maker is completely confident with the score of 100. QnA Maker also returned all the related questions as well as the metadata property containing the Chit-chat metadata tag information.
174+
Because the question of `Thank you` exactly matched a Chit-chat question, QnA Maker is completely confident with the score of 100. QnA Maker also returned all the related questions, as well as the metadata property containing the Chit-chat metadata tag information.
174175
175176
## Use Curl to query for the default answer
176177
177-
Any question that QnA Maker is not confident in an answer receives the default answer. This answer is configured in the Azure portal.
178+
Any question that QnA Maker is not confident about receives the default answer. This answer is configured in the Azure portal.
178179
179180
1. In the Curl-enabled terminal, replace `Thank you` with `x`.
180181
181-
1. Execute the Curl command and receive the JSON response including the score and answer.
182+
1. Execute the Curl command and receive the JSON response, including the score and answer.
182183
183184
```TXT
184185
% Total % Received % Xferd Average Speed Time Time Time Current
@@ -196,7 +197,7 @@ Any question that QnA Maker is not confident in an answer receives the default a
196197
}
197198
```
198199
199-
QnA Maker returned a score of `0`, which means no confidence but it also returned the default answer.
200+
QnA Maker returned a score of `0`, which means no confidence. It also returned the default answer.
200201
201202
## Create a knowledge base bot
202203
@@ -206,11 +207,11 @@ For more information, see [Create a chat bot with this knowledge base](create-qn
206207
207208
When you are done with the knowledge base bot, remove the resource group, `my-tutorial-rg`, to remove all the Azure resources created in the bot process.
208209
209-
When you are done with the knowledge base, in the QnA Maker portal, select **My knowledge bases**, then select the knowledge base, **My Tutorial kb**, then select the delete icon at the far right in that row.
210+
When you are done with the knowledge base, in the QnA Maker portal, select **My knowledge bases**. Then select the knowledge base, **My Tutorial kb**, and select the delete icon at the far right in that row.
210211
211212
## Next steps
212213
213-
For more information, see [Data sources supported](../Concepts/data-sources-supported.md) for more information about support file formats.
214+
See [Data sources supported](../Concepts/data-sources-supported.md) for more information about support file formats.
214215
215216
Learn more about Chit-chat [personalities](../Concepts/best-practices.md#chit-chat).
216217

0 commit comments

Comments
 (0)