Skip to content

Commit 10517bc

Browse files
committed
add include
1 parent 2929231 commit 10517bc

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

articles/ai-services/openai/how-to/content-filters.md

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -43,40 +43,7 @@ You can configure the following filter categories in addition to the default har
4343
| 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). |
4444
| 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).|
4545

46-
47-
48-
## Configure content filters with Azure AI Studio
49-
50-
The following steps show how to set up a customized content filtering configuration for your Azure OpenAI resource within AI Studio. For guidance with content filters in your Azure AI Studio project, you can read more at [Azure AI Studio content filtering](/azure/ai-studio/concepts/content-filtering).
51-
52-
1. Go to Azure AI Studio and navigate to the **Safety + security** page on the left menu.
53-
1. Proceed to the **Content filters** tab and create a new customized content filtering configuration.
54-
55-
This leads to the following configuration view, where you can choose a name for the custom content filtering configuration. After entering a name, you can configure the **input filters** (for user prompts) and **output filters** (for model completion).
56-
57-
:::image type="content" source="../media/content-filters/input-filter.png" alt-text="Screenshot of input filter screen.":::
58-
59-
:::image type="content" source="../media/content-filters/output-filter.png" alt-text="Screenshot of output filter screen.":::
60-
61-
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.
62-
63-
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.
64-
65-
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).
66-
67-
68-
1. You can create multiple content filtering configurations as per your requirements.
69-
70-
:::image type="content" source="../media/content-filters/multiple.png" alt-text="Screenshot of multiple content configurations in the Azure portal." lightbox="../media/content-filters/multiple.png":::
71-
72-
1. Next, to use a custom content filtering configuration, assign it to one or more deployments in your resource. To do this, go to the **Deployments** tab and select your deployment. Then select **Edit**.
73-
1. In the **Update deployment** window that appears, select your custom filter from the **Content filter** dropdown menu. Then select **Save and close** to apply the selected configuration to the deployment.
74-
75-
:::image type="content" source="../media/content-filters/select-filter.png" alt-text="Screenshot of edit deployment configuration with content filter selected." lightbox="../media/content-filters/select-filter.png":::
76-
77-
You can also edit and delete a content filter configuration if required.
78-
79-
Before you delete a content filtering configuration, you will need to unassign and replace it from any deployment in the **Deployments** tab.
46+
[!INCLUDE [create-content-filter](../../../ai-studio/includes/create-content-filter.md)]
8047

8148
## Report content filtering feedback
8249

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: include
1111
---
1212

1313

14-
## Create a content filter
14+
## Create a content filter in Azure AI Foundry
1515

1616
For any model deployment in [Azure AI Foundry](https://ai.azure.com), you can directly use the default content filter, but you might want to have more control. For example, you could make a filter stricter or more lenient, or enable more advanced capabilities like prompt shields and protected material detection.
1717

0 commit comments

Comments
 (0)