Skip to content

Commit fd34ac6

Browse files
authored
Merge pull request #272423 from MicrosoftDocs/main
4/17 11:00 AM IST Publish
2 parents f00f572 + 74b08ca commit fd34ac6

File tree

79 files changed

+1819
-476
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1819
-476
lines changed

articles/ai-services/document-intelligence/concept-accuracy-confidence.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: azure-ai-document-intelligence
88
ms.custom:
99
- ignite-2023
1010
ms.topic: conceptual
11-
ms.date: 02/29/2024
11+
ms.date: 04/16/2023
1212
ms.author: lajanuar
1313
---
1414

@@ -53,10 +53,11 @@ Field confidence indicates an estimated probability between 0 and 1 that the pre
5353
## Interpret accuracy and confidence scores for custom models
5454

5555
When interpreting the confidence score from a custom model, you should consider all the confidence scores returned from the model. Let's start with a list of all the confidence scores.
56-
1. **Document type confidence score**: The document type confidence is an indicator of closely the analyzed document resembleds documents in the training dataset. When the document type confidence is low, this is indicative of template or structural variations in the analyzed document. To improve the document type confidence, label a document with that specific variation and add it to your training dataset. Once the model is re-trained, it should be better equipped to handl that class of variations.
57-
2. **Field level confidence**: Each labled field extracted has an associated confidence score. This score reflects the model's confidence on the position of the value extracted. While evaluating the confidence you should also look at the underlying extraction confidence to generate a comprehensive confidence for the extracted result. Evaluate the OCR results for text extraction or selection marks depending on the field type to generate a composite confidence score for the field.
58-
3. **Word confidence score** Each word extracted within the document has an associated confidence score. The score represents the confidence of the transcription. The pages array contains an array of words, each word has an associated span and confidence. Spans from the custom field extracted values will match the spans of the extracted words.
59-
4. **Selection mark confidence score**: The pages array also contains an array of selection marks, each selection mark has a confidence score representing the confidence of the seletion mark and selection state detection. When a labeled field is a selection mark, the custom field selection confidence combined with the selection mark confidence is an accurate representation of the overall confidence that the field was extracted correctly.
56+
57+
1. **Document type confidence score**: The document type confidence is an indicator of closely the analyzed document resembles documents in the training dataset. When the document type confidence is low, it's indicative of template or structural variations in the analyzed document. To improve the document type confidence, label a document with that specific variation and add it to your training dataset. Once the model is retrained, it should be better equipped to handle that class of variations.
58+
2. **Field level confidence**: Each labeled field extracted has an associated confidence score. This score reflects the model's confidence on the position of the value extracted. While evaluating confidence scores, you should also look at the underlying extraction confidence to generate a comprehensive confidence for the extracted result. Evaluate the `OCR` results for text extraction or selection marks depending on the field type to generate a composite confidence score for the field.
59+
3. **Word confidence score** Each word extracted within the document has an associated confidence score. The score represents the confidence of the transcription. The pages array contains an array of words and each word has an associated span and confidence score. Spans from the custom field extracted values match the spans of the extracted words.
60+
4. **Selection mark confidence score**: The pages array also contains an array of selection marks. Each selection mark has a confidence score representing the confidence of the selection mark and selection state detection. When a labeled field has a selection mark, the custom field selection combined with the selection mark confidence is an accurate representation of overall confidence accuracy.
6061

6162
The following table demonstrates how to interpret both the accuracy and confidence scores to measure your custom model's performance.
6263

@@ -69,7 +70,7 @@ The following table demonstrates how to interpret both the accuracy and confiden
6970

7071
## Table, row, and cell confidence
7172

72-
With the addition of table, row and cell confidence with the ```2024-02-29-preview``` API, here are some common questions that should help with interpreting the table, row and cell scores:
73+
With the addition of table, row and cell confidence with the ```2024-02-29-preview``` API, here are some common questions that should help with interpreting the table, row, and cell scores:
7374

7475
**Q:** Is it possible to see a high confidence score for cells, but a low confidence score for the row?<br>
7576

articles/ai-services/document-intelligence/how-to-guides/includes/v4-0/javascript-sdk.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: laujan
55
manager: nitinme
66
ms.service: azure-ai-document-intelligence
77
ms.topic: include
8-
ms.date: 03/28/2024
8+
ms.date: 04/16/2024
99
ms.author: lajanuar
1010
ms.custom:
1111
- devx-track-csharp
@@ -106,7 +106,8 @@ Open the `index.js` file in Visual Studio Code or your favorite IDE and select o
106106
## Use the Read model
107107

108108
```javascript
109-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
109+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
110+
const { AzureKeyCredential } = require("@azure/core-auth");
110111

111112
//use your `key` and `endpoint` environment variables
112113
const key = process.env['DI_KEY'];
@@ -202,7 +203,8 @@ Visit the Azure samples repository on GitHub and view the [`read` model output](
202203
## Use the Layout model
203204

204205
```javascript
205-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
206+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
207+
const { AzureKeyCredential } = require("@azure/core-auth");
206208

207209
//use your `key` and `endpoint` environment variables
208210
const key = process.env['DI_KEY'];
@@ -272,7 +274,8 @@ Visit the Azure samples repository on GitHub and view the [layout model output](
272274
## Use the General document model
273275

274276
```javascript
275-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
277+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
278+
const { AzureKeyCredential } = require("@azure/core-auth");
276279

277280
//use your `key` and `endpoint` environment variables
278281
const key = process.env['DI_KEY'];
@@ -318,7 +321,8 @@ Visit the Azure samples repository on GitHub and view the [general document mode
318321
## Use the W-2 tax model
319322

320323
```javascript
321-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
324+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
325+
const { AzureKeyCredential } = require("@azure/core-auth");
322326

323327
//use your `key` and `endpoint` environment variables
324328
const key = process.env['DI_KEY'];
@@ -397,7 +401,8 @@ Visit the Azure samples repository on GitHub and view the [W-2 tax model output]
397401
## Use the Invoice model
398402

399403
```javascript
400-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
404+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
405+
const { AzureKeyCredential } = require("@azure/core-auth");
401406

402407
//use your `key` and `endpoint` environment variables
403408
const key = process.env['DI_KEY'];
@@ -459,7 +464,8 @@ Visit the Azure samples repository on GitHub and view the [invoice model output]
459464
## Use the Receipt model
460465
461466
```javascript
462-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
467+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
468+
const { AzureKeyCredential } = require("@azure/core-auth");
463469

464470
//use your `key` and `endpoint` environment variables
465471
const key = process.env['DI_KEY'];
@@ -518,7 +524,8 @@ Visit the Azure samples repository on GitHub and view the [receipt model output]
518524
## Use the ID document model
519525
520526
```javascript
521-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
527+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
528+
const { AzureKeyCredential } = require("@azure/core-auth");
522529

523530
//use your `key` and `endpoint` environment variables
524531
const key = process.env['DI_KEY'];

articles/ai-services/document-intelligence/quickstarts/includes/javascript-sdk.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ In this quickstart, use the following features to analyze and extract data and v
7373
4. Install the `ai-document-intelligence` client library and `azure/identity` npm packages:
7474

7575
```console
76-
npm i @azure-rest/[email protected]
76+
npm i @azure-rest/[email protected] @azure/identity
7777

7878
```
7979

@@ -146,10 +146,11 @@ Extract text, selection marks, text styles, table structures, and bounding regio
146146
:::moniker range="doc-intel-4.0.0"
147147

148148
```javascript
149-
const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
149+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
150+
const { AzureKeyCredential } = require("@azure/core-auth");
150151

151152
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
152-
const key = "<your-key>";
153+
const key = "<your-key";
153154
const endpoint = "<your-endpoint>";
154155

155156
// sample document
@@ -311,7 +312,8 @@ In this example, we analyze an invoice using the **prebuilt-invoice** model.
311312

312313
```javascript
313314

314-
const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
315+
const { DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
316+
const { AzureKeyCredential } = require("@azure/core-auth");
315317

316318
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
317319
const key = "<your-key>";

articles/ai-services/immersive-reader/overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ With Immersive Reader, you can break words into syllables to improve readability
6969

7070
Immersive Reader is a standalone web application. When it's invoked, the Immersive Reader client library displays on top of your existing web application in an `iframe`. When your web application calls the Immersive Reader service, you specify the content to show the reader. The Immersive Reader client library handles the creation and styling of the `iframe` and communication with the Immersive Reader backend service. The Immersive Reader service processes the content for parts of speech, text to speech, translation, and more.
7171

72+
## Data privacy for Immersive reader
73+
74+
Immersive reader doesn't store any customer data.
75+
7276
## Next step
7377

7478
The Immersive Reader client library is available in C#, JavaScript, Java (Android), Kotlin (Android), and Swift (iOS). Get started with:

articles/ai-services/openai/how-to/content-filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Learn how to use content filters (preview) with Azure OpenAI Servic
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 03/29/2024
9+
ms.date: 04/16/2024
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -15,7 +15,7 @@ recommendations: false
1515
# How to configure content filters with Azure OpenAI Service
1616

1717
> [!NOTE]
18-
> All customers have the ability to modify the content filters to be stricter (for example, to filter content at lower severity levels than the default). Approval is required for turning the content filters partially or fully off. Managed customers only may apply for full content filtering control via this form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
18+
> All customers have the ability to modify the content filters and configure the severity thresholds (low, medium, high). Approval is required for turning the content filters partially or fully off. Managed customers only may apply for full content filtering control via this form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
1919
2020
The content filtering system integrated into Azure OpenAI Service runs alongside the core models and uses an ensemble of multi-class classification models to detect four categories of harmful content (violence, hate, sexual, and self-harm) at four severity levels respectively (safe, low, medium, and high), and optional binary classifiers for detecting jailbreak risk, existing text, and code in public repositories. The default content filtering configuration is set to filter at the medium severity threshold for all four content harms categories for both prompts and completions. That means that content that is detected at severity level medium or high is filtered, while content detected at severity level low or safe is not filtered by the content filters. Learn more about content categories, severity levels, and the behavior of the content filtering system [here](../concepts/content-filter.md). Jailbreak risk detection and protected text and code models are optional and off by default. For jailbreak and protected material text and code models, the configurability feature allows all customers to turn the models on and off. The models are by default off and can be turned on per your scenario. Some models are required to be on for certain scenarios to retain coverage under the [Customer Copyright Commitment](/legal/cognitive-services/openai/customer-copyright-commitment?context=%2Fazure%2Fai-services%2Fopenai%2Fcontext%2Fcontext).
2121

articles/ai-services/translator/containers/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ If you need to configure an HTTP proxy for making outbound requests, use these t
7474

7575
| Name | Data type | Description |
7676
|--|--|--|
77-
|HTTPS_PROXY|string|The proxy to use, for example, `https://proxy:8888`<br>`<proxy-url>`|
77+
|HTTPS_PROXY|string|The proxy URL, for example, `https://proxy:8888`|
7878

7979
```bash
8080
docker run --rm -it -p 5000:5000 \
@@ -84,7 +84,7 @@ docker run --rm -it -p 5000:5000 \
8484
Eula=accept \
8585
Billing=<endpoint> \
8686
ApiKey=<api-key> \
87-
HTTPS_PROXY=<proxy-url> \
87+
HTTPS_PROXY=<proxy-url>
8888
```
8989

9090
## Logging settings

articles/aks/configure-azure-cni-dynamic-ip-allocation.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This article shows you how to use Azure CNI networking for dynamic allocation of
3737
* If you have an existing cluster, you need to enable Container Insights for monitoring IP subnet usage. You can enable Container Insights using the [`az aks enable-addons`][az-aks-enable-addons] command, as shown in the following example:
3838

3939
```azurecli-interactive
40-
az aks enable-addons --addons monitoring --name <cluster-name> --resource-group <resource-group-name>
40+
az aks enable-addons --addons monitoring --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME
4141
```
4242
4343
## Plan IP addressing
@@ -73,31 +73,33 @@ Using dynamic allocation of IPs and enhanced subnet support in your cluster is s
7373
Create the virtual network with two subnets.
7474
7575
```azurecli-interactive
76-
resourceGroup="myResourceGroup"
77-
vnet="myVirtualNetwork"
78-
location="westcentralus"
76+
RESOURCE_GROUP_NAME="myResourceGroup"
77+
VNET_NAME="myVirtualNetwork"
78+
LOCATION="westcentralus"
79+
SUBNET_NAME_1="nodesubnet"
80+
SUBNET_NAME_2="podsubnet"
7981
8082
# Create the resource group
81-
az group create --name $resourceGroup --location $location
83+
az group create --name $RESOURCE_GROUP_NAME --location $LOCATION
8284
8385
# Create our two subnet network
84-
az network vnet create -resource-group $resourceGroup --location $location --name $vnet --address-prefixes 10.0.0.0/8 -o none
85-
az network vnet subnet create --resource-group $resourceGroup --vnet-name $vnet --name nodesubnet --address-prefixes 10.240.0.0/16 -o none
86-
az network vnet subnet create --resource-group $resourceGroup --vnet-name $vnet --name podsubnet --address-prefixes 10.241.0.0/16 -o none
86+
az network vnet create --resource-group $RESOURCE_GROUP_NAME --location $LOCATION --name $VNET_NAME --address-prefixes 10.0.0.0/8 -o none
87+
az network vnet subnet create --resource-group $RESOURCE_GROUP_NAME --vnet-name $VNET_NAME --name $SUBNET_NAME_1 --address-prefixes 10.240.0.0/16 -o none
88+
az network vnet subnet create --resource-group $RESOURCE_GROUP_NAME --vnet-name $VNET_NAME --name $SUBNET_NAME_2 --address-prefixes 10.241.0.0/16 -o none
8789
```
8890

8991
Create the cluster, referencing the node subnet using `--vnet-subnet-id` and the pod subnet using `--pod-subnet-id` and enabling the monitoring add-on.
9092

9193
```azurecli-interactive
92-
clusterName="myAKSCluster"
93-
subscription="aaaaaaa-aaaaa-aaaaaa-aaaa"
94+
CLUSTER_NAME="myAKSCluster"
95+
SUBSCRIPTION="aaaaaaa-aaaaa-aaaaaa-aaaa"
9496
95-
az aks create --name $clusterName --resource-group $resourceGroup --location $location \
97+
az aks create --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME --location $LOCATION \
9698
--max-pods 250 \
9799
--node-count 2 \
98100
--network-plugin azure \
99-
--vnet-subnet-id /subscriptions/$subscription/resourceGroups/$resourceGroup/providers/Microsoft.Network/virtualNetworks/$vnet/subnets/nodesubnet \
100-
--pod-subnet-id /subscriptions/$subscription/resourceGroups/$resourceGroup/providers/Microsoft.Network/virtualNetworks/$vnet/subnets/podsubnet \
101+
--vnet-subnet-id /subscriptions/$SUBSCRIPTION/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME_1 \
102+
--pod-subnet-id /subscriptions/$SUBSCRIPTION/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME_2 \
101103
--enable-addons monitoring
102104
```
103105

@@ -106,14 +108,18 @@ az aks create --name $clusterName --resource-group $resourceGroup --location $lo
106108
When adding node pool, reference the node subnet using `--vnet-subnet-id` and the pod subnet using `--pod-subnet-id`. The following example creates two new subnets that are then referenced in the creation of a new node pool:
107109

108110
```azurecli-interactive
109-
az network vnet subnet create -g $resourceGroup --vnet-name $vnet --name node2subnet --address-prefixes 10.242.0.0/16 -o none
110-
az network vnet subnet create -g $resourceGroup --vnet-name $vnet --name pod2subnet --address-prefixes 10.243.0.0/16 -o none
111+
SUBNET_NAME_3="node2subnet"
112+
SUBNET_NAME_4="pod2subnet"
113+
NODE_POOL_NAME="mynodepool"
111114
112-
az aks nodepool add --cluster-name $clusterName -g $resourceGroup -n newnodepool \
115+
az network vnet subnet create --resource-group $RESOURCE_GROUP_NAME --vnet-name $VNET_NAME --name $SUBNET_NAME_3 --address-prefixes 10.242.0.0/16 -o none
116+
az network vnet subnet create --resource-group $RESOURCE_GROUP_NAME --vnet-name $VNET_NAME --name $SUBNET_NAME_4 --address-prefixes 10.243.0.0/16 -o none
117+
118+
az aks nodepool add --cluster-name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME --name $NODE_POOL_NAME \
113119
--max-pods 250 \
114120
--node-count 2 \
115-
--vnet-subnet-id /subscriptions/$subscription/resourceGroups/$resourceGroup/providers/Microsoft.Network/virtualNetworks/$vnet/subnets/node2subnet \
116-
--pod-subnet-id /subscriptions/$subscription/resourceGroups/$resourceGroup/providers/Microsoft.Network/virtualNetworks/$vnet/subnets/pod2subnet \
121+
--vnet-subnet-id /subscriptions/$SUBSCRIPTION/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME_3 \
122+
--pod-subnet-id /subscriptions/$SUBSCRIPTION/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME_4 \
117123
--no-wait
118124
```
119125

@@ -134,8 +140,8 @@ Azure CNI provides the capability to monitor IP subnet usage. To enable IP subne
134140
Set the variables for subscription, resource group and cluster. Consider the following as examples:
135141

136142
```azurecli-interactive
137-
az account set -s $subscription
138-
az aks get-credentials -n $clusterName -g $resourceGroup
143+
az account set --subscription $SUBSCRIPTION
144+
az aks get-credentials --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME
139145
```
140146

141147
### Apply the config

0 commit comments

Comments
 (0)