Skip to content

Commit 08736dd

Browse files
committed
Refresh articles
1 parent ac60ccf commit 08736dd

File tree

15 files changed

+45
-50
lines changed

15 files changed

+45
-50
lines changed
37.5 KB
Loading
73.3 KB
Loading
Binary file not shown.
Binary file not shown.
-86.1 KB
Loading
73.2 KB
Loading
Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
---
22
title: "Quickstart: Content Safety Studio"
33
titleSuffix: "Azure AI services"
4-
description: In this quickstart, get started with the Content Safety service using Content Safety Studio in your browser.
4+
description: Learn how to get started with the Content Safety service using Content Safety Studio in your browser.
55
#services: cognitive-services
66
author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.custom: build-2023, build-2023-dataai
1010
ms.topic: quickstart
11-
ms.date: 02/14/2024
11+
ms.date: 10/01/2024
1212
ms.author: pafarley
1313
---
1414

1515
# QuickStart: Azure AI Content Safety Studio
1616

17-
In this quickstart, get started with the Azure AI Content Safety service using Content Safety Studio in your browser.
17+
This article explains how you can get started with the Azure AI Content Safety service using Content Safety Studio in your browser.
1818

1919
> [!CAUTION]
20-
> Some of the sample content provided by Content Safety Studio may be offensive. Sample images are blurred by default. User discretion is advised.
20+
> Some of the sample content provided by Content Safety Studio might be offensive. Sample images are blurred by default. User discretion is advised.
2121
2222
## Prerequisites
2323

24-
* An active Azure account. If you don't have one, you can [create one for free](https://azure.microsoft.com/free/cognitive-services/).
24+
* An Azure account. If you don't have one, you can [create one for free](https://azure.microsoft.com/pricing/purchase-options/azure-account?icid=ai-services).
2525
* A [Content Safety](https://aka.ms/acs-create) Azure resource.
26-
* Assign `Cognitive Services User` role to your account. Go to the [Azure Portal](https://portal.azure.com/), navigate to your Content Safety resource or Azure AI Services resource, and select **Access Control** in the left navigation bar, then select **+ Add role assignment**, choose the `Cognitive Services User` role and select the member of your account that you need to assign this role to, then review and assign. It might take few minutes for the assignment to take effect.
27-
* Sign in to [Content Safety Studio](https://contentsafety.cognitive.azure.com) with your Azure subscription and Content Safety resource.
28-
29-
> [!IMPORTANT]
30-
> * You must assign the `Cognitive Services User` role to your Azure account to use the studio experience. Go to the [Azure Portal](https://portal.azure.com/), navigate to your Content Safety resource or Azure AI Services resource, and select **Access Control** in the left navigation bar, then select **+ Add role assignment**, choose the `Cognitive Services User` role and select the member of your account that you need to assign this role to, then review and assign. It might take few minutes for the assignment to take effect.
31-
26+
* Assign *Cognitive Services User* role to your account. Go to the [Azure portal](https://portal.azure.com/), navigate to your Content Safety resource or Azure AI Services resource, and select **Access Control** in the left navigation bar, then select **+ Add role assignment**, choose the *Cognitive Services User* role and select the member of your account that you need to assign this role to, then review and assign. It might take a few minutes for the assignment to take effect.
27+
* Sign in to [Content Safety Studio](https://contentsafety.cognitive.azure.com) with your Azure subscription and Content Safety resource.
3228

3329
## Analyze text content
34-
The [Moderate text content](https://contentsafety.cognitive.azure.com/text) page provides capability for you to quickly try out text moderation.
3530

36-
:::image type="content" source="media/analyzetext.png" alt-text="Screenshot of Analyze Text panel.":::
31+
The [Moderate text content](https://contentsafety.cognitive.azure.com/text) page provides the capability for you to quickly try out text moderation.
32+
33+
:::image type="content" source="media/analyze-text.png" alt-text="Screenshot of Analyze Text panel.":::
3734

3835
1. Select the **Moderate text content** panel.
3936
1. Add text to the input field, or select sample text from the panels on the page.
@@ -43,15 +40,15 @@ The [Moderate text content](https://contentsafety.cognitive.azure.com/text) page
4340
> See [Input requirements](./overview.md#input-requirements) for maximum text length limitations.
4441
1. Select **Run test**.
4542

46-
The service returns all the categories that were detected, with the severity level for each(0-Safe, 2-Low, 4-Medium, 6-High). It also returns a binary **Accepted**/**Rejected** result, based on the filters you configure. Use the matrix in the **Configure filters** tab on the right to set your allowed/prohibited severity levels for each category. Then you can run the text again to see how the filter works.
43+
The service returns all the categories that were detected, with the severity level for each: 0-Safe, 2-Low, 4-Medium, 6-High. It also returns a binary **Accepted**/**Rejected** result, based on the filters you configure. Use the matrix in the **Configure filters** tab to set your allowed/prohibited severity levels for each category. Then you can run the text again to see how the filter works.
4744

48-
The **Use blocklist** tab on the right lets you create, edit, and add a blocklist to the moderation workflow. If you have a blocklist enabled when you run the test, you get a **Blocklist detection** panel under **Results**. It reports any matches with the blocklist.
45+
The **Use blocklist** tab lets you create, edit, and add a blocklist to the moderation workflow. If you have a blocklist enabled when you run the test, you get a **Blocklist detection** panel under **Results**. It reports any matches with the blocklist.
4946

5047
## Detect user input attacks
5148

5249
The **Prompt Shields** panel lets you try out user input risk detection. Detect User Prompts designed to provoke the Generative AI model into exhibiting behaviors it was trained to avoid or break the rules set in the System Message. These attacks can vary from intricate role-play to subtle subversion of the safety objective.
5350

54-
:::image type="content" source="media/jailbreak-panel.png" alt-text="Screenshot of content safety studio with user input risk detection panel selected.":::
51+
:::image type="content" source="media/prompt-shields.png" alt-text="Screenshot of content safety studio with Prompt Shields panel selected.":::
5552

5653
1. Select the **Prompt Shields** panel.
5754
1. Select a sample text on the page, or input your own content for testing. You can also upload a CSV file to do a batch test.
@@ -62,25 +59,26 @@ The service returns the risk flag and type for each sample.
6259
For more information, see the [Prompt Shields conceptual guide](./concepts/jailbreak-detection.md).
6360

6461
## Analyze image content
62+
6563
The [Moderate image content](https://contentsafety.cognitive.azure.com/image) page provides capability for you to quickly try out image moderation.
6664

67-
:::image type="content" source="media/analyzeimage.png" alt-text="Screenshot of Analyze Image panel.":::
65+
:::image type="content" source="media/analyze-image.png" alt-text="Screenshot of Analyze Image panel.":::
6866

6967
1. Select the **Moderate image content** panel.
7068
1. Select a sample image from the panels on the page, or upload your own image. The maximum size for image submissions is 4 MB, and image dimensions must be between 50 x 50 pixels and 2,048 x 2,048 pixels. Images can be in JPEG, PNG, GIF, BMP, TIFF, or WEBP formats.
7169
1. Select **Run test**.
7270

73-
The service returns all the categories that were detected, with the severity level for each(0-Safe, 2-Low, 4-Medium, 6-High). It also returns a binary **Accepted**/**Rejected** result, based on the filters you configure. Use the matrix in the **Configure filters** tab on the right to set your allowed/prohibited severity levels for each category. Then you can run the text again to see how the filter works.
71+
The service returns all the categories that were detected, with the severity level for each: 0-Safe, 2-Low, 4-Medium, 6-High. It also returns a binary **Accepted**/**Rejected** result, based on the filters you configure. Use the matrix in the **Configure filters** tab on the right to set your allowed/prohibited severity levels for each category. Then you can run the text again to see how the filter works.
7472

7573
## View and export code
76-
You can use the **View Code** feature in both *Analyze text content* or *Analyze image content* page to view and copy the sample code, which includes configuration for severity filtering, blocklists, and moderation functions. You can then deploy the code on your end.
7774

78-
:::image type="content" source="media/viewcode.png" alt-text="Screenshot of the View code.":::
75+
You can use the **View Code** feature in either the *Analyze text content* or *Analyze image content* pages to view and copy the sample code, which includes configuration for severity filtering, blocklists, and moderation functions. You can then deploy the code on your end.
7976

77+
:::image type="content" source="media/view-code.png" alt-text="Screenshot of the View code window.":::
8078

8179
## Monitor online activity
8280

83-
The [Monitor online activity](https://contentsafety.cognitive.azure.com/monitor) page lets you view your API usage and trends.
81+
The [Monitor online activity](https://contentsafety.cognitive.azure.com/monitor) panel lets you view your API usage and trends.
8482

8583
:::image type="content" source="media/monitor.png" alt-text="Screenshot of Monitoring panel.":::
8684

@@ -93,6 +91,7 @@ In the **Reject rate per category** chart, you can also adjust the severity thre
9391
You can also edit blocklists if you want to change some terms, based on the **Top 10 blocked terms** chart.
9492

9593
## Manage your resource
94+
9695
To view resource details such as name and pricing tier, select the **Settings** icon in the top-right corner of the Content Safety Studio home page and select the **Resource** tab. If you have other resources, you can switch resources here as well.
9796

9897
:::image type="content" source="media/manage-resource.png" alt-text="Screenshot of Manage Resource.":::
@@ -104,9 +103,9 @@ If you want to clean up and remove an Azure AI services resource, you can delete
104103
- [Azure portal](../multi-service-resource.md?pivots=azportal#clean-up-resources)
105104
- [Azure CLI](../multi-service-resource.md?pivots=azcli#clean-up-resources)
106105

107-
## Next steps
106+
## Next step
108107

109108
Next, get started using Azure AI Content Safety through the REST APIs or a client SDK, so you can seamlessly integrate the service into your application.
110109

111110
> [!div class="nextstepaction"]
112-
> [Quickstart: REST API and client SDKs](./quickstart-text.md)
111+
> [Quickstart: Analyze text content](./quickstart-text.md)

0 commit comments

Comments
 (0)