Skip to content

Commit 7dc33aa

Browse files
committed
edit pass: concepts-knowledge-base
1 parent 0ed439f commit 7dc33aa

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

articles/cognitive-services/QnAMaker/Concepts/knowledge-base.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Knowledge base - QnA Maker
33
titleSuffix: Azure Cognitive Services
4-
description: A QnA Maker knowledge base consists of a set of question/answer (QnA) pairs and optional metadata associated with each QnA pair.
4+
description: A QnA Maker knowledge base consists of a set of question-and-answer (QnA) pairs and optional metadata associated with each QnA pair.
55
services: cognitive-services
66
author: diberry
77
manager: nitinme
@@ -13,25 +13,25 @@ ms.author: diberry
1313
ms.custom: seodec18
1414
---
1515

16-
# What is a QnA Maker Knowledge base?
16+
# What is a QnA Maker knowledge base?
1717

18-
A QnA Maker knowledge base consists of a set of question/answer (QnA) pairs and optional metadata associated with each QnA pair.
18+
A QnA Maker knowledge base consists of a set of question-and-answer (QnA) pairs and optional metadata associated with each QnA pair.
1919

2020
## Key knowledge base concepts
2121

22-
* **Questions** - A question contains text that best represents a user query.
23-
* **Answers** - An answer is the response that is returned when a user query is matched with the associated question.
24-
* **Metadata** - Metadata are tags associated with a QnA pair and are represented as key-value pairs. Metadata tags are used to filter QnA pairs and limit the set over which query matching is performed.
22+
* **Questions**: A question contains text that best represents a user query.
23+
* **Answers**: An answer is the response that's returned when a user query is matched with the associated question.
24+
* **Metadata**: Metadata are tags associated with a QnA pair and are represented as key-value pairs. Metadata tags are used to filter QnA pairs and limit the set over which query matching is performed.
2525

26-
A single QnA, represented by a numeric QnA ID, has multiple variants of a question (alternate questions) that all map to a single answer. Additionally, each such pair can have multiple metadata fields associated with it: one key, and one value.
26+
A single QnA, represented by a numeric QnA ID, has multiple variants of a question (alternate questions) that all map to a single answer. Additionally, each such pair can have multiple metadata fields associated with it: one key and one value.
2727

2828
![QnA Maker knowledge bases](../media/qnamaker-concepts-knowledgebase/knowledgebase.png)
2929

3030
## Knowledge base content format
3131

32-
When you ingest rich content into a knowledge base, QnA Maker attempts to convert the content to markdown. Read [this](https://aka.ms/qnamaker-docs-markdown-support) blog to understand the markdown formats understandable by most chat clients.
32+
When you ingest rich content into a knowledge base, QnA Maker attempts to convert the content to markdown. Read [this blog](https://aka.ms/qnamaker-docs-markdown-support) to learn about the markdown formats that are understandable by most chat clients.
3333

34-
Metadata fields consist of key-value pairs separated by a colon **(Product:Shredder)**. Both key and value must be text-only. The metadata key must not contain any spaces. Metadata supports only one value per key.
34+
Metadata fields consist of key-value pairs separated by a colon, such as Product:Shredder. Both the key and the value must be text-only. The metadata key must not contain any spaces. Metadata supports only one value per key.
3535

3636
## How QnA Maker processes a user query to select the best answer
3737

@@ -41,27 +41,27 @@ The trained and [published](/azure/cognitive-services/qnamaker/quickstarts/creat
4141

4242
### Ranker process
4343

44-
The process is explained in the following table:
44+
The process is explained in the following table.
4545

4646
|Step|Purpose|
4747
|--|--|
4848
|1|The client application sends the user query to the [GenerateAnswer API](/azure/cognitive-services/qnamaker/how-to/metadata-generateanswer-usage).|
49-
|2|Qna Maker preprocessing the user query with language detection, spellers, and word breakers.|
50-
|3|This preprocessing is taken to alter user query for best search results.|
51-
|4|This altered query is sent to Azure Search Index, receiving the `top` number of results. If the correct answer isn't in these results, increase the value of `top` slightly. Generally a value of 10 for `top` works in 90% of queries.|
52-
|5|QnA Maker applies advanced featurization to determine the correctness of the fetched Azure Search results for user query. |
49+
|2|QnA Maker preprocesses the user query with language detection, spellers, and word breakers.|
50+
|3|This preprocessing is taken to alter the user query for the best search results.|
51+
|4|This altered query is sent to Azure Search Index, which receives the `top` number of results. If the correct answer isn't in these results, increase the value of `top` slightly. Generally, a value of 10 for `top` works in 90% of queries.|
52+
|5|QnA Maker applies advanced featurization to determine the correctness of the fetched Azure Search results for the user query. |
5353
|6|The trained ranker model uses the feature score, from step 5, to rank the Azure Search results.|
5454
|7|The new results are returned to the client application in ranked order.|
5555
|||
5656

57-
Features used include but are not limited to word-level semantics, term-level importance in a corpus, and deep learned semantic models to determine similarity and relevance between two text strings.
57+
Features used include but aren't limited to word-level semantics, term-level importance in a corpus, and deep learned semantic models to determine similarity and relevance between two text strings.
5858

5959
## HTTP request and response with endpoint
60-
When you publish your knowledge base, the service creates a REST-based HTTP **endpoint** that can be integrated into your application, commonly a chat bot.
60+
When you publish your knowledge base, the service creates a REST-based HTTP endpoint that can be integrated into your application, commonly a chat bot.
6161

6262
### The user query request to generate an answer
6363

64-
A **user query** is the question that the end user asks of the knowledge base, such as, `How do I add a collaborator to my app?`. The query is often in a natural language format or a few keywords that represent the question, such as, `help with collaborators`. The query is sent to your knowledge from an HTTP **request** in your client application.
64+
A user query is the question that the end user asks of the knowledge base, such as `How do I add a collaborator to my app?`. The query is often in a natural language format or a few keywords that represent the question, such as `help with collaborators`. The query is sent to your knowledge base from an HTTP request in your client application.
6565

6666
```json
6767
{
@@ -82,9 +82,9 @@ You control the response by setting properties such as [scoreThreshold](./confid
8282

8383
Use [conversation context](../how-to/metadata-generateanswer-usage.md#use-question-and-answer-results-to-keep-conversation-context) with [multi-turn functionality](../how-to/multiturn-conversation.md) to keep the conversation going to refine the questions and answers, to find the correct and final answer.
8484

85-
### The response from a call to generate answer
85+
### The response from a call to generate an answer
8686

87-
The HTTP **response** is the answer retrieved from the knowledge base, based on the best match for a given user query. The response includes the answer and the prediction score. If you asked for more than one top answer, with the `top` property, you get more than one top answer, each with a score.
87+
The HTTP response is the answer retrieved from the knowledge base, based on the best match for a given user query. The response includes the answer and the prediction score. If you asked for more than one top answer with the `top` property, you get more than one top answer, each with a score.
8888

8989
```json
9090
{
@@ -113,13 +113,13 @@ The HTTP **response** is the answer retrieved from the knowledge base, based on
113113
```
114114

115115
### Test and production knowledge base
116-
A Knowledge base is the repository of questions and answers created, maintained, and used through QnA Maker. Each QnA Maker tier can be used for multiple Knowledge bases.
116+
A knowledge base is the repository of questions and answers created, maintained, and used through QnA Maker. Each QnA Maker tier can be used for multiple knowledge bases.
117117

118-
A knowledge base has two states - Test and published.
118+
A knowledge base has two states: *test* and *published*.
119119

120-
The **test knowledge base** is the version that is being edited, saved, and tested for accuracy and completeness of responses. Changes made to the test knowledge base do not affect the end user of your application/chat bot. The test knowledge base is known as `test` in the HTTP request.
120+
The *test knowledge base* is the version that's being edited, saved, and tested for accuracy and completeness of responses. Changes made to the test knowledge base don't affect the end user of your application or chat bot. The test knowledge base is known as `test` in the HTTP request.
121121

122-
The **published knowledge base** is the version that is used in your chat bot/application. The action of publishing a knowledge base puts the content of the Test knowledge base in the Published version of the knowledge base. Since the published knowledge base is the version that the application uses through the endpoint, care should be taken to ensure that the content is correct and well-tested. The published knowledge base is known as `prod` in the HTTP request.
122+
The *published knowledge base* is the version that's used in your chat bot or application. The action of publishing a knowledge base puts the content of the test knowledge base in the published version of the knowledge base. Because the published knowledge base is the version that the application uses through the endpoint, make sure that the content is correct and well tested. The published knowledge base is known as `prod` in the HTTP request.
123123

124124
## Next steps
125125

@@ -130,10 +130,10 @@ The **published knowledge base** is the version that is used in your chat bot/ap
130130

131131
[QnA Maker overview](../Overview/overview.md)
132132

133-
Create and edit knowledge base with:
133+
Create and edit a knowledge base with:
134134
* [REST API](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamaker/knowledgebase)
135-
* [.Net SDK](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cognitiveservices.knowledge.qnamaker.knowledgebase?view=azure-dotnet)
135+
* [.NET SDK](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cognitiveservices.knowledge.qnamaker.knowledgebase?view=azure-dotnet)
136136

137-
Generate answer with:
137+
Generate an answer with:
138138
* [REST API](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/qnamakerruntime/runtime/generateanswer)
139-
* [.Net SDK](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cognitiveservices.knowledge.qnamaker.runtime?view=azure-dotnet)
139+
* [.NET SDK](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cognitiveservices.knowledge.qnamaker.runtime?view=azure-dotnet)

0 commit comments

Comments
 (0)