Skip to content

Commit 3c4c8f9

Browse files
authored
Merge pull request #3388 from laujan/disable-content-filtering
modify content filtering
2 parents b45a7dd + 33d6859 commit 3c4c8f9

File tree

3 files changed

+122
-7
lines changed

3 files changed

+122
-7
lines changed

articles/ai-services/content-understanding/overview.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: lajanuar
77
manager: nitinme
88
ms.service: azure-ai-content-understanding
99
ms.topic: overview
10-
ms.date: 02/19/2025
10+
ms.date: 03/06/2025
1111
ms.custom: ignite-2024-understanding-release
1212

1313
#customer intent: As a user, I want to learn more about Content Understanding solutions.
@@ -73,17 +73,20 @@ See [Quickstart](quickstart/use-ai-foundry.md) for more examples.
7373

7474

7575
## Responsible AI
76+
7677
Azure AI Content Understanding is designed to guard against processing harmful content, such as graphic violence and gore, hateful speech and bullying, exploitation, abuse, and more. For more information and a full list of prohibited content, *see* our [**Transparency note**](/legal/cognitive-services/content-understanding/transparency-note?toc=/azure/ai-services/content-understanding/toc.json&bc=/azure/ai-services/content-understanding/breadcrumb/toc.json) and our [**Code of Conduct**](https://aka.ms/AI-CoC).
7778

7879
### Modified Content Filtering
7980

80-
Azure AI Content Understanding now supports turning off content filtering for approved customers. The subscription IDs with approved modified content filtering impacts the Azure AI Content Understanding output.
81+
Content Understanding now supports modified content filtering for approved customers. The subscription IDs with approved modified content filtering impacts Content Understanding output. By default, Content Understanding employs a content filtering system that identifies specific risk categories for potentially harmful content in both submitted prompts and generated outputs. Modified content filtering allows the system to annotate rather than block potentially harmful output, giving you the ability to determine how to handle potentially harmful content. For more information on content filter types, *see* [Content filtering: filter types](../openai/concepts/content-filter.md#content-filter-types).
8182

8283
> [!IMPORTANT]
8384
>
8485
> * Apply for modified content filters via this form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
8586
> * For more information, *see* [**Content Filtering**](../openai/concepts/content-filter.md).
8687
88+
To learn more about how to add modified content filtering to your requests, *see* our [REST API quickstart](quickstart/use-rest-api.md#modified-content-filtering).
89+
8790
## Data privacy and security
8891
Developers using the Content Understanding service should review Microsoft's policies on customer data. For more information, visit our [**Data, protection and privacy**](https://www.microsoft.com/trust-center/privacy) page.
8992

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

Lines changed: 115 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ms.date: 11/19/2024
2222

2323
## Prerequisites
2424

25-
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/).
25+
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/).
2626

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

@@ -174,6 +174,118 @@ First, create a JSON file named `request_body.json` with the following content:
174174

175175
---
176176

177+
### Modified content filtering
178+
179+
* Customers, who are approved, can customize the Content Understanding default content filtering system. After modifications, the output filters will annotate content rather than block it, offering improved control over content filtering in the Content Understanding output.
180+
181+
* To request approval for modified content filtering, complete the following form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
182+
183+
* Once approved, create or update your `request_body.json` file to include the `"disableContentFiltering": true` property.
184+
185+
# [Document](#tab/document)
186+
187+
Here's a document modality code sample using the`"disableContentFiltering": true` property:
188+
189+
```json
190+
{
191+
"description": "Sample invoice analyzer",
192+
"scenario": "document",
193+
"config": {
194+
195+
"disableContentFiltering": true,
196+
197+
"enableFace": true,
198+
"returnDetails": true,
199+
},
200+
"fieldSchema": {
201+
202+
<insert your schema here>
203+
204+
}
205+
}
206+
207+
```
208+
209+
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
210+
211+
# [Image](#tab/image)
212+
213+
Here's an image modality code sample using the`"disableContentFiltering": true` property:
214+
215+
```json
216+
{
217+
"description": "Sample chart analyzer",
218+
"scenario": "image",
219+
"config": {
220+
221+
"disableContentFiltering": true,
222+
223+
"returnDetails": true,
224+
},
225+
"fieldSchema": {
226+
227+
<insert your schema here>
228+
229+
}
230+
}
231+
232+
```
233+
234+
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
235+
236+
# [Audio](#tab/audio)
237+
238+
Here's an audio modality code sample using the`"disableContentFiltering": true` property:
239+
240+
```json
241+
{
242+
"description": "Sample call transcript analyzer",
243+
"scenario": "callCenter",
244+
"config": {
245+
246+
"disableContentFiltering": true,
247+
248+
"returnDetails": true,
249+
"locales": ["en-US"]
250+
},
251+
"fieldSchema": {
252+
253+
<insert your schema here>
254+
255+
}
256+
}
257+
258+
```
259+
260+
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
261+
262+
263+
# [Video](#tab/video)
264+
265+
Here's a video modality code sample using the`"disableContentFiltering": true` property:
266+
267+
```json
268+
{
269+
"description": "Sample marketing video analyzer",
270+
"scenario": "videoShot",
271+
"config": {
272+
273+
"disableContentFiltering": true,
274+
275+
},
276+
"fieldSchema": {
277+
278+
<insert your schema here>
279+
280+
}
281+
}
282+
283+
```
284+
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
285+
286+
---
287+
288+
177289
Before running the following `cURL` commands, make the following changes to the HTTP request:
178290

179291
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.
@@ -540,8 +652,8 @@ The 200 (`OK`) JSON response includes a `status` field indicating the status of
540652

541653
---
542654

543-
## Next steps
655+
## Next steps
544656

545-
* In this quickstart, you learned how to call the [REST API](/rest/api/contentunderstanding/operation-groups?view=rest-contentunderstanding-2024-12-01-preview&preserve-view=true) to create a custom analyzer. For a user experience, try [**Azure AI Foundry portal**](https://ai.azure.com/).
657+
* In this quickstart, you learned how to call the [REST API](/rest/api/contentunderstanding/operation-groups?view=rest-contentunderstanding-2024-12-01-preview&preserve-view=true) to create a custom analyzer. For a user experience, try [**Azure AI Foundry portal**](https://ai.azure.com/).
546658

547659

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ items:
55
expanded: true
66
items:
77
- name: What is Azure AI Content Understanding?
8-
displayName: document, text, images, video, audio, multimodal, visual, structured, content, field, extraction
8+
displayName: document, text, images, video, audio, multimodal, visual, structured, content, field, extraction, content filtering, filter
99
href: overview.md
1010
- name: Create an Azure AI Services resource
1111
displayName: extract, text, images, OCR, optical character recognition
@@ -29,7 +29,7 @@ items:
2929
- name: Quickstarts
3030
items:
3131
- name: Content Understanding REST API
32-
displayName: quickstart, extract, text, images, OCR, optical character recognition
32+
displayName: quickstart, extract, text, images, OCR, optical character recognition, content filtering, filter
3333
href: quickstart/use-rest-api.md
3434
- name: Content Understanding Azure AI Foundry portal
3535
displayName: quickstart, extract, text, images, OCR, optical character recognition

0 commit comments

Comments
 (0)