|
2 | 2 | title: Edit a knowledge base - QnA Maker
|
3 | 3 | description: QnA Maker allows you to manage the content of your knowledge base by providing an easy-to-use editing experience.
|
4 | 4 | ms.topic: conceptual
|
5 |
| -ms.date: 04/06/2020 |
| 5 | +ms.date: 04/15/2020 |
6 | 6 | ---
|
7 |
| - |
8 | 7 | # Edit QnA pairs in your knowledge base
|
9 | 8 |
|
10 | 9 | QnA Maker allows you to manage the content of your knowledge base by providing an easy-to-use editing experience.
|
11 | 10 |
|
12 | 11 | QnA pairs are added from a datasource, such as a file or URL, or added as an editorial source. An editorial source indicates the QnA pair was added in the QnA portal manually. All QnA pairs are available for editing.
|
13 | 12 |
|
| 13 | +<a name="add-an-editorial-qna-set"></a> |
| 14 | + |
14 | 15 | ## Add an editorial QnA pair
|
| 16 | + |
15 | 17 | 1. Sign in to the [QnA portal](https://www.qnamaker.ai/), then select the knowledge base to add the QnA pair to.
|
16 | 18 | 1. On the **EDIT** page of the knowledge base, select **Add QnA pair** to add a new QnA pair.
|
17 | 19 |
|
18 |
| -1. In the new QnA pair row, add the required **Question** and **Answer** fields. The other fields are optional. All fields can be changed at any time. |
| 20 | + > [!div class="mx-imgBorder"] |
| 21 | + >  |
19 | 22 |
|
20 |
| -1. Optionally, add **alternate phrasing**. Alternate phrasing is any form of the question that is significantly different from the original question but should provide the same answer. |
| 23 | +1. In the new QnA pair row, add the required question and answer fields. The other fields are optional. All fields can be changed at any time. |
| 24 | + |
| 25 | +1. Optionally, add **[alternate phrasing](../Quickstarts/add-question-metadata-portal.md#add-additional-alternatively-phrased-questions)**. Alternate phrasing is any form of the question that is significantly different from the original question but should provide the same answer. |
21 | 26 |
|
22 | 27 | When your knowledge base is published, and you have [active learning](use-active-learning.md) turned on, QnA Maker collects alternate phrasing choices for you to accept. These choices are selected in order to increase the prediction accuracy.
|
23 | 28 |
|
24 |
| -1. Optionally, add **metadata**. To view metadata, select **View options** in the context menu. Metadata provides filters to the answers that the client application, such as a chat bot, provides. |
| 29 | +1. Optionally, add **[metadata](../Quickstarts/add-question-metadata-portal.md#add-metadata-to-filter-the-answers)**. To view metadata, select **View options** in the context menu. Metadata provides filters to the answers that the client application, such as a chat bot, provides. |
25 | 30 |
|
26 |
| -1. Optionally, add **follow-up prompts**. Follow-up prompts provide additional conversation paths to the client application to present to the user. |
| 31 | +1. Optionally, add **[follow-up prompts](multiturn-conversation.md)**. Follow-up prompts provide additional conversation paths to the client application to present to the user. |
27 | 32 |
|
28 | 33 | 1. Select **Save and train** to see predictions including the new QnA pair.
|
29 | 34 |
|
| 35 | +## Rich-text editing for answer |
| 36 | + |
| 37 | +Rich-text editing of your answer text gives you markdown styling from a simple toolbar. |
| 38 | + |
| 39 | +1. Select the text area for an answer, the rich-text editor toolbar displays on the QnA pair row. |
| 40 | + |
| 41 | + > [!div class="mx-imgBorder"] |
| 42 | + >  |
| 43 | +
|
| 44 | + Any text already in the answer displays correctly as your user will see it from a bot. |
| 45 | + |
| 46 | +1. Edit the text. Select formatting features from the rich-text editing toolbar or use the toggle feature to switch to markdown syntax. |
| 47 | + |
| 48 | + > [!div class="mx-imgBorder"] |
| 49 | + >  |
| 50 | +
|
| 51 | + |Rich-text editor features|Keyboard shortcut| |
| 52 | + |--|--| |
| 53 | + |Toggle between rich-text editor and markdown. `</>`|CTRL+M| |
| 54 | + |Bold. **B**|CTR+LB| |
| 55 | + |Italics, indicated with an italicized **_I_**|CTRL+I| |
| 56 | + |Unordered list|| |
| 57 | + |Ordered list|| |
| 58 | + |Paragraph style|| |
| 59 | + |Image - add an image available from a public URL.|CTRL+G| |
| 60 | + |Add link to publicly available URL.|CTRL+K| |
| 61 | + |Emoticon - add from a selection of emoticons.|CTRL+E| |
| 62 | + |Advanced menu - undo|CTRL+Z| |
| 63 | + |Advanced menu - redo|CTRL+Y| |
| 64 | + |
| 65 | +1. Add an image to the answer using the Image icon in the rich-text toolbar. The in-place editor needs the publicly accessible image URL and the alternate text for the image. |
| 66 | + |
| 67 | + |
| 68 | + > [!div class="mx-imgBorder"] |
| 69 | + >  |
| 70 | +
|
| 71 | +1. Add a link to a URL by either selecting the text in the answer, then selecting the Link icon in the toolbar or by selecting the Link icon in the toolbar then entering new text and the URL. |
| 72 | + |
| 73 | + > [!div class="mx-imgBorder"] |
| 74 | + >  |
| 75 | +
|
30 | 76 | ## Edit a QnA pair
|
31 | 77 |
|
32 | 78 | Any field in any QnA pair can be edited, regardless of the original data source. Some fields may not be visible due to your current **View Options** settings, found in the context tool bar.
|
@@ -66,9 +112,15 @@ Periodically select **Save and train** after making edits to avoid losing change
|
66 | 112 |
|
67 | 113 | 
|
68 | 114 |
|
| 115 | +## When to use rich-text editing versus markdown |
| 116 | + |
| 117 | +[Rich-text editing](#add-an-editorial-qna-set) of answers allows you, as the author, to use a formatting toolbar to quickly select and format text. |
| 118 | + |
| 119 | +[Markdown](../reference-markdown-format.md) is a better tool when you need to autogenerate content to create knowledge bases to be imported as part of a CI/CD pipeline or for [batch testing](../Quickstarts/batch-testing.md). |
| 120 | + |
69 | 121 | ## Next steps
|
70 | 122 |
|
71 | 123 | > [!div class="nextstepaction"]
|
72 | 124 | > [Collaborate on a knowledge base](./collaborate-knowledge-base.md)
|
73 | 125 |
|
74 |
| -* [Manage Azure resources used by QnA Maker](set-up-qnamaker-service-azure.md) |
| 126 | +* [Manage Azure resources used by QnA Maker](set-up-qnamaker-service-azure.md) |
0 commit comments