Skip to content

Commit 8145c95

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into vnet-encryption-ga
2 parents 3332d4d + 2870224 commit 8145c95

File tree

213 files changed

+4248
-2893
lines changed

Some content is hidden

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

213 files changed

+4248
-2893
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,12 @@
11891189
"url": "https://github.com/Azure-Samples/explore-iot-operations",
11901190
"branch": "main",
11911191
"branch_mapping": {}
1192+
},
1193+
{
1194+
"path_to_root": "SupportArticles-docs",
1195+
"url": "https://github.com/MicrosoftDocs/SupportArticles-docs",
1196+
"branch": "main",
1197+
"branch_mapping": {}
11921198
}
11931199
],
11941200
"branch_target_mapping": {

.openpublishing.redirection.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,12 +1712,22 @@
17121712
},
17131713
{
17141714
"source_path_from_root": "/articles/guides/developer/index.md",
1715-
"redirect_url": "/azure/guides/developer/azure-developer-guide",
1715+
"redirect_url": "/azure/developer/",
1716+
"redirect_document_id": false
1717+
},
1718+
{
1719+
"source_path_from_root": "/articles/guides/developer/azure-developer-guide.md",
1720+
"redirect_url": "/azure/developer/",
17161721
"redirect_document_id": false
17171722
},
17181723
{
17191724
"source_path_from_root": "/articles/guides/operations/index.md",
1720-
"redirect_url": "/azure/guides/operations/azure-operations-guide",
1725+
"redirect_url": "/azure/developer/intro/azure-developer-key-concepts",
1726+
"redirect_document_id": false
1727+
},
1728+
{
1729+
"source_path_from_root": "/articles/guides/operations/azure-operations-guide.md",
1730+
"redirect_url": "/azure/developer/intro/azure-developer-key-concepts",
17211731
"redirect_document_id": false
17221732
},
17231733
{

articles/ai-services/document-intelligence/concept-invoice.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ Following are the line items extracted from an invoice in the JSON output respon
234234
| Amount | Number | The amount of the line item | $60.00 | 100 |
235235
| Description | String | The text description for the invoice line item | Consulting service | Consulting service |
236236
| Quantity | Number | The quantity for this invoice line item | 2 | 2 |
237+
| OrderQuantity | Number | The ordered quantity for this line item. May differ from the quantity shipped and invoiced | 3 | 3 |
237238
| UnitPrice | Number | The net or gross price (depending on the gross invoice setting of the invoice) of one unit of this item | $30.00 | 30 |
238239
| ProductCode | String| Product code, product number, or SKU associated with the specific line item | A123 | |
239240
| Unit | String| The unit of the line item, e.g, kg, lb etc. | Hours | |
@@ -301,6 +302,28 @@ The following are the line items extracted from an invoice in the JSON output re
301302
| Date | date| Date corresponding to each line item. Often it's a date the line item was shipped | 3/4/2021| 2021-03-04 |
302303
| Tax | number | Tax associated with each line item. Possible values include tax amount, tax %, and tax Y/N | 10% | |
303304

305+
The following are complex fields extracted from an invoice in the JSON output response:
306+
307+
### TaxDetails
308+
Tax details aims at breaking down the different taxes applied to the invoice total.
309+
310+
|Name| Type | Description | Text (line item #1) | Value (standardized output) |
311+
|:-----|:----|:----|:----| :----|
312+
| Items | string | Full string text line of the tax item | V.A.T. 15% $60.00 | |
313+
| Amount | number | The tax amount of the tax item | 60.00 | 60 |
314+
| Rate | string | The tax rate of the tax item | 15% | |
315+
316+
### PaymentDetails
317+
List all the detected payment options detected on the field.
318+
319+
|Name| Type | Description | Text (line item #1) | Value (standardized output) |
320+
|:-----|:----|:----|:----| :----|
321+
| IBAN | string | Internal Bank Account Number | GB33BUKB20201555555555 | |
322+
| SWIFT | string | SWIFT code | BUKBGB22 | |
323+
| BPayBillerCode | string | Australian B-Pay Biller Code | 12345 | |
324+
| BPayReference | string | Australian B-Pay Reference Code | 98765432100 | |
325+
326+
304327
### JSON output
305328

306329
The JSON output has three parts:

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Create a Node.js Express application.
7979
1. Install the `ai-document-intelligence` client library and `azure/identity` npm packages:
8080

8181
```console
82-
npm i @azure/[email protected] @azure/identity
82+
npm i @azure-rest/[email protected] @azure/identity
8383
```
8484

8585
Your app's *package.json* file is updated with the dependencies.
@@ -106,7 +106,7 @@ 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/ai-document-intelligence");
109+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
110110

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

204204
```javascript
205-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
205+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
206206

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

274274
```javascript
275-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
275+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
276276

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

320320
```javascript
321-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
321+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
322322

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

399399
```javascript
400-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
400+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
401401

402402
//use your `key` and `endpoint` environment variables
403403
const key = process.env['DI_KEY'];
@@ -459,7 +459,7 @@ Visit the Azure samples repository on GitHub and view the [invoice model output]
459459
## Use the Receipt model
460460
461461
```javascript
462-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
462+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
463463

464464
//use your `key` and `endpoint` environment variables
465465
const key = process.env['DI_KEY'];
@@ -518,7 +518,7 @@ Visit the Azure samples repository on GitHub and view the [receipt model output]
518518
## Use the ID document model
519519
520520
```javascript
521-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
521+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
522522

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

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def analyze_read():
9898
# sample document
9999
formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/read.png"
100100

101-
document_intelligence_client = DocumentIntelligenceClient(
101+
client = DocumentIntelligenceClient(
102102
endpoint=endpoint, credential=AzureKeyCredential(key)
103103
)
104104

105-
poller = document_intelligence_client.begin_analyze_document(
105+
poller = client.begin_analyze_document(
106106
"prebuilt-read", formUrl
107107
)
108108
result = poller.result()
@@ -174,11 +174,11 @@ def analyze_layout():
174174
# sample document
175175
formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/layout.png"
176176

177-
document_intelligence_client = DocumentIntelligenceClient(
177+
client = DocumentIntelligenceClient(
178178
endpoint=endpoint, credential=AzureKeyCredential(key)
179179
)
180180

181-
poller = document_intelligence_client.begin_analyze_document(
181+
poller = client.begin_analyze_document(
182182
"prebuilt-layout", formUrl
183183
)
184184
result = poller.result()
@@ -295,9 +295,9 @@ def analyze_general_documents():
295295
docUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
296296

297297
# create your `DocumentIntelligenceClient` instance and `AzureKeyCredential` variable
298-
document_intelligence_client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key))
298+
client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key))
299299

300-
poller = document_intelligence_client.begin_analyze_document(
300+
poller = client.begin_analyze_document(
301301
"prebuilt-document", docUrl)
302302
result = poller.result()
303303

@@ -416,11 +416,11 @@ def analyze_tax_us_w2():
416416
# sample document
417417
formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/w2.png"
418418

419-
document_intelligence_client = DocumentIntelligenceClient(
419+
client = DocumentIntelligenceClient(
420420
endpoint=endpoint, credential=AzureKeyCredential(key)
421421
)
422422

423-
poller = document_intelligence_client.begin_analyze_document(
423+
poller = client.begin_analyze_document(
424424
"prebuilt-tax.us.w2", formUrl
425425
)
426426
w2s = poller.result()
@@ -747,11 +747,11 @@ def analyze_invoice():
747747

748748
invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
749749

750-
document_intelligence_client = DocumentIntelligenceClient(
750+
client = DocumentIntelligenceClient(
751751
endpoint=endpoint, credential=AzureKeyCredential(key)
752752
)
753753

754-
poller = document_intelligence_client.begin_analyze_document(
754+
poller = client.begin_analyze_document(
755755
"prebuilt-invoice", invoiceUrl)
756756
invoices = poller.result()
757757

@@ -1027,10 +1027,10 @@ def analyze_receipts():
10271027
# sample document
10281028
receiptUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/receipt.png"
10291029

1030-
document_intelligence_client = DocumentIntelligenceClient(
1030+
client = DocumentIntelligenceClient(
10311031
endpoint=endpoint, credential=AzureKeyCredential(key)
10321032
)
1033-
poller = document_intelligence_client.begin_analyze_document(
1033+
poller = client.begin_analyze_document(
10341034
"prebuilt-receipt", receiptUrl, locale="en-US"
10351035
)
10361036
receipts = poller.result()
@@ -1125,11 +1125,11 @@ def analyze_identity_documents():
11251125
# sample document
11261126
identityUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/identity_documents.png"
11271127

1128-
document_intelligence_client = DocumentIntelligenceClient(
1128+
client = DocumentIntelligenceClient(
11291129
endpoint=endpoint, credential=AzureKeyCredential(key)
11301130
)
11311131

1132-
poller = document_intelligence_client.begin_analyze_document(
1132+
poller =client.begin_analyze_document(
11331133
"prebuilt-idDocument", identityUrl
11341134
)
11351135
id_documents = poller.result()

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ 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, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
149+
const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
150150

151151
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
152152
const key = "<your-key>";
@@ -156,7 +156,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
156156
const formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
157157

158158
async function main() {
159-
const client = DocumentIntelligence(endpoint, new AzureKeyCredential(key));
159+
const client = DocumentIntelligenceClient(endpoint, new AzureKeyCredential(key));
160160

161161
const poller = await client.beginAnalyzeDocument("prebuilt-layout", formUrl);
162162

@@ -311,7 +311,7 @@ In this example, we analyze an invoice using the **prebuilt-invoice** model.
311311

312312
```javascript
313313

314-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
314+
const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
315315

316316
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
317317
const key = "<your-key>";
@@ -321,9 +321,9 @@ const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-doc
321321
invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
322322

323323
async function main() {
324-
const client = DocumentIntelligence(endpoint, new AzureKeyCredential(key));
324+
const client = DocumentIntelligenceClient(endpoint, new AzureKeyCredential(key));
325325

326-
const poller = await client.beginAnalyzeDocumentFromUrl("prebuilt-invoice", invoiceUrl);
326+
const poller = await client.beginAnalyzeDocument("prebuilt-invoice", invoiceUrl);
327327
if (pages.length <= 0) {
328328
console.log("No pages were extracted from the document.");
329329
} else {

articles/ai-services/openai/concepts/use-your-data.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ You can use Azure OpenAI On Your Data with an Azure OpenAI resource in the follo
621621

622622
* `gpt-4` (0314)
623623
* `gpt-4` (0613)
624+
* `gpt-4` (0125)
624625
* `gpt-4-32k` (0314)
625626
* `gpt-4-32k` (0613)
626627
* `gpt-4` (1106-preview)

articles/ai-services/openai/how-to/latency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Latency varies based on what model you're using. For an identical request, expec
5959
When you send a completion request to the Azure OpenAI endpoint, your input text is converted to tokens that are then sent to your deployed model. The model receives the input tokens and then begins generating a response. It's an iterative sequential process, one token at a time. Another way to think of it is like a for loop with `n tokens = n iterations`. For most models, generating the response is the slowest step in the process.
6060

6161
At the time of the request, the requested generation size (max_tokens parameter) is used as an initial estimate of the generation size. The compute-time for generating the full size is reserved by the model as the request is processed. Once the generation is completed, the remaining quota is released. Ways to reduce the number of tokens:
62-
- Set the `max_token` parameter on each call as small as possible.
62+
- Set the `max_tokens` parameter on each call as small as possible.
6363
- Include stop sequences to prevent generating extra content.
6464
- Generate fewer responses: The best_of & n parameters can greatly increase latency because they generate multiple outputs. For the fastest response, either don't specify these values or set them to 1.
6565

@@ -136,4 +136,4 @@ Time from the first token to the last token, divided by the number of generated
136136

137137
* **Streaming**: Enabling streaming can be useful in managing user expectations in certain situations by allowing the user to see the model response as it is being generated rather than having to wait until the last token is ready.
138138

139-
* **Content Filtering** improves safety, but it also impacts latency. Evaluate if any of your workloads would benefit from [modified content filtering policies](./content-filters.md).
139+
* **Content Filtering** improves safety, but it also impacts latency. Evaluate if any of your workloads would benefit from [modified content filtering policies](./content-filters.md).

articles/ai-services/openai/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ curl -X POST https://{your-resource-name}.openai.azure.com/openai/deployments/{d
10261026
-d '{
10271027
"prompt": "An avocado chair",
10281028
"size": "1024x1024",
1029-
"n": 3,
1029+
"n": 1,
10301030
"quality": "hd",
10311031
"style": "vivid"
10321032
}'

articles/ai-services/openai/whats-new.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Fine-tuning is now available in East US 2 with support for:
2828

2929
Check the [models page](concepts/models.md#fine-tuning-models), for the latest information on model availability and fine-tuning support in each region.
3030

31+
### GPT-4 (0125) is available for Azure OpenAI On Your Data
32+
33+
You can now use the GPT-4 (0125) model in [available regions](./concepts/models.md#public-cloud-regions) with Azure OpenAI On Your Data.
34+
3135
## March 2024
3236

3337
### Risks & Safety monitoring in Azure OpenAI Studio

0 commit comments

Comments
 (0)