Skip to content

Commit f2b9798

Browse files
authored
Merge pull request #2942 from MicrosoftDocs/main
2/13/2025 PM Publish
2 parents 44794fd + 9950860 commit f2b9798

File tree

14 files changed

+110
-94
lines changed

14 files changed

+110
-94
lines changed

articles/ai-services/agents/how-to/tools/function-calling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def fetch_weather(location: str) -> str:
5858
weather_json = json.dumps({"weather": weather})
5959
return weather_json
6060

61-
# Statically defined user functions for fast reference
61+
# Statically defined user functions for fast reference
6262
user_functions: Set[Callable[..., Any]] = {
6363
fetch_weather,
6464
}
@@ -437,4 +437,4 @@ foreach (ThreadMessage threadMessage in messages)
437437
438438
## See also
439439
440-
* [Lean how to ground agents by using Bing Web Search](./bing-grounding.md)
440+
* [Lean how to ground agents by using Bing Web Search](./bing-grounding.md)

articles/ai-services/document-intelligence/concept/query-fields.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-document-intelligence
88
ms.topic: conceptual
9-
ms.date: 11/19/2024
9+
ms.date: 02/12/2025
1010
ms.author: nitinme
1111
monikerRange: 'doc-intel-4.0.0'
1212
---
@@ -15,7 +15,7 @@ monikerRange: 'doc-intel-4.0.0'
1515

1616
# Document Intelligence query field extraction
1717

18-
**Document Intelligence now supports query field to extend the schema of any prebuilt model to extract the specific fields you need. Query fields can also be added to layout to extract fields in addition to structure from forms or documents.
18+
Document Intelligence now supports query field to extend the schema of any prebuilt model to extract the specific fields you need. Query fields can also be added to layout to extract fields in addition to structure from forms or documents.
1919
> [!NOTE]
2020
>
2121
> Document Intelligence Studio query field extraction is currently available with layout and prebuilt models, excluding the UX.Tax prebuilt models.
@@ -45,18 +45,18 @@ For query field extraction, specify the fields you want to extract and Document
4545
* In addition to the query fields, the response includes the model output. For a list of features or schema extracted by each model, see [model analysis features](../model-overview.md#model-analysis-features).
4646

4747

48-
## Query fields REST API request**
48+
## Query fields REST API request
4949

50-
Use the query fields feature with the [general document model](../prebuilt/general-document.md), and add fields to the extraction process without having to train a custom model:
50+
Use the query fields feature with the [prebuilt layout](../prebuilt/layout.md) model, and add fields to the extraction process without having to train a custom model:
5151

5252
```http
53-
POST https://{endpoint}/documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2024-02-29-preview&features=queryFields&queryFields=Terms,PaymentDate HTTP/1.1
53+
POST https://{endpoint}/documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2024-11-30&features=queryFields&queryFields=OurReference,BookingDate HTTP/1.1
5454
Host: *.cognitiveservices.azure.com
5555
Content-Type: application/json
5656
Ocp-Apim-Subscription-Key:
5757
5858
{
59-
"urlSource": "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
59+
"urlSource": "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/layout.png"
6060
}
6161
``````
6262

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ foreach (DocumentPage page in result.Pages)
129129

130130
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
131131

132-
for (int j = 0; j < line.BoundingPolygon.Count; j++)
132+
for (int j = 0; j < line.Polygon.Count; j++)
133133
{
134-
Console.WriteLine($" Point {j} => X: {line.BoundingPolygon[j].X}, Y: {line.BoundingPolygon[j].Y}");
134+
Console.WriteLine($" Point {j} => X: {line.Polygon[j].X}, Y: {line.Polygon[j].Y}");
135135
}
136136
}
137137
}
@@ -196,9 +196,9 @@ foreach (DocumentPage page in result.Pages)
196196

197197
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
198198

199-
for (int j = 0; j < line.BoundingPolygon.Count; j++)
199+
for (int j = 0; j < line.Polygon.Count; j++)
200200
{
201-
Console.WriteLine($" Point {j} => X: {line.BoundingPolygon[j].X}, Y: {line.BoundingPolygon[j].Y}");
201+
Console.WriteLine($" Point {j} => X: {line.Polygon[j].X}, Y: {line.Polygon[j].Y}");
202202
}
203203
}
204204

@@ -209,9 +209,9 @@ foreach (DocumentPage page in result.Pages)
209209
Console.WriteLine($" Selection Mark {i} is {selectionMark.State}.");
210210
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
211211

212-
for (int j = 0; j < selectionMark.BoundingPolygon.Count; j++)
212+
for (int j = 0; j < selectionMark.Polygon.Count; j++)
213213
{
214-
Console.WriteLine($" Point {j} => X: {selectionMark.BoundingPolygon[j].X}, Y: {selectionMark.BoundingPolygon[j].Y}");
214+
Console.WriteLine($" Point {j} => X: {selectionMark.Polygon[j].X}, Y: {selectionMark.Polygon[j].Y}");
215215
}
216216
}
217217
}
@@ -308,9 +308,9 @@ foreach (DocumentPage page in result.Pages)
308308

309309
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
310310

311-
for (int j = 0; j < line.BoundingPolygon.Count; j++)
311+
for (int j = 0; j < line.Polygon.Count; j++)
312312
{
313-
Console.WriteLine($" Point {j} => X: {line.BoundingPolygon[j].X}, Y: {line.BoundingPolygon[j].Y}");
313+
Console.WriteLine($" Point {j} => X: {line.Polygon[j].X}, Y: {line.Polygon[j].Y}");
314314
}
315315
}
316316

@@ -321,9 +321,9 @@ foreach (DocumentPage page in result.Pages)
321321
Console.WriteLine($" Selection Mark {i} is {selectionMark.State}.");
322322
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
323323

324-
for (int j = 0; j < selectionMark.BoundingPolygon.Count; j++)
324+
for (int j = 0; j < selectionMark.Polygon.Count; j++)
325325
{
326-
Console.WriteLine($" Point {j} => X: {selectionMark.BoundingPolygon[j].X}, Y: {selectionMark.BoundingPolygon[j].Y}");
326+
Console.WriteLine($" Point {j} => X: {selectionMark.Polygon[j].X}, Y: {selectionMark.Polygon[j].Y}");
327327
}
328328
}
329329
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ analyzeLayoutResult.getPages().forEach(documentPage -> {
192192
documentPage.getLines().forEach(documentLine ->
193193
System.out.printf("Line %s is within a bounding polygon %s.%n",
194194
documentLine.getContent(),
195-
documentLine.getBoundingPolygon().toString()));
195+
documentLine.getPolygon().toString()));
196196

197197
// words
198198
documentPage.getWords().forEach(documentWord ->
@@ -258,7 +258,7 @@ analyzeLayoutResult.getPages().forEach(documentPage -> {
258258
documentPage.getLines().forEach(documentLine ->
259259
System.out.printf("Line %s is within a bounding polygon %s.%n",
260260
documentLine.getContent(),
261-
documentLine.getBoundingPolygon().toString()));
261+
documentLine.getPolygon().toString()));
262262

263263
// words
264264
documentPage.getWords().forEach(documentWord ->
@@ -270,7 +270,7 @@ analyzeLayoutResult.getPages().forEach(documentPage -> {
270270
documentPage.getSelectionMarks().forEach(documentSelectionMark ->
271271
System.out.printf("Selection mark is '%s' and is within a bounding polygon %s with confidence %.2f.%n",
272272
documentSelectionMark.getSelectionMarkState().toString(),
273-
getBoundingCoordinates(documentSelectionMark.getBoundingPolygon()),
273+
getBoundingCoordinates(documentSelectionMark.getPolygon()),
274274
documentSelectionMark.getConfidence()));
275275
});
276276

@@ -290,8 +290,8 @@ for (int i = 0; i < tables.size(); i++) {
290290
}
291291

292292
// Utility function to get the bounding polygon coordinates.
293-
private static String getBoundingCoordinates(List < Point > boundingPolygon) {
294-
return boundingPolygon.stream().map(point -> String.format("[%.2f, %.2f]", point.getX(),
293+
private static String getBoundingCoordinates(List < Point > Polygon) {
294+
return Polygon.stream().map(point -> String.format("[%.2f, %.2f]", point.getX(),
295295
point.getY())).collect(Collectors.joining(", "));
296296
}
297297

@@ -351,7 +351,7 @@ analyzeResult.getPages().forEach(documentPage -> {
351351
documentPage.getLines().forEach(documentLine ->
352352
System.out.printf("Line %s is within a bounding polygon %s.%n",
353353
documentLine.getContent(),
354-
documentLine.getBoundingPolygon().toString()));
354+
documentLine.getPolygon().toString()));
355355

356356
// words
357357
documentPage.getWords().forEach(documentWord ->

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ foreach (DocumentPage page in result.Pages)
344344
Console.WriteLine($" Line {i} has content: '{line.Content}'.");
345345

346346
Console.WriteLine($" Its bounding box is:");
347-
Console.WriteLine($" Upper left => X: {line.BoundingPolygon[0].X}, Y= {line.BoundingPolygon[0].Y}");
348-
Console.WriteLine($" Upper right => X: {line.BoundingPolygon[1].X}, Y= {line.BoundingPolygon[1].Y}");
349-
Console.WriteLine($" Lower right => X: {line.BoundingPolygon[2].X}, Y= {line.BoundingPolygon[2].Y}");
350-
Console.WriteLine($" Lower left => X: {line.BoundingPolygon[3].X}, Y= {line.BoundingPolygon[3].Y}");
347+
Console.WriteLine($" Upper left => X: {line.Polygon[0].X}, Y= {line.Polygon[0].Y}");
348+
Console.WriteLine($" Upper right => X: {line.Polygon[1].X}, Y= {line.Polygon[1].Y}");
349+
Console.WriteLine($" Lower right => X: {line.Polygon[2].X}, Y= {line.Polygon[2].Y}");
350+
Console.WriteLine($" Lower left => X: {line.Polygon[3].X}, Y= {line.Polygon[3].Y}");
351351
}
352352

353353
for (int i = 0; i < page.SelectionMarks.Count; i++)
@@ -356,10 +356,10 @@ foreach (DocumentPage page in result.Pages)
356356

357357
Console.WriteLine($" Selection Mark {i} is {selectionMark.State}.");
358358
Console.WriteLine($" Its bounding box is:");
359-
Console.WriteLine($" Upper left => X: {selectionMark.BoundingPolygon[0].X}, Y= {selectionMark.BoundingPolygon[0].Y}");
360-
Console.WriteLine($" Upper right => X: {selectionMark.BoundingPolygon[1].X}, Y= {selectionMark.BoundingPolygon[1].Y}");
361-
Console.WriteLine($" Lower right => X: {selectionMark.BoundingPolygon[2].X}, Y= {selectionMark.BoundingPolygon[2].Y}");
362-
Console.WriteLine($" Lower left => X: {selectionMark.BoundingPolygon[3].X}, Y= {selectionMark.BoundingPolygon[3].Y}");
359+
Console.WriteLine($" Upper left => X: {selectionMark.Polygon[0].X}, Y= {selectionMark.Polygon[0].Y}");
360+
Console.WriteLine($" Upper right => X: {selectionMark.Polygon[1].X}, Y= {selectionMark.Polygon[1].Y}");
361+
Console.WriteLine($" Lower right => X: {selectionMark.Polygon[2].X}, Y= {selectionMark.Polygon[2].Y}");
362+
Console.WriteLine($" Lower left => X: {selectionMark.Polygon[3].X}, Y= {selectionMark.Polygon[3].Y}");
363363
}
364364
}
365365

@@ -459,9 +459,9 @@ foreach (DocumentPage page in result.Pages)
459459

460460
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
461461

462-
for (int j = 0; j < line.BoundingPolygon.Count; j++)
462+
for (int j = 0; j < line.Polygon.Count; j++)
463463
{
464-
Console.WriteLine($" Point {j} => X: {line.BoundingPolygon[j].X}, Y: {line.BoundingPolygon[j].Y}");
464+
Console.WriteLine($" Point {j} => X: {line.Polygon[j].X}, Y: {line.Polygon[j].Y}");
465465
}
466466
}
467467

@@ -472,9 +472,9 @@ foreach (DocumentPage page in result.Pages)
472472
Console.WriteLine($" Selection Mark {i} is {selectionMark.State}.");
473473
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
474474

475-
for (int j = 0; j < selectionMark.BoundingPolygon.Count; j++)
475+
for (int j = 0; j < selectionMark.Polygon.Count; j++)
476476
{
477-
Console.WriteLine($" Point {j} => X: {selectionMark.BoundingPolygon[j].X}, Y: {selectionMark.BoundingPolygon[j].Y}");
477+
Console.WriteLine($" Point {j} => X: {selectionMark.Polygon[j].X}, Y: {selectionMark.Polygon[j].Y}");
478478
}
479479
}
480480
}
@@ -542,9 +542,9 @@ foreach (DocumentPage page in result.Pages)
542542

543543
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
544544

545-
for (int j = 0; j < line.BoundingPolygon.Count; j++)
545+
for (int j = 0; j < line.Polygon.Count; j++)
546546
{
547-
Console.WriteLine($" Point {j} => X: {line.BoundingPolygon[j].X}, Y: {line.BoundingPolygon[j].Y}");
547+
Console.WriteLine($" Point {j} => X: {line.Polygon[j].X}, Y: {line.Polygon[j].Y}");
548548
}
549549
}
550550

@@ -555,9 +555,9 @@ foreach (DocumentPage page in result.Pages)
555555
Console.WriteLine($" Selection Mark {i} is {selectionMark.State}.");
556556
Console.WriteLine($" Its bounding polygon (points ordered clockwise):");
557557

558-
for (int j = 0; j < selectionMark.BoundingPolygon.Count; j++)
558+
for (int j = 0; j < selectionMark.Polygon.Count; j++)
559559
{
560-
Console.WriteLine($" Point {j} => X: {selectionMark.BoundingPolygon[j].X}, Y: {selectionMark.BoundingPolygon[j].Y}");
560+
Console.WriteLine($" Point {j} => X: {selectionMark.Polygon[j].X}, Y: {selectionMark.Polygon[j].Y}");
561561
}
562562
}
563563
}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public class FormRecognizer {
424424
documentPage.getLines().forEach(documentLine ->
425425
System.out.printf("Line %s is within a bounding polygon %s.%n",
426426
documentLine.getContent(),
427-
documentLine.getBoundingPolygon().toString()));
427+
documentLine.getPolygon().toString()));
428428

429429
// words
430430
documentPage.getWords().forEach(documentWord ->
@@ -436,7 +436,7 @@ public class FormRecognizer {
436436
documentPage.getSelectionMarks().forEach(documentSelectionMark ->
437437
System.out.printf("Selection mark is %s and is within a bounding polygon %s with confidence %.2f.%n",
438438
documentSelectionMark.getState().toString(),
439-
documentSelectionMark.getBoundingPolygon().toString(),
439+
documentSelectionMark.getPolygon().toString(),
440440
documentSelectionMark.getConfidence()));
441441
});
442442

@@ -454,8 +454,8 @@ public class FormRecognizer {
454454
}
455455
}
456456
// Utility function to get the bounding polygon coordinates
457-
private static String getBoundingCoordinates(List < Point > boundingPolygon) {
458-
return boundingPolygon.stream().map(point -> String.format("[%.2f, %.2f]", point.getX(),
457+
private static String getBoundingCoordinates(List < Point > Polygon) {
458+
return Polygon.stream().map(point -> String.format("[%.2f, %.2f]", point.getX(),
459459
point.getY())).collect(Collectors.joining(", "));
460460
}
461461
}
@@ -556,7 +556,7 @@ public class FormRecognizer {
556556
documentPage.getLines().forEach(documentLine ->
557557
System.out.printf("Line '%s' is within a bounding polygon %s.%n",
558558
documentLine.getContent(),
559-
getBoundingCoordinates(documentLine.getBoundingPolygon())));
559+
getBoundingCoordinates(documentLine.getPolygon())));
560560

561561
// words
562562
documentPage.getWords().forEach(documentWord ->
@@ -568,7 +568,7 @@ public class FormRecognizer {
568568
documentPage.getSelectionMarks().forEach(documentSelectionMark ->
569569
System.out.printf("Selection mark is '%s' and is within a bounding polygon %s with confidence %.2f.%n",
570570
documentSelectionMark.getSelectionMarkState().toString(),
571-
getBoundingCoordinates(documentSelectionMark.getBoundingPolygon()),
571+
getBoundingCoordinates(documentSelectionMark.getPolygon()),
572572
documentSelectionMark.getConfidence()));
573573
});
574574

@@ -593,8 +593,8 @@ public class FormRecognizer {
593593
/**
594594
* Utility function to get the bounding polygon coordinates.
595595
*/
596-
private static String getBoundingCoordinates(List < Point > boundingPolygon) {
597-
return boundingPolygon.stream().map(point -> String.format("[%.2f, %.2f]", point.getX(),
596+
private static String getBoundingCoordinates(List < Point > Polygon) {
597+
return Polygon.stream().map(point -> String.format("[%.2f, %.2f]", point.getX(),
598598
point.getY())).collect(Collectors.joining(", "));
599599
}
600600
}

articles/ai-services/language-service/personally-identifiable-information/language-support.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,8 @@ Use this article to learn which natural languages are supported by the text PII,
191191

192192
## PII language support
193193

194-
| Language | Language code | Notes |
195-
|-----------------------|---------------|--------------------|
196-
|German |`de` | |
197-
|English |`en` | |
198-
|Spanish |`es` | |
199-
|French |`fr` | |
194+
The Generally Available Conversational PII serivce currently supports English. Preview model version `2023-04-15-preview` supports English, German, Spanish, and French.
195+
200196

201197
---
202198

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: azure-ai-openai
88
ms.topic: quickstart
99
author: aahill
1010
ms.author: aahi
11-
ms.date: 10/25/2024
11+
ms.date: 02/13/2025
1212
recommendations: false
1313
ms.custom: references_regions, ignite-2024
1414
---
@@ -41,6 +41,11 @@ Typically, the development process you'd use with Azure OpenAI On Your Data is:
4141

4242
To get started, [connect your data source](../use-your-data-quickstart.md) using Azure AI Foundry portal and start asking questions and chatting on your data.
4343

44+
> [!NOTE]
45+
> The following models are not supported by Azure OpenAI On Your Data:
46+
> * o1 models
47+
> * o3 models
48+
4449
## Azure Role-based access controls (Azure RBAC) for adding data sources
4550

4651
To use Azure OpenAI On Your Data fully, you need to set one or more Azure RBAC roles. See [Azure OpenAI On Your Data configuration](../how-to/on-your-data-configuration.md#role-assignments) for more information.

articles/ai-studio/azure-openai-in-ai-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: scottpolly
66
keywords: Azure AI services, cognitive, Azure OpenAI
77
ms.service: azure-ai-foundry
88
ms.topic: overview
9-
ms.date: 11/04/2024
9+
ms.date: 02/13/2025
1010
ms.reviewer: shwinne
1111
ms.author: sgilley
1212
author: sdgilley

0 commit comments

Comments
 (0)