You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/includes/create-content-filter.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.reviewer: pafarley
6
6
ms.author: pafarley
7
7
ms.service: azure-ai-foundry
8
8
ms.topic: include
9
-
ms.date: 11/25/2024
9
+
ms.date: 03/05/2025
10
10
ms.custom: include
11
11
---
12
12
@@ -74,3 +74,5 @@ Follow these steps to apply a content filter to a deployment:
74
74
75
75
Now, you can go to the playground to test whether the content filter works as expected.
76
76
77
+
> [!TIP]
78
+
> 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).
Copy file name to clipboardExpand all lines: articles/ai-services/openai/how-to/content-filters.md
+41-4Lines changed: 41 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
-
title: 'Use content filters (preview) with Azure AI Foundry'
2
+
title: 'Use content filters (preview)'
3
3
titleSuffix: Azure OpenAI
4
4
description: Learn how to use and configure the content filters that come with Azure AI Foundry, including getting approval for gated modifications.
5
5
#services: cognitive-services
6
6
manager: nitinme
7
7
ms.service: azure-ai-openai
8
8
ms.topic: how-to
9
-
ms.date: 12/05/2024
9
+
ms.date: 03/05/2025
10
10
author: mrbullwinkle
11
11
ms.author: mbullwin
12
12
recommendations: false
13
13
ms.custom: FY25Q1-Linter
14
14
# customer intent: As a developer, I want to learn how to configure content filters with Azure AI Foundry so that I can ensure that my applications comply with our Code of Conduct.
15
15
---
16
16
17
-
# How to configure content filters with Azure AI Foundry
17
+
# How to configure content filters
18
18
19
19
The content filtering system integrated into Azure AI Foundry runs alongside the core models, including DALL-E image generation models. It uses an ensemble of multi-class classification models to detect four categories of harmful content (violence, hate, sexual, and self-harm) at four severity levels respectively (safe, low, medium, and high), and optional binary classifiers for detecting jailbreak risk, existing text, and code in public repositories.
20
20
@@ -45,10 +45,46 @@ You can configure the following filter categories in addition to the default har
45
45
|Prompt Shields for indirect attacks | GA| Off | User prompt | Filter / annotate Indirect Attacks, also referred to as Indirect Prompt Attacks or Cross-Domain Prompt Injection Attacks, a potential vulnerability where third parties place malicious instructions inside of documents that the generative AI system can access and process. Requires: [Document embedding and formatting](/azure/ai-services/openai/concepts/content-filter?tabs=warning%2Cuser-prompt%2Cpython-new#embedding-documents-in-your-prompt). |
46
46
| Protected material - code |GA| On | Completion | Filters protected code or gets the example citation and license information in annotations for code snippets that match any public code sources, powered by GitHub Copilot. For more information about consuming annotations, see the [content filtering concepts guide](/azure/ai-services/openai/concepts/content-filter#annotations-preview)|
47
47
| Protected material - text | GA| On | Completion | Identifies and blocks known text content from being displayed in the model output (for example, song lyrics, recipes, and selected web content). |
48
-
| Groundedness*| Preview |Off | Completion |Detects whether the text responses of large language models (LLMs) are grounded in the source materials provided by the users. Ungroundedness refers to instances where the LLMs produce information that is non-factual or inaccurate from what was present in the source materials. Requires: [Document embedding and formatting](/azure/ai-services/openai/concepts/content-filter?tabs=warning%2Cuser-prompt%2Cpython-new#embedding-documents-in-your-prompt).|
48
+
| Groundedness | Preview |Off | Completion |Detects whether the text responses of large language models (LLMs) are grounded in the source materials provided by the users. Ungroundedness refers to instances where the LLMs produce information that is non-factual or inaccurate from what was present in the source materials. Requires: [Document embedding and formatting](/azure/ai-services/openai/concepts/content-filter?tabs=warning%2Cuser-prompt%2Cpython-new#embedding-documents-in-your-prompt).|
## Specify a content filtering configuration at request time (preview)
53
+
54
+
In addition to the deployment-level content filtering configuration, we also provide a request header that allows you specify your custom configuration at request time for every API call.
"content": "Write a poem about the beauty of nature."
71
+
}
72
+
]
73
+
}'
74
+
```
75
+
76
+
The request-level content filtering configuration will override the deployment-level configuration, for the specific API call. If a configuration is specified that does not exist, the following error message will be returned.
77
+
78
+
```json
79
+
{
80
+
"error":
81
+
{
82
+
"code": "InvalidContentFilterPolicy",
83
+
"message": "Your request contains invalid content filter policy. Please provide a valid policy."
84
+
}
85
+
}
86
+
```
87
+
52
88
## Report content filtering feedback
53
89
54
90
If you are encountering a content filtering issue, select the **Filters Feedback** button at the top of the playground. This is enabled in the **Images, Chat, and Completions** playground once you submit a prompt.
@@ -66,3 +102,4 @@ We recommend informing your content filtering configuration decisions through an
66
102
- Learn more about Responsible AI practices for Azure OpenAI: [Overview of Responsible AI practices for Azure OpenAI models](/legal/cognitive-services/openai/overview?context=/azure/ai-services/openai/context/context).
67
103
- Read more about [content filtering categories and severity levels](../concepts/content-filter.md) with Azure AI Foundry.
68
104
- Learn more about red teaming from our: [Introduction to red teaming large language models (LLMs) article](../concepts/red-teaming.md).
105
+
- Learn how to [configure content filters using the API](/rest/api/aiservices/accountmanagement/rai-policies/create-or-update)
Copy file name to clipboardExpand all lines: articles/ai-services/openai/whats-new.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,20 @@ ms.custom:
11
11
- references_regions
12
12
- ignite-2024
13
13
ms.topic: whats-new
14
-
ms.date: 2/27/2025
14
+
ms.date: 03/05/2025
15
15
recommendations: false
16
16
---
17
17
18
18
# What's new in Azure OpenAI Service
19
19
20
20
This article provides a summary of the latest releases and major documentation updates for Azure OpenAI Service.
21
21
22
+
## March 2025
23
+
24
+
### Specify content filtering configurations
25
+
26
+
In addition to the deployment-level content filtering configuration, we now also provide a request header that allows you specify your custom configuration at request time for every API call. For more information, see [Use content filters (preview)](./how-to/content-filters.md#specify-a-content-filtering-configuration-at-request-time-preview).
0 commit comments