Skip to content

Commit d8d674c

Browse files
committed
disable content filtering
1 parent a7f0e1b commit d8d674c

File tree

2 files changed

+90
-95
lines changed

2 files changed

+90
-95
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ See [Quickstart](quickstart/use-ai-foundry.md) for more examples.
7878

7979
### Modified Content Filtering
8080

81-
Azure AI Content Understanding now supports disabling content filtering for approved customers. The subscription IDs with approved modified content filtering impacts the Azure AI 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. If content is flagged with a high severity level, indicating a significant potential for harm, the output is blocked. For more information on risk categories, *see* [Content filtering: risk categories](../openai/concepts/content-filter.md#risk-categories).
81+
Azure AI Content Understanding now supports modifying the content filtering system for approved customers. The subscription IDs with approved modified content filtering impacts the Azure AI 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. By modifying the content filtering setting, the system will annotate rather than block potentially harmful output allowing you to decide how potentially harmful content is handled. For more information on content filter types, *see* [Content filtering: filter types](../openai/concepts/content-filter.md#content-filter-types).
8282

8383
> [!IMPORTANT]
8484
>

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

Lines changed: 89 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -83,37 +83,6 @@ First, create a JSON file named `request_body.json` with the following content:
8383
}
8484
```
8585

86-
##### Content filtering
87-
88-
* Azure AI Content Understanding allows approved customers to disable content filtering.
89-
90-
* To request modified content filtering, complete the following form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
91-
92-
* Once approved, create or update your `request_body.json` file to include the `"disableContentFiltering": true` property. Here is an example:
93-
94-
```json
95-
{
96-
"description": "Sample invoice analyzer",
97-
"scenario": "document",
98-
"config": {
99-
100-
"disableContentFiltering": true,
101-
102-
"enableFace": true,
103-
"returnDetails": true,
104-
},
105-
"fieldSchema": {
106-
107-
<insert your schema here>
108-
109-
}
110-
}
111-
112-
```
113-
114-
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
115-
116-
11786
# [Image](#tab/image)
11887

11988
To create a custom analyzer, you need to define a field schema that describes the structured data you want to extract. In the following example, we define a schema for identifying detects in images of metal plates.
@@ -138,35 +107,6 @@ First, create a JSON file named `request_body.json` with the following content:
138107
}
139108
```
140109

141-
##### Content filtering
142-
143-
* Azure AI Content Understanding allows approved customers to disable content filtering.
144-
145-
* To request modified content filtering, complete the following form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
146-
147-
* Once approved, create or update your `request_body.json` file to include the `"disableContentFiltering": true` property. Here is an example:
148-
149-
```json
150-
{
151-
"description": "Sample chart analyzer",
152-
"scenario": "image",
153-
"config": {
154-
155-
"disableContentFiltering": true,
156-
157-
"returnDetails": true,
158-
},
159-
"fieldSchema": {
160-
161-
<insert your schema here>
162-
163-
}
164-
}
165-
166-
```
167-
168-
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
169-
170110
# [Audio](#tab/audio)
171111

172112
To create a custom analyzer, you need to define a field schema that describes the structured data you want to extract. In the following example, we define a schema for extracting basic information from call transcripts.
@@ -207,27 +147,83 @@ First, create a JSON file named `request_body.json` with the following content:
207147
}
208148
```
209149

210-
##### Content filtering
150+
# [Video](#tab/video)
151+
152+
To create a custom analyzer, you need to define a field schema that describes the structured data you want to extract. In the following example, we define a schema for extracting basic information from marketing videos.
153+
154+
First, create a JSON file named `request_body.json` with the following content:
155+
```json
156+
{
157+
"description": "Sample marketing video analyzer",
158+
"scenario": "videoShot",
159+
"fieldSchema": {
160+
"fields": {
161+
"Description": {
162+
"type": "string",
163+
"description": "Detailed summary of the video segment, focusing on product characteristics, lighting, and color palette."
164+
},
165+
"Sentiment": {
166+
"type": "string",
167+
"method": "classify",
168+
"enum": [ "Positive", "Neutral", "Negative" ]
169+
}
170+
}
171+
}
172+
}
173+
```
174+
175+
---
211176

212-
* Azure AI Content Understanding allows approved customers to disable content filtering.
177+
### Modified content filtering
213178

214-
* To request modified content filtering, complete the following form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
179+
* Approved Azure AI Content Understanding customers can modify the default content filtering system. Once modified, the output filters annotate content instead of blocking it providing enhanced control over content filtering in the Content Understanding output.
215180

216-
* Once approved, create or update your `request_body.json` file to include the `"disableContentFiltering": true` property. Here is an example:
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:
217188

218189
```json
219190
{
220-
"description": "Sample call transcript analyzer",
221-
"scenario": "callCenter",
191+
"description": "Sample invoice analyzer",
192+
"scenario": "document",
222193
"config": {
223194

224195
"disableContentFiltering": true,
225196

197+
"enableFace": true,
226198
"returnDetails": true,
227-
"locales": ["en-US"]
228199
},
229200
"fieldSchema": {
230201

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+
231227
<insert your schema here>
232228

233229
}
@@ -237,37 +233,36 @@ First, create a JSON file named `request_body.json` with the following content:
237233

238234
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
239235

240-
# [Video](#tab/video)
236+
# [Audio](#tab/audio)
241237

242-
To create a custom analyzer, you need to define a field schema that describes the structured data you want to extract. In the following example, we define a schema for extracting basic information from marketing videos.
238+
Here's an audio modality code sample using the`"disableContentFiltering": true` property:
243239

244-
First, create a JSON file named `request_body.json` with the following content:
245-
```json
246-
{
247-
"description": "Sample marketing video analyzer",
248-
"scenario": "videoShot",
249-
"fieldSchema": {
250-
"fields": {
251-
"Description": {
252-
"type": "string",
253-
"description": "Detailed summary of the video segment, focusing on product characteristics, lighting, and color palette."
254-
},
255-
"Sentiment": {
256-
"type": "string",
257-
"method": "classify",
258-
"enum": [ "Positive", "Neutral", "Negative" ]
259-
}
260-
}
261-
}
262-
}
263-
```
264-
##### Content filtering
240+
```json
241+
{
242+
"description": "Sample call transcript analyzer",
243+
"scenario": "callCenter",
244+
"config": {
265245

266-
* Azure AI Content Understanding allows approved customers to disable content filtering.
246+
"disableContentFiltering": true,
247+
248+
"returnDetails": true,
249+
"locales": ["en-US"]
250+
},
251+
"fieldSchema": {
267252

268-
* To request modified content filtering, complete the following form: [Azure OpenAI Limited Access Review: Modified Content Filters](https://ncv.microsoft.com/uEfCgnITdR).
253+
<insert your schema here>
269254

270-
* Once approved, create or update your `request_body.json` file to include the `"disableContentFiltering": true` property. Here is an example:
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:
271266

272267
```json
273268
{
@@ -286,11 +281,11 @@ First, create a JSON file named `request_body.json` with the following content:
286281
}
287282

288283
```
289-
290284
For more information, *see* [**Content Filtering**](../../openai/concepts/content-filter.md).
291285

292286
---
293287

288+
294289
Before running the following `cURL` commands, make the following changes to the HTTP request:
295290

296291
1. Replace `{endpoint}` and `{key}` with the endpoint and key values from your Azure portal Azure AI Services instance.

0 commit comments

Comments
 (0)