Skip to content

Commit be2f268

Browse files
committed
consaf freshness
1 parent c513591 commit be2f268

File tree

6 files changed

+31
-26
lines changed

6 files changed

+31
-26
lines changed

articles/ai-services/content-safety/concepts/custom-categories.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.custom: build-2024
1010
ms.topic: conceptual
11-
ms.date: 07/05/2024
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
1313
---
1414

1515
# Custom categories (preview)
1616

17-
Azure AI Content Safety lets you create and manage your own content moderation categories for enhanced moderation and filtering that matches your specific policies or use cases.
17+
Azure AI Content Safety lets you create and manage your own content categories for enhanced moderation and filtering that matches your specific policies or use cases.
1818

1919
## Types of customization
2020

21-
There are multiple ways to define and use custom categories, which are detailed and compared in this section.
21+
There are multiple methods for defining and using custom categories, detailed and compared in this section.
2222

2323
| API | Functionality |
2424
| :--------- | :------------ |
@@ -39,19 +39,19 @@ The Custom categories (rapid) API is designed to be quicker and more flexible th
3939

4040
An incident may involve a set of emerging content patterns (text, image, or other modalities) that violate Microsoft community guidelines or the customers' own policies and expectations. These incidents need to be mitigated quickly and accurately to avoid potential live site issues or harm to users and communities.
4141

42-
This implementation works on text content and image content.
42+
This implementation works on both text content and image content.
4343

4444
> [!TIP]
45-
> One way to deal with emerging content incidents is to use [Blocklists](/azure/ai-services/content-safety/how-to/use-blocklist), but that only allows exact text matching and no image matching. The Custom categories (rapid) API offers the following advanced capabilities:
46-
- semantic text matching using embedding search with a lightweight classifier
47-
- image matching with a lightweight object-tracking model and embedding search.
45+
> Another to deal with emerging content incidents is to use [Blocklists](/azure/ai-services/content-safety/how-to/use-blocklist), but that only allows exact text matching and no image matching. The Custom categories (rapid) API offers the following advanced capabilities:
46+
> - semantic text matching using embedding search with a lightweight classifier
47+
> - image matching with a lightweight object-tracking model and embedding search.
4848
4949

5050
## How it works
5151

5252
### [Custom categories (standard) API](#tab/standard)
5353

54-
The Azure AI Content Safety custom categories feature uses a multi-step process for creating, training, and using custom content classification models. Here's a look at the workflow:
54+
The Azure AI Content Safety custom categories feature uses a multi-step process for creating, training, and using custom content classification models. Here's the workflow:
5555

5656
### Step 1: Definition and setup
5757

@@ -63,7 +63,7 @@ Then, you collect a balanced dataset with **positive** and (optionally) **negati
6363

6464
After you prepare your dataset and define categories, the Azure AI Content Safety service trains a new machine learning model. This model uses your definitions and uploaded dataset to perform data augmentation using a large language model. As a result, the training dataset is made larger and of higher quality. During training, the AI model analyzes the data and learns to differentiate between content that aligns with the specified category and content that does not.
6565

66-
### Step 3: Model inferencing
66+
### Step 3: Model evaluation
6767

6868
After training, you need to evaluate the model to ensure it meets your accuracy requirements. Test the model with new content that it hasn't received before. The evaluation phase helps you identify any potential adjustments you need to make deploying the model into a production environment.
6969

@@ -118,12 +118,14 @@ See the following table for the input limitations of the custom categories (rapi
118118
| Maximum number of text or image incidents per resource| 100 |
119119
| Supported Image formats | BMP, GIF, JPEG, PNG, TIF, WEBP |
120120

121+
---
122+
121123
### Region availability
122124

123125
To use these APIs, you must create your Azure AI Content Safety resource in one of the supported regions. See [Region availability](../overview.md#region-availability).
124126

125127

126-
## Next steps
128+
## Next step
127129

128130
Follow a how-to guide to use the Azure AI Content Safety APIs to create custom categories.
129131

articles/ai-services/content-safety/concepts/protected-material.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.topic: conceptual
10-
ms.date: 06/24/2024
10+
ms.date: 01/22/2025
1111
ms.author: pafarley
1212
keywords:
1313
---
1414

1515

1616
# Protected material detection
1717

18+
The Protected material detection APIs scan the output of large language models to identify and flag known protected material. The APIs are designed to help organizations prevent the generation of content that closely matches copyrighted text or code.
19+
1820
The [Protected material text API](../quickstart-protected-material.md) flags known text content (for example, song lyrics, articles, recipes, and selected web content) that might be output by large language models.
1921

2022
The [Protected material code API](../quickstart-protected-material-code.md) flags protected code content (from known GitHub repositories, including software libraries, source code, algorithms, and other proprietary programming content) that might be output by large language models.
@@ -107,7 +109,7 @@ Refer to this table for details of the major categories of protected material te
107109
| Lyrics | Only focuses on issues of copyrighted content around Songs. <br><br> Other harmful or sensitive text is out of scope for this task, unless it intersects Songs IP Copyright harm. | <ul><li>Links to web pages that contain information about songs such as:<ul><li>Lyrics of the songs</li><li>Chords or tabs of the associated music</li><li>Analysis or reviews of the song/music</li></ul></li><li>Links to authorized web pages that contain embedded audio/video players as long as:<ul><li>They have legitimate permissions</li><li>They have licensed music</li><li>They are authorized streaming platforms</li><li>They are official YouTube channels</li></ul></li><li>Short excerpts or snippets from lyrics of the songs as long as:<ul><li>They are relevant to the user's query</li><li>They are not a substantial part of the lyrics</li><li>They are not the entire lyrics</li><li>They are not more than 11 words long</li></ul></li><li>Short excerpts or snippets from chords/tabs of the songs as long as:<ul><li>They are relevant to the user's query</li><li>They are not a substantial part of the chords/tabs</li><li>They are not the entire chords/tabs</li></ul></li><li>Any content from songs that have no IP/Copyright protections:<ul><li>Songs/Lyrics/Chords/Tabs that are in the public domain</li><li>Songs/Lyrics/Chords/Tabs for which Copyright protection has elapsed, been surrendered, or never existed</li></ul></li><li>Rejection or refusal to provide copyrighted content:<ul><li>Changing topic to avoid sharing copyrighted content</li><li>Refusal to share copyrighted content</li><li>Providing nonresponsive information</li></ul></li></ul> | <ul><li>Lyrics of a song<ul><li>Entire lyrics</li><li>Substantial part of the lyrics</li><li>Part of lyrics that contain more than 11 words</li></ul></li><li>Chords or Tabs of a song<ul><li>Entire chords/tabs</li><li>Substantial part of the chords/tabs</li></ul></li><li>Links to webpages that contain embedded audio/video players that:<ul><li>Do not have legitimate permissions</li><li>Do not have licensed music</li><li>Are not authorized streaming platforms</li><li>Are not official YouTube channels</li></ul></li><li>Methods to access copyrighted content:<ul><li>Steps to download songs from an unauthorized website</li><li>Ways to bypass paywalls or DRM protections to access copyrighted songs or videos</li></ul></li></ul> |
108110

109111

110-
## Next steps
112+
## Next step
111113

112114
Follow the quickstart to get started using Azure AI Content Safety to detect protected material.
113115

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
---
22
title: "Content Safety error codes"
33
titleSuffix: Azure AI services
4-
description: See the possible error codes for the Azure AI Content Safety APIs.
4+
description: See the possible error codes and their corresponding suggestions for the Azure AI Content Safety APIs.
55
#services: cognitive-services
66
author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.custom: build-2023
1010
ms.topic: conceptual
11-
ms.date: 03/07/2024
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
1313
---
1414

1515
# Azure AI Content Safety error codes
1616

17-
The content APIs may return the following error codes:
17+
The content APIs might return the following error codes:
1818

1919
| Error Code | Possible reasons | Suggestions |
2020
| ---------- | ------- | -------------------- |
21-
| InvalidRequestBody | One or more fields in the request body do not match the API definition. | Check the API version you specified in the API call. <br/>Check the corresponding API definition for the API version you selected. |
22-
| InvalidResourceName | The resource name you specified in the URL does not meet the requirements, like the blocklist name, blocklist term ID, etc. | Check the API version you specified in the API call. <br/>Check whether the given name has invalid characters according to the API definition. |
23-
| ResourceNotFound | The resource you specified in the URL may not exist, like the blocklist name. | Check the API version you specified in the API call. <br/>Double check the existence of the resource specified in the URL. |
24-
| InternalError | Some unexpected situations on the server side have been triggered. | You might want to retry a few times after a small period and see it the issue happens again. <br/> Contact Azure Support if this issue persists. |
21+
| InvalidRequestBody | One or more fields in the request body don't match the API definition. | Check the API version you specified in the API call. <br/>Check the corresponding API definition for the API version you selected. |
22+
| InvalidResourceName | The resource name you specified in the URL doesn't meet the requirements, like the blocklist name, blocklist term ID, etc. | Check the API version you specified in the API call. <br/>Check whether the given name has invalid characters according to the API definition. |
23+
| ResourceNotFound | The resource you specified in the URL might not exist, like the blocklist name. | Check the API version you specified in the API call. <br/>Double check the existence of the resource specified in the URL. |
24+
| InternalError | Some unexpected situations on the server side were triggered. | You might want to retry a few times after a small period and see it the issue happens again. <br/> Contact Azure Support if this issue persists. |
2525
| ServerBusy | The server side cannot process the request temporarily. | You might want to retry a few times after a small period and see it the issue happens again. <br/>Contact Azure Support if this issue persists. |
26-
| TooManyRequests | The current RPS has exceeded the quota for your current SKU. | Check the pricing table to understand the RPS quota. <br/>Contact Azure Support if you need more QPS. |
26+
| TooManyRequests | The current requests-per-second has exceeded the quota for your current tier. | Check the pricing table to understand the RPS quota. <br/>Contact Azure Support if you need more QPS. |
2727

2828

2929
## Azure AI Foundry error messages
3030

31-
If you encounter the error **Your account does not have access to this resource, please contact your resource owner to get access**, please ensure your account is assigned the role of `Cognitive Services User` for the Content Safety resource or Azure AI Services resource you are using.
31+
If you encounter the error `Your account does not have access to this resource, please contact your resource owner to get access`, ensure your account is assigned the role of `Cognitive Services User` for the Content Safety resource or Azure AI Services resource you're using.
3232

articles/ai-services/content-safety/how-to/use-blocklist.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.custom: build-2023
1010
ms.topic: how-to
11-
ms.date: 06/01/2024
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
13+
#customer intent: As a developer, I want to use blocklists for text moderation so that I can customize content filtering.
1314
---
1415

1516

articles/ai-services/content-safety/quickstart-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.custom: build-2023, devx-track-python, devx-track-dotnet, devx-track-extended-java, devx-track-js
1010
ms.topic: quickstart
11-
ms.date: 03/06/2024
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
1313
zone_pivot_groups: programming-languages-content-safety
1414
---
@@ -19,7 +19,7 @@ Get started with the Content Studio, REST API, or client SDKs to do basic image
1919

2020
For more information on image moderation, see the [Harm categories concept page](./concepts/harm-categories.md). For API input limits, see the [Input requirements](./overview.md#input-requirements) section of the Overview.
2121

22-
> [!NOTE]
22+
> [!CAUTION]
2323
>
2424
> The sample data and code may contain offensive content. User discretion is advised.
2525

articles/ai-services/content-safety/quickstart-text.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: azure-ai-content-safety
99
ms.custom: build-2023, devx-track-python, devx-track-dotnet, devx-track-extended-java, devx-track-js
1010
ms.topic: quickstart
11-
ms.date: 06/01/2024
11+
ms.date: 01/22/2025
1212
ms.author: pafarley
1313
zone_pivot_groups: programming-languages-content-safety
1414
---
@@ -20,7 +20,7 @@ Get started with the Content Safety Studio, REST API, or client SDKs to do basic
2020
For more information on text moderation, see the [Harm categories concept page](./concepts/harm-categories.md). For API input limits, see the [Input requirements](./overview.md#input-requirements) section of the Overview.
2121

2222

23-
> [!NOTE]
23+
> [!CAUTION]
2424
>
2525
> The sample data and code may contain offensive content. User discretion is advised.
2626

0 commit comments

Comments
 (0)