Skip to content

Commit 7838ab2

Browse files
authored
Merge branch 'main' into patch-1
2 parents fd16e18 + 85ce02b commit 7838ab2

File tree

9 files changed

+45
-47
lines changed

9 files changed

+45
-47
lines changed

articles/ai-foundry/includes/create-content-filter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Follow these steps to create a content filter:
3535

3636
Now you can configure the input filters (for user prompts) and output filters (for model completion).
3737
1. On the **Input filters** page, you can set the filter for the input prompt. For the first four content categories there are three severity levels that are configurable: Low, medium, and high. You can use the sliders to set the severity threshold if you determine that your application or usage scenario requires different filtering than the default values.
38-
Some filters, such as Prompt Shields and Protected material detection, enable you to determine if the model should annotate and/or block content. Selecting **Annotate only** runs the respective model and return annotations via API response, but it will not filter content. In addition to annotate, you can also choose to block content.
38+
Some filters, such as Prompt Shields and Protected material detection, enable you to determine if the model should annotate and/or block content. Selecting **Annotate only** runs the respective model and returns annotations via API response, but it will not filter content. In addition to annotate, you can also choose to block content.
3939

4040
If your use case was approved for modified content filters, you receive full control over content filtering configurations and can choose to turn filtering partially or fully off, or enable annotate only for the content harms categories (violence, hate, sexual and self-harm).
4141

@@ -80,4 +80,4 @@ Follow these steps to apply a content filter to a deployment:
8080
Now, you can go to the playground to test whether the content filter works as expected.
8181

8282
> [!TIP]
83-
> You can also create and update content filters using the REST APIs. For more information, see the [API reference](/rest/api/aiservices/accountmanagement/rai-policies/create-or-update). Content filters can be configured at the resource level. Once a new configuration is created, it can be associated with one or more deployments. For more information about model deployment, see the resource [deployment guide](../../ai-services/openai/how-to/create-resource.md).
83+
> You can also create and update content filters using the REST APIs. For more information, see the [API reference](/rest/api/aiservices/accountmanagement/rai-policies/create-or-update). Content filters can be configured at the resource level. Once a new configuration is created, it can be associated with one or more deployments. For more information about model deployment, see the resource [deployment guide](../../ai-services/openai/how-to/create-resource.md).

articles/ai-services/content-understanding/how-to/create-multi-service-resource.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ ms.author: lajanuar
1313

1414
# Create an Azure AI Foundry resource
1515

16-
To use Content Understanding, you need an Azure AI Foundry resource. This multi-service resource enables access to multiple Azure AI services with a single set of credentials.
16+
To use Content Understanding, you need an Azure AI Foundry resource.
17+
18+
> [!IMPORTANT]
19+
> The steps below explain how to create a resource for use with the [REST API](../quickstart/use-rest-api.md). To use Content Understanding in the Azure AI Foundry portal, see the [AI Foundry quickstart](../quickstart/use-ai-foundry.md).
20+
1721

1822
## Prerequisites
1923

@@ -23,9 +27,6 @@ To use Content Understanding, you need an Azure AI Foundry resource. This multi-
2327

2428
:::image type="content" source="../media/overview/azure-multi-service-resource.png" alt-text="Screenshot of the AI Foundry resource page in the Azure portal.":::
2529

26-
> [!IMPORTANT]
27-
> Azure provides more than one resource type for Azure AI services. Be sure to select the one that is listed under **AI Foundry** > **AI Foundry** with the logo as shown previously.
28-
2930
1. Select the **Create** button.
3031

3132
## Create a resource
@@ -57,5 +58,5 @@ To use the Azure AI Content Understanding service, you must create your Azure AI
5758

5859
Now that you created your Azure AI Foundry resource, you're ready to try out the Content Understanding service.
5960

60-
* Try Content Understanding with no code in [Azure AI Foundry](https://ai.azure.com/explore/aiservices/vision/contentunderstanding).
6161
* Ready to go straight to code? Follow the [REST API QuickStart](../quickstart/use-rest-api.md).
62+
* Try Content Understanding with no code in [Azure AI Foundry](https://ai.azure.com/explore/aiservices/vision/contentunderstanding).

articles/ai-services/content-understanding/quickstart/use-rest-api.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,15 @@ ms.date: 05/19/2025
2020

2121
To get started, you need **an active Azure subscription**. If you don't have an Azure account, [create one for free](https://azure.microsoft.com/free/).
2222

23-
* Once you have your Azure subscription, create an [Azure AI Foundry resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesAIFoundry) in the Azure portal. This multi-service resource enables access to multiple Azure AI services with a single set of credentials.
23+
* Once you have your Azure subscription, create an [Azure AI Foundry resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesAIFoundry) in the Azure portal.
2424

2525
* This resource is listed under **AI Foundry** > **AI Foundry** in the portal.
2626

27-
> [!IMPORTANT]
28-
> Azure provides more than one resource type for Azure AI services. Make certain that you select the one listed under **AI Foundry** > **AI Foundry** as depicted in the following image. For more information, see [Create an Azure AI Foundry resource](../how-to/create-multi-service-resource.md).
29-
3027
:::image type="content" source="../media/overview/azure-multi-service-resource.png" alt-text="Screenshot of the AI Foundry resource page in the Azure portal.":::
3128

32-
* In this quickstart, we use the cURL command line tool. If it isn't installed, you can download a version for your dev environment: [cURL download page](https://curl.se/download.html).
29+
In this guide, we use the cURL command line tool. If it isn't installed, you can [download](https://everything.curl.dev/install/index.html) the appropriate version for your dev environment.
3330

34-
## Get Started with a prebuilt analyzer
31+
## Get started with a prebuilt analyzer
3532

3633
Analyzers define how your content is processed and the insights that are extracted. We offer [prebuilt analyzers](../concepts/prebuilt-analyzers.md) for common use cases. You can [customize prebuilt analyzers](../concepts/prebuilt-analyzers.md) to better fit your specific needs and use cases.
3734
This quickstart uses prebuilt document, image, audio, and video analyzers to help you get started.
@@ -41,25 +38,25 @@ This quickstart uses prebuilt document, image, audio, and video analyzers to hel
4138
Before running the following cURL command, make the following changes to the HTTP request:
4239
# [Document](#tab/document)
4340

44-
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
41+
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Foundry instance in the Azure portal.
4542
2. Replace `{analyzerId}` with `prebuilt-documentAnalyzer`. This analyzer extracts text and layout elements such as paragraphs, sections, and tables from a document.
4643
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/invoice.pdf`.
4744

4845
# [Image](#tab/image)
4946

50-
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
47+
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Foundry instance in the Azure portal.
5148
2. Replace `{analyzerId}` with `prebuilt-imageAnalyzer`. This analyzer generates a description of the image.
5249
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/pieChart.jpg`.
5350

5451
# [Audio](#tab/audio)
5552

56-
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
53+
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Foundry instance in the Azure portal.
5754
2. Replace `{analyzerId}` with `prebuilt-audioAnalyzer`. This analyzer extracts the audio transcript, generates a summary, and performs speaker labeling.
5855
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/audio.wav`.
5956

6057
# [Video](#tab/video)
6158

62-
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
59+
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Foundry instance in the Azure portal.
6360
2. Replace `{analyzerId}` with `prebuilt-videoAnalyzer`. This analyzer extracts keyframes, transcript, and chapter segments from video.
6461
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/FlightSimulator.mp4`.
6562
---
@@ -96,7 +93,7 @@ Operation-Location: {endpoint}/contentunderstanding/analyzerResults/{resultId}?a
9693

9794
Use the `resultId` from the [`POST` response](#post-response) and retrieve the result of the analysis.
9895

99-
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
96+
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Foundry instance.
10097
2. Replace `{resultId}` with the `resultId` from the `POST` response.
10198

10299
#### GET request
@@ -348,7 +345,7 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
348345

349346
## Next steps
350347

351-
Learn more about [analyzers](../concepts/analyzer-templates.md) for your use case.
348+
Learn more about creating [custom analyzers](../tutorial/create-custom-analyzer.md) for your use case.
352349

353350

354351

articles/ai-services/content-understanding/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ items:
2626
- name: Glossary
2727
displayName: glossary, definition, updates, previews
2828
href: glossary.md
29-
- name: "AI Foundry: Content Understanding"
29+
- name: "AI Foundry portal"
3030
items:
3131
- name: Quickstart
3232
displayName: quickstart, extract, text, images, OCR, optical character recognition

articles/ai-services/content-understanding/tutorial/build-rag-solution.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,16 @@ This tutorial explains how to create a retrieval-augmented generation (RAG) solu
2727

2828
To get started, you need **An active Azure subscription**. If you don't have an Azure account, you can [create a free subscription](https://azure.microsoft.com/free/).
2929

30-
* Once you have your Azure subscription, create an [Azure AI Foundry resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesAIFoundry) in the Azure portal. This multi-service resource enables access to multiple Azure AI services with a single set of credentials.
30+
* Once you have your Azure subscription, create an [Azure AI Foundry resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesAIFoundry) in the Azure portal.
3131

3232
* This resource is listed under **AI Foundry** > **AI Foundry** in the portal.
3333

34-
> [!IMPORTANT]
35-
> Azure provides more than one resource type for Azure AI services. Make certain that you select the one listed under **AI Foundry** > **AI Foundry** as depicted in the following image. For more information, see [Create an Azure AI Foundry resource](../how-to/create-multi-service-resource.md).
36-
3734
:::image type="content" source="../media/overview/azure-multi-service-resource.png" alt-text="Screenshot of the multi-service resource page in the Azure portal.":::
3835

3936
* **Azure AI Search Resource:** Set up an [Azure AI Search resource](../../../search/search-create-service-portal.md) to enable indexing and retrieval of multimodal data.
4037
* **Azure OpenAI Chat Model Deployment:** Deploy an [Azure OpenAI chat model](../../openai/how-to/deployment-types.md) that enables conversational interactions.
4138
* **Embedding Model Deployment:** Ensure you have an embedding model deployed to generate vector representations for semantic search.
42-
* **API Version:** This tutorial uses the latest preview [API version](/rest/api/contentunderstanding/analyzers?view=rest-contentunderstanding-2024-12-01-preview&preview&preserve-view=true): `2024-12-01-preview`.
39+
* **API Version:** This tutorial uses the latest preview [API version](/rest/api/contentunderstanding/operation-groups?preserve-view=true).
4340
* **Python Environment:** Install [Python 3.11](https://www.python.org/downloads/) to execute the provided code samples and scripts.
4441
* This tutorial follows this sample code can be found in our [Python notebook](https://github.com/Azure-Samples/azure-ai-search-with-content-understanding-python#samples). Follow the [README](https://github.com/Azure-Samples/azure-ai-search-with-content-understanding-python/blob/main/README.md) to create essential resources, grant resources the right Access control(IAM) roles and install all packages needed for this tutorial.
4542
* The multimodal data used in this tutorial consists of documents, images, audio, and video. They're designed to guide you through the process of building a robust RAG solution with Azure AI Content Understanding.

articles/ai-services/content-understanding/tutorial/create-custom-analyzer.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ ms.date: 05/19/2025
1414

1515
Content Understanding analyzers define how to process and extract insights from your content. They ensure uniform processing and output structure across all your content to deliver reliable and predictable results. We offer [prebuilt analyzers](../concepts/prebuilt-analyzers.md) for common use cases. This guide shows how these analyzers can be customized to better fit your needs.
1616

17-
In this guide, we use the cURL command line tool. If it isn't installed, you can download the appropriate version for your dev environment:
18-
19-
* [Windows](https://curl.haxx.se/windows/)
20-
* [Mac or Linux](https://learn2torials.com/thread/how-to-install-curl-on-mac-or-linux-(ubuntu)-or-windows)
17+
In this guide, we use the cURL command line tool. If it isn't installed, you can [download](https://everything.curl.dev/install/index.html) the appropriate version for your dev environment.
2118

2219
## Define an analyzer schema
2320

@@ -222,25 +219,25 @@ Before running the cURL command, make the following changes to the HTTP request:
222219

223220
# [Document](#tab/document)
224221

225-
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
222+
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Foundry instance.
226223
1. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
227224
1. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/receipt.png`.
228225

229226
# [Image](#tab/image)
230227

231-
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
228+
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Foundry instance.
232229
1. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
233230
1. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/pieChart.jpg`.
234231

235232
# [Audio](#tab/audio)
236233

237-
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
234+
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Foundry instance.
238235
1. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
239236
1. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/audio.wav`.
240237

241238
# [Video](#tab/video)
242239

243-
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
240+
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Foundry instance.
244241
1. Replace `{analyzerId}` with the name of the custom analyzer created earlier.
245242
1. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze, such as a path to an Azure Storage Blob with a shared access signature (SAS) or the sample URL `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/FlightSimulator.mp4`.
246243

@@ -274,7 +271,7 @@ The `202 Accepted` response includes the `{resultId}` which you can use to track
274271

275272
### Get Analyze Result
276273

277-
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
274+
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Foundry instance.
278275
2. Replace `{resultId}` with the `resultId` in `POST` response.
279276

280277
#### GET Request

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ curl GET https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses/resp_12
929929
```python
930930
from openai import AzureOpenAI
931931
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
932+
from time import sleep
932933

933934
token_provider = get_bearer_token_provider(
934935
DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
@@ -947,7 +948,7 @@ response = client.responses.create(
947948
)
948949

949950
while response.status in {"queued", "in_progress"}:
950-
print(f"Current status: {resp.status}")
951+
print(f"Current status: {response.status}")
951952
sleep(2)
952953
response = client.responses.retrieve(response.id)
953954

@@ -1293,4 +1294,4 @@ For examples of how to use reasoning models with the responses API see the [reas
12931294

12941295
## Computer use
12951296

1296-
Computer use with Playwright has moved to the [dedicated computer use model guide](./computer-use.md#playwright-integration)
1297+
Computer use with Playwright has moved to the [dedicated computer use model guide](./computer-use.md#playwright-integration)

0 commit comments

Comments
 (0)