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/azure-monitor/log-query/cross-workspace-query.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,19 +11,19 @@ ms.service: log-analytics
11
11
ms.workload: na
12
12
ms.tgt_pltfrm: na
13
13
ms.topic: conceptual
14
-
ms.date: 11/15/2018
14
+
ms.date: 06/05/2019
15
15
ms.author: magoedte
16
16
---
17
17
18
18
# Perform cross-resource log queries in Azure Monitor
19
19
20
-
Previously with Azure Monitor, you could only analyze data from within the current workspace, and it limited your ability to query across multiple workspaces defined in your subscription. Additionally, you could only search telemetry items collected from your web-based application with Application Insights directly in Application Insights or from Visual Studio. This also made it a challenge to natively analyze operational and application data together.
20
+
Previously with Azure Monitor, you could only analyze data from within the current workspace, and it limited your ability to query across multiple workspaces defined in your subscription. Additionally, you could only search telemetry items collected from your web-based application with Application Insights directly in Application Insights or from Visual Studio. This also made it a challenge to natively analyze operational and application data together.
21
21
22
-
Now you can query not only across multiple Log Analytics workspaces, but also data from a specific Application Insights app in the same resource group, another resource group, or another subscription. This provides you with a system-wide view of your data. You can only perform these types of queries in [Log Analytics](portals.md).
22
+
Now you can query not only across multiple Log Analytics workspaces, but also data from a specific Application Insights app in the same resource group, another resource group, or another subscription. This provides you with a system-wide view of your data. You can only perform these types of queries in [Log Analytics](portals.md).
23
23
24
24
## Cross-resource query limits
25
25
26
-
* The number of Application Insights resources that you can include in a single query is limited to 100.
26
+
* The number of Application Insights resources and Log Analytics workspaces that you can include in a single query is limited to 100.
27
27
* Cross-resource query is not supported in View Designer. You can Author a query in Log Analytics and pin it to Azure dashboard and [visualize a log search](../../azure-monitor/learn/tutorial-logs-dashboards.md#visualize-a-log-search).
28
28
* Cross-resource query in log alerts is supported in the new [scheduledQueryRules API](https://docs.microsoft.com/rest/api/monitor/scheduledqueryrules). By default, Azure Monitor uses the [legacy Log Analytics Alert API](../platform/api-alerts.md) for creating new log alert rules from Azure portal, unless you switch from [legacy Log Alerts API](../platform/alerts-log-api-switch.md#process-of-switching-from-legacy-log-alerts-api). After the switch, the new API becomes the default for new alert rules in Azure portal and it lets you create cross-resource query log alerts rules. You can create cross-resource query log alert rules without making the switch by using the [ARM template for scheduledQueryRules API](../platform/alerts-log.md#log-alert-with-cross-resource-query-using-azure-resource-template) – but this alert rule is manageable though [scheduledQueryRules API](https://docs.microsoft.com/rest/api/monitor/scheduledqueryrules) and not from Azure portal.
Copy file name to clipboardExpand all lines: articles/cognitive-services/QnAMaker/Concepts/best-practices.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ QnA Maker allows users to [collaborate](../How-to/collaborate-knowledge-base.md)
108
108
109
109
## Active learning
110
110
111
-
[Active learning](../How-to/improve-knowledge-base.md) does the best job of suggesting alternative questions when it has a wide range of quality and quantity of user-based queries. It is important to allow client-applications' user queries to participate in the active learning feedback loop without censorship. Once questions are suggested in the QnA Maker portal, you can **[filter by suggestions](../How-To/improve-knowledge-base.md#add-active-learning-suggestion-to-knowledge-base)** then review and accept or reject those suggestions.
111
+
[Active learning](../How-to/improve-knowledge-base.md) does the best job of suggesting alternative questions when it has a wide range of quality and quantity of user-based queries. It is important to allow client-applications' user queries to participate in the active learning feedback loop without censorship. Once questions are suggested in the QnA Maker portal, you can **[filter by suggestions](../How-To/improve-knowledge-base.md)** then review and accept or reject those suggestions.
Copy file name to clipboardExpand all lines: articles/cognitive-services/QnAMaker/How-To/metadata-generateanswer-usage.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Metadata with GenerateAnswer API - QnA Maker
3
3
titleSuffix: Azure Cognitive Services
4
-
description: QnA Maker lets you add metadata, in the form of key/value pairs, to your question/answer sets. This information can be used to filter results to user queries and to store additional information that can be used in follow-up conversations.
4
+
description: QnA Maker lets you add metadata, in the form of key/value pairs, to your question/answer sets. You can filter results to user queries, and store additional information that can be used in follow-up conversations.
5
5
services: cognitive-services
6
6
author: tulasim88
7
7
manager: nitinme
@@ -12,41 +12,41 @@ ms.date: 05/30/2019
12
12
ms.author: tulasim
13
13
---
14
14
15
-
# Get a knowledge answer with the GenerateAnswer API and metadata
15
+
# Get an answer with the GenerateAnswer API and metadata
16
16
17
-
To get the predicted answer to a user's question, use the GenerateAnswer API. When you publish a knowledge base, this information to use this API is shown on the publish page. You can also configure the API to filter answers based on metadata tags and test the knowledge base from the endpoint with the test query string parameter.
17
+
To get the predicted answer to a user's question, use the GenerateAnswer API. When you publish a knowledge base, you can see information about how to use this API on the **Publish** page. You can also configure the API to filter answers based on metadata tags, and test the knowledge base from the endpoint with the test query string parameter.
18
18
19
-
QnA Maker lets you add metadata, in the form of key and value pairs, to your question/answer sets. This information can be used to filter results to user queries and to store additional information that can be used in follow-up conversations. For more information, see [Knowledge base](../Concepts/knowledge-base.md).
19
+
QnA Maker lets you add metadata, in the form of key and value pairs, to your sets of questions and answers. You can then use this information to filter results to user queries, and to store additional information that can be used in follow-up conversations. For more information, see [Knowledge base](../Concepts/knowledge-base.md).
20
20
21
21
<aname="qna-entity"></a>
22
22
23
-
## Storing questions and answers with a QnA Entity
23
+
## Store questions and answers with a QnA entity
24
24
25
-
First it's important to understand how QnA Maker stores the question/answer data. The following illustration shows a QnA entity:
25
+
It's important to understand how QnA Maker stores the question and answer data. The following illustration shows a QnA entity:

28
28
29
-
Each QnA entity has a unique and persistent ID. The ID can be used to make updates to a particular QnA entity.
29
+
Each QnA entity has a unique and persistent ID. You can use the ID to make updates to a particular QnA entity.
30
30
31
31
<aname="generateanswer-api"></a>
32
32
33
33
## Get answer predictions with the GenerateAnswer API
34
34
35
-
You use the GenerateAnswer API in your Bot or application to query your knowledge base with a user question to get the best match from the question/answer sets.
35
+
You use the GenerateAnswer API in your bot or application to query your knowledge base with a user question, to get the best match from the question and answer sets.
36
36
37
37
<aname="generateanswer-endpoint"></a>
38
38
39
39
## Publish to get GenerateAnswer endpoint
40
40
41
-
Once you publish your knowledge base, either from the [QnA Maker portal](https://www.qnamaker.ai), or using the [API](https://go.microsoft.com/fwlink/?linkid=2092179), you can get the details of your GenerateAnswer endpoint.
41
+
After you publish your knowledge base, either from the [QnA Maker portal](https://www.qnamaker.ai), or by using the [API](https://go.microsoft.com/fwlink/?linkid=2092179), you can get the details of your GenerateAnswer endpoint.
42
42
43
43
To get your endpoint details:
44
44
1. Sign in to [https://www.qnamaker.ai](https://www.qnamaker.ai).
45
-
1. In **My knowledge bases**, click on**View Code** for your knowledge base.
|URL route parameter|Knowledge base ID|string|The GUID for your knowledge base.|
68
-
|URL route parameter|QnAMaker endpoint host|string|The hostname of the endpoint deployed in your Azure subscription. This is available on the Settings page after you publish the knowledge base. |
68
+
|URL route parameter|QnAMaker endpoint host|string|The hostname of the endpoint deployed in your Azure subscription. This is available on the **Settings** page after you publish the knowledge base. |
69
69
|Header|Content-Type|string|The media type of the body sent to the API. Default value is: ``|
|Post Body|JSON object|JSON|The question with settings|
71
+
|Post Body|JSON object|JSON|The question with settings.|
72
72
73
73
74
74
The JSON body has several settings:
@@ -79,7 +79,7 @@ The JSON body has several settings:
79
79
|`top`|optional|integer|The number of ranked results to include in the output. The default value is 1.|
80
80
|`userId`|optional|string|A unique ID to identify the user. This ID will be recorded in the chat logs.|
81
81
|`scoreThreshold`|optional|integer|Only answers with confidence score above this threshold will be returned. The default value is 0.|
82
-
|`isTest`|optional|boolean|If set to true, returns results from `testkb` Search index instead of published index.|
82
+
|`isTest`|optional|Boolean|If set to true, returns results from `testkb` Search index instead of published index.|
83
83
|`strictFilters`|optional|string|If specified, tells QnA Maker to return only answers that have the specified metadata. Use `none` to indicate response should have no metadata filters. |
84
84
|`RankerType`|optional|string|If specified as `QuestionOnly`, tells QnA Maker to search questions only. If not specified, QnA Maker searches questions and answers.
85
85
@@ -142,19 +142,19 @@ A successful response returns a status of 200 and a JSON response.
142
142
143
143
<aname="metadata-example"></a>
144
144
145
-
## Using metadata allows you to filter answers by custom metadata tags
145
+
## Use metadata to filter answers by custom metadata tags
146
146
147
-
Adding metadata allows you to filter the answers by these metadata tags. Add the metadata column from the **View Options** menu. Add metadata to your knowledge base by clicking on the metadata **+** icon to add a metadata pair. This pair consists of one key and one value.
147
+
Adding metadata allows you to filter the answers by these metadata tags. Add the metadata column from the **View Options** menu. Add metadata to your knowledge base by selecting the metadata **+** icon to add a metadata pair. This pair consists of one key and one value.
## Filter results with strictFilters for metadata tags
154
154
155
-
Consider the user question "When does this hotel close?" where the intent is implied for the restaurant "Paradise."
155
+
Consider the user question "When does this hotel close?", where the intent is implied for the restaurant "Paradise."
156
156
157
-
Since results are required only for the restaurant "Paradise", you can set a filter in the GenerateAnswer call on the metadata "Restaurant Name", as follows.
157
+
Because results are required only for the restaurant "Paradise", you can set a filter in the GenerateAnswer call on the metadata "Restaurant Name". The following example shows this:
158
158
159
159
```json
160
160
{
@@ -172,7 +172,7 @@ Since results are required only for the restaurant "Paradise", you can set a fil
172
172
173
173
## Use question and answer results to keep conversation context
174
174
175
-
The response to the GenerateAnswer contains the corresponding metadata information of the matched question/answer set. This information can be used in your client application to store the context of the previous conversation for use in later conversations.
175
+
The response to the GenerateAnswer contains the corresponding metadata information of the matched question and answer set. You can use this information in your client application to store the context of the previous conversation for use in later conversations.
176
176
177
177
```json
178
178
{
@@ -217,7 +217,7 @@ You can search through the published kb, using `isTest=false`, or in the test kb
217
217
218
218
## Next steps
219
219
220
-
The publish page also provides information to generate an answer with [Postman](../Quickstarts/get-answer-from-kb-using-postman.md) and [cURL](../Quickstarts/get-answer-from-kb-using-curl.md).
220
+
The **Publish** page also provides information to generate an answer with [Postman](../Quickstarts/get-answer-from-kb-using-postman.md) and [cURL](../Quickstarts/get-answer-from-kb-using-curl.md).
221
221
222
222
> [!div class="nextstepaction"]
223
223
> [Create a knowledge base](./create-knowledge-base.md)
0 commit comments