You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/QnAMaker/Quickstarts/create-publish-knowledge-base.md
+39-26Lines changed: 39 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: "Quickstart: Create, train, and publish knowledge base - QnA Maker"
3
-
titleSuffix: Azure Cognitive Services
3
+
titleSuffix: Azure Cognitive Services
4
4
description: This quickstart shows how to create a QnA Maker knowledge base (KB) from your own content, such as FAQs or product manuals. The QnA Maker knowledge base in this example is created from a simple FAQ webpage to answer questions on BitLocker key recovery.
5
5
author: diberry
6
6
manager: nitinme
7
7
services: cognitive-services
8
8
ms.service: cognitive-services
9
9
ms.subservice: qna-maker
10
10
ms.topic: quickstart
11
-
ms.date: 10/14/2019
11
+
ms.date: 12/17/2019
12
12
ms.author: diberry
13
13
---
14
14
@@ -31,21 +31,22 @@ Include a chit-chat personality to make your knowledge more engaging with your u
31
31
32
32
1. On the QnA Maker portal, select **Create a knowledge base**.
33
33
34
-
1. On the **Create** page, select **Create a QnA service**. You are directed to the [Azure portal](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesQnAMaker) to set up a QnA Maker service in your subscription.
34
+
1. On the **Create** page, select **Create a QnA service**. You are directed to the [Azure portal](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesQnAMaker) to set up a QnA Maker service in your subscription.
35
35
36
-
1. In the QnA Maker portal, select your QnA Maker service from the drop-down lists. If you created a new QnA Maker service, be sure to refresh the page.
36
+
1. In the Azure portal, create the resource. Remember your Azure Active Directory ID, Subscription, QnA resource name you selected when creating the resource.
37
+
1. Return to the QnA Maker portal, refresh the web page in the portal, to continue creating your knowledge base.
37
38
38
39

@@ -55,8 +56,8 @@ Include a chit-chat personality to make your knowledge more engaging with your u
55
56
56
57
## Add a new question and answer set
57
58
58
-
1. In the QnA Maker portal, on the **Edit** page, select **Add QnA pair**.
59
-
1. Add the following question:
59
+
1. In the QnA Maker portal, on the **Edit** page, select **+ Add QnA pair** from the context toolbar.
60
+
1. Add the following question:
60
61
61
62
`How many Azure services are used by a knowledge base?`
62
63
@@ -66,20 +67,20 @@ Include a chit-chat personality to make your knowledge more engaging with your u
66
67
67
68

68
69
69
-
The markdown symbol, `*`, is used for bullet points. The `\n` is used for a new line.
70
+
The markdown symbol, `*`, is used for bullet points. The `\n` is used for a new line.
70
71
71
-
The **Edit** page shows the markdown. When you use the **Test** panel later, you will see the markdown displayed properly.
72
+
The **Edit** page shows the markdown. When you use the **Test** panel later, you will see the markdown displayed properly.
72
73
73
74
## Save and train
74
75
75
76
In the upper right, select **Save and train** to save your edits and train the QnA Maker model. Edits aren't kept unless they're saved.
76
77
77
78
## Test the knowledge base
78
79
79
-
1. In the QnA Maker portal, in the upper right, select **Test** to test that the changes you made took effect.
80
-
1. Enter an example user query in the textbox.
80
+
1. In the QnA Maker portal, in the upper right, select **Test** to test that the changes you made took effect.
81
+
1. Enter an example user query in the textbox.
81
82
82
-
`How many Azure services are used by a knowledge base?`
83
+
`How many Azure services are used by a knowledge base?`
83
84
84
85

85
86
@@ -101,45 +102,57 @@ When you publish a knowledge base, the contents of your knowledge base moves fro
101
102
102
103
## Create a bot
103
104
104
-
After publishing, you can create a bot from the **Publish** page:
105
+
After publishing, you can create a bot from the **Publish** page:
105
106
106
-
* You can create several bots quickly, all pointing to the same knowledge base for different regions or pricing plans for the individual bots.
107
-
* If you want only one bot for the knowledge base, use the **View all your bots on the Azure portal** link to view a list of your current bots.
107
+
* You can create several bots quickly, all pointing to the same knowledge base for different regions or pricing plans for the individual bots.
108
+
* If you want only one bot for the knowledge base, use the **View all your bots on the Azure portal** link to view a list of your current bots.
108
109
109
110
When you make changes to the knowledge base and republish, you don't need to take further action with the bot. It's already configured to work with the knowledge base, and works with all future changes to the knowledge base. Every time you publish a knowledge base, all the bots connected to it are automatically updated.
110
111
111
112
1. In the QnA Maker portal, on the **Publish** page, select **Create bot**. This button appears only after you've published the knowledge base.
112
113
113
114

114
115
115
-
1. A new browser tab opens for the Azure portal, with the Azure Bot Service's creation page. Configure the Azure bot service.
116
-
117
-
* Don't change the following settings in the Azure portal when creating the bot. They are pre-populated for your existing knowledge base:
118
-
* QnA Auth Key
119
-
* App service plan and location
120
-
* The bot and QnA Maker can share the web app service plan, but can't share the web app. This means the **app name** for the bot must be different from the app name for the QnA Maker service.
116
+
1. A new browser tab opens for the Azure portal, with the Azure Bot Service's creation page. Configure the Azure bot service. The bot and QnA Maker can share the web app service plan, but can't share the web app. This means the **app name** for the bot must be different from the app name for the QnA Maker service.
117
+
118
+
***Do**
119
+
* Change bot handle - if it is not unique.
120
+
* Select SDK Language. Once the bot is created, you can download the code to your local development environment and continue the development process.
121
+
***Don't**
122
+
* change the following settings in the Azure portal when creating the bot. They are pre-populated for your existing knowledge base:
123
+
* QnA Auth Key
124
+
* App service plan and location
121
125
122
-
1. After the bot is created, open the **Bot service** resource.
126
+
127
+
1. After the bot is created, open the **Bot service** resource.
123
128
1. Under **Bot Management**, select **Test in Web Chat**.
124
129
1. At the chat prompt of **Type your message**, enter:
125
130
126
131
`Azure services?`
127
132
128
-
The chat bot responds with an answer from your knowledge base.
133
+
The chat bot responds with an answer from your knowledge base.
129
134
130
135

131
136
137
+
## What did you accomplish?
138
+
139
+
You created a new knowledge base, added a public URL to the knowledge base, added your own QnA set, trained, tested, and published the knowledge base.
140
+
141
+
After publishing the knowledge base, you created a bot, and tested the bot.
142
+
143
+
This was all accomplished in a few minutes without having to write any code and clean the content.
144
+
132
145
## Clean up resources
133
146
134
-
Clean up the QnA Maker and Bot framework resources in the Azure portal.
147
+
Clean up the QnA Maker and Bot framework resources in the Azure portal.
135
148
136
149
## Next steps
137
150
138
151
For more information:
139
152
140
153
*[Markdown format in answers](../concepts/data-sources-supported.md)
141
154
*[Testing your markdown](../concepts/data-sources-supported.md#testing-your-markdown)
0 commit comments