Skip to content

Commit 62500c4

Browse files
committed
point acs inputs limits to new limits list
1 parent 503427f commit 62500c4

10 files changed

+11
-13
lines changed

articles/ai-services/content-safety/concepts/groundedness.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Currently, the Groundedness detection API supports English language content. Whi
5151

5252
### Text length limitations
5353

54-
The maximum character limit for the grounding sources is 55,000 characters per API call, and for the text and query, it's 7,500 characters per API call. If your input (either text or grounding sources) exceeds these character limitations, you'll encounter an error.
54+
See [Input requirements](../overview.md#input-requirements) for maximum text length limitations.
5555

5656
### Regions
5757

articles/ai-services/content-safety/concepts/jailbreak-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Currently, the Prompt Shields API supports the English language. While our API d
7171

7272
### Text length limitations
7373

74-
The maximum character limit for Prompt Shields allows for a user prompt of up to 10,000 characters, while the document array is restricted to a maximum of 5 documents with a combined total not exceeding 10,000 characters.
74+
See [Input requirements](/azure/ai-services/content-safety/overview#input-requirements) for maximum text length limitations.
7575

7676
### Regions
7777

articles/ai-services/content-safety/includes/quickstarts/csharp-quickstart-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Replace `"Your input text"` with the text content you'd like to use.
123123
> [!TIP]
124124
> Text size and granularity
125125
>
126-
> The default maximum length for text submissions is **10K** characters.
126+
> See [Input requirements](../../overview.md#input-requirements) for maximum text length limitations.
127127
128128
#### [Visual Studio IDE](#tab/visual-studio)
129129

articles/ai-services/content-safety/includes/quickstarts/java-quickstart-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Open *ContentSafetyQuickstart.java* in your preferred editor or IDE and paste in
8181
> [!TIP]
8282
> Text size and granularity
8383
>
84-
> The default maximum length for text submissions is **10K** characters.
84+
> See [Input requirements](../../overview.md#input-requirements) for maximum text length limitations.
8585
8686
```Java
8787
import com.azure.ai.contentsafety.ContentSafetyClient;

articles/ai-services/content-safety/includes/quickstarts/javascript-quickstart-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Create a new file in your directory, *index.js*. Open it in your preferred edito
6060
> [!TIP]
6161
> Text size and granularity
6262
>
63-
> The default maximum length for text submissions is **10K** characters.
63+
> See [Input requirements](../../overview.md#input-requirements) for maximum text length limitations.
6464
6565
```JavaScript
6666
const ContentSafetyClient = require("@azure-rest/ai-content-safety").default,

articles/ai-services/content-safety/includes/quickstarts/python-quickstart-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following section walks through a sample request with the Python SDK.
8888
> [!TIP]
8989
> Text size and granularity
9090
>
91-
> The default maximum length for text submissions is **10K** characters.
91+
> See [Input requirements](../../overview.md#input-requirements) for maximum text length limitations.
9292
1. Then run the application with the `python` command on your quickstart file.
9393

9494
```console

articles/ai-services/content-safety/includes/quickstarts/rest-quickstart-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The following section walks through a sample request with cURL. Paste the comman
2828
> [!TIP]
2929
> Text size and granularity
3030
>
31-
> The default maximum length for text submissions is **10K** characters.
31+
> See [Input requirements](../../overview.md#input-requirements) for maximum text length limitations.
3232
3333
```shell
3434
curl --location --request POST '<endpoint>/contentsafety/text:analyze?api-version=2023-10-01' \

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The parameters in the request body are defined in this table:
131131
| **qna** | (Optional) Holds QnA data when the task type is `QnA`. | String |
132132
| - `query` | (Optional) This represents the question in a QnA task. Character limit: 7,500. | String |
133133
| **text** | (Required) The LLM output text to be checked. Character limit: 7,500. | String |
134-
| **groundingSources** | (Required) Uses an array of grounding sources to validate AI-generated text. Up to 55,000 characters of grounding sources can be analyzed in a single request. | String array |
134+
| **groundingSources** | (Required) Uses an array of grounding sources to validate AI-generated text. See [Input requirements](./overview.md#input-requirements) for limits. | String array |
135135
| **reasoning** | (Optional) Specifies whether to use the reasoning feature. The default value is `false`. If `true`, you need to bring your own Azure OpenAI GPT-4 Turbo (1106-preview) resources to provide an explanation. Be careful: using reasoning increases the processing time.| Boolean |
136136

137137
### Interpret the API response
@@ -278,7 +278,7 @@ The parameters in the request body are defined in this table:
278278
| **qna** | (Optional) Holds QnA data when the task type is `QnA`. | String |
279279
| - `query` | (Optional) This represents the question in a QnA task. Character limit: 7,500. | String |
280280
| **text** | (Required) The LLM output text to be checked. Character limit: 7,500. | String |
281-
| **groundingSources** | (Required) Uses an array of grounding sources to validate AI-generated text. Up to 55,000 characters of grounding sources can be analyzed in a single request. | String array |
281+
| **groundingSources** | (Required) Uses an array of grounding sources to validate AI-generated text. See [Input requirements](./overview.md#input-requirements) for limits, | String array |
282282
| **reasoning** | (Optional) Set to `true`, the service uses Azure OpenAI resources to provide an explanation. Be careful: using reasoning increases the processing time and incurs extra fees.| Boolean |
283283
| **llmResource** | (Required) If you want to use your own Azure OpenAI GPT4-Turbo (1106-preview) resource to enable reasoning, add this field and include the subfields for the resources used. | String |
284284
| - `resourceType `| Specifies the type of resource being used. Currently it only allows `AzureOpenAI`. We only support Azure OpenAI GPT-4 Turbo (1106-preview) resources and do not support other GPT types. | Enum|

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ The following section walks through a sample request with cURL. Paste the comman
3030
1. Replace `<your_subscription_key>` with one of the keys that come with your resource.
3131
1. Optionally, replace the `"text"` field in the body with your own text you'd like to analyze.
3232
> [!TIP]
33-
> Text size and granularity
34-
>
35-
> The default maximum length for text submissions is **1K** characters. The minimum length is **111** characters. Protected material detection is meant to be run on LLM completions, not user prompts.
33+
> See [Input requirements](./overview.md#input-requirements) for maximum text length limitations. Protected material detection is meant to be run on LLM completions, not user prompts.
3634
3735
```shell
3836
curl --location --request POST '<endpoint>/contentsafety/text:detectProtectedMaterial?api-version=2023-10-15-preview' \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The [Moderate text content](https://contentsafety.cognitive.azure.com/text) page
3636
> [!TIP]
3737
> Text size and granularity
3838
>
39-
> The default maximum length for text submissions is **10K** characters.
39+
> See [Input requirements](./overview.md#input-requirements) for maximum text length limitations.
4040
1. Select **Run test**.
4141

4242
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.

0 commit comments

Comments
 (0)