|
| 1 | +--- |
| 2 | +title: Use blocklists in AI Studio |
| 3 | +titleSuffix: Azure AI Studio |
| 4 | +description: Learn how to create custom blocklists in Azure AI Studio as part of your content filtering configurations. |
| 5 | +manager: nitinme |
| 6 | +ms.service: azure-ai-studio |
| 7 | +ms.custom: |
| 8 | + - ignite-2024 |
| 9 | +ms.topic: how-to |
| 10 | +ms.date: 11/07/2024 |
| 11 | +ms.author: pafarley |
| 12 | +author: PatrickFarley |
| 13 | +--- |
| 14 | + |
| 15 | + |
| 16 | +# Use blocklists in Azure AI Studio |
| 17 | + |
| 18 | +You can create custom blocklists in the Azure AI Studio as part of your content filtering configurations. The following steps show how to create custom blocklists as part of your content filters in Azure AI Studio. |
| 19 | + |
| 20 | +## Create a blocklist |
| 21 | + |
| 22 | +1. Go to [AI Studio](https://ai.azure.com/) and navigate to your project/hub. Then select the **Safety+ Security** page on the left nav and select the **Blocklists** tab. |
| 23 | + :::image type="content" source="../../media/content-safety/content-filter/select-blocklists.png" alt-text="Screenshot of the Blocklists page tab."::: |
| 24 | +1. Select **Create a blocklist**. Enter a name for your blocklist, add a description, and select an Azure OpenAI resource to connect it to. Then select **Create Blocklist**. |
| 25 | +1. Select your new blocklist once it's created. On the blocklist's page, select **Add new term**. |
| 26 | +1. Enter the term that should be filtered and select **Add term**. You can also use a regex. |
| 27 | + You can delete each term in your blocklist. |
| 28 | +1. Once the blocklist is ready, go back to the **Safety+ Security** page and select the **Content filters** tab. Create a new content filter configuration. This opens a wizard with several AI content safety components. |
| 29 | + :::image type="content" source="../../media/content-safety/content-filter/create-content-filter.png" alt-text="Screenshot of the Create content filter button."::: |
| 30 | +1. On the **Input filter** and **Output filter** screens, toggle the **Blocklist** button on. You can then select a blocklist from the list. |
| 31 | + There are two types of blocklists: the custom blocklists you created, and prebuilt blocklists that Microsoft provides—in this case a Profanity blocklist (English). |
| 32 | +1. You can now decide which of the available blocklists you want to include in your content filtering configuration. The last step is to review and finish the content filtering configuration by selecting **Next**. |
| 33 | + You can always go back and edit your configuration. Once it’s ready, select a **Create content filter**. The new configuration that includes your blocklists can now be applied to a deployment. |
0 commit comments