Skip to content

Commit 45e626a

Browse files
authored
Merge pull request #281013 from MicrosoftDocs/main
7/16/2024 PM Publish
2 parents 0d1eb45 + bb5a47c commit 45e626a

File tree

119 files changed

+1405
-303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1405
-303
lines changed

articles/active-directory-b2c/claimsschema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ The **Readonly** user input type is used to provide a readonly field to display
395395

396396
#### Paragraph
397397

398-
The **Paragraph** user input type is used to provide a field that shows text only in a paragraph tag. For example, <p>text</p>. A **Paragraph** user input type `OutputClaim` of self-asserted technical profile, must set the `Required` attribute `false` (default).
398+
The **Paragraph** user input type is used to provide a field that shows text only in a paragraph tag. For example, <p>text</p>. A **Paragraph** user input type `OutputClaim` of self-asserted technical profile, must set the `Required` attribute `false` (default). This user input type is only supported in self-asserted page layouts. Unified sign-in and sign-up pages (unifiedssp) might not display this properly.
399399

400400
![Using claim type with paragraph](./media/claimsschema/paragraph.png)
401401

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: Azure OpenAI default content safety policies
3+
titleSuffix: Azure OpenAI
4+
description: Learn about the default content safety policies that Azure OpenAI uses to flag content.
5+
author: PatrickFarley
6+
ms.author: pafarley
7+
ms.service: azure-ai-openai
8+
ms.topic: conceptual
9+
ms.date: 07/15/2024
10+
manager: nitinme
11+
---
12+
13+
# Default content safety policies
14+
15+
16+
Azure OpenAI Service includes default safety applied to all models, excluding Azure OpenAI Whisper. These configurations provide you with a responsible experience by default, including [content filtering models](/azure/ai-services/openai/concepts/content-filter?tabs=warning%2Cpython-new), blocklists, prompt transformation, [content credentials](/azure/ai-services/openai/concepts/content-credentials), and others.
17+
18+
Default safety aims to mitigate risks such as hate and fairness, sexual, violence, self-harm, protected material content and user prompt injection attacks. To learn more about content filtering, visit our documentation describing categories and severity levels [here](/azure/ai-services/openai/concepts/content-filter?tabs=warning%2Cpython-new).
19+
20+
All safety is configurable. To learn more about configurability, visit our documentation on [configuring content filtering](/azure/ai-services/openai/how-to/content-filters).
21+
22+
## Text models: GPT-4, GPT-3.5
23+
24+
Text models in the Azure OpenAI Service can take in and generate both text and code. These models leverage Azure’s text content filtering models to detect and prevent harmful content. This system works on both prompt and completion.
25+
26+
| Risk Category | Prompt/Completion | Severity Threshold |
27+
|-------------------------------------------|------------------------|---------------------|
28+
| Hate and Fairness | Prompts and Completions| Medium |
29+
| Violence | Prompts and Completions| Medium |
30+
| Sexual | Prompts and Completions| Medium |
31+
| Self-Harm | Prompts and Completions| Medium |
32+
| User prompt injection attack (Jailbreak) | Prompts | N/A |
33+
| Protected Material – Text | Completions | N/A |
34+
| Protected Material – Code | Completions | N/A |
35+
36+
37+
38+
## Vision models: GPT-4o, GPT-4 Turbo, DALL-E 3, DALL-E 2
39+
40+
### GPT-4o and GPT-4 Turbo
41+
42+
| Risk Category | Prompt/Completion | Severity Threshold |
43+
|------------------------------------------------------|------------------------|---------------------|
44+
| Hate and Fairness | Prompts and Completions| Medium |
45+
| Violence | Prompts and Completions| Medium |
46+
| Sexual | Prompts and Completions| Medium |
47+
| Self-Harm | Prompts and Completions| Medium |
48+
| Identification of Individuals and Inference of Sensitive Attributes | Prompts | N/A |
49+
| User prompt injection attack (Jailbreak) | Prompts | N/A |
50+
51+
### DALL-E 3 and DALL-E 2
52+
53+
54+
| Risk Category | Prompt/Completion | Severity Threshold |
55+
|---------------------------------------------------|------------------------|---------------------|
56+
| Hate and Fairness | Prompts and Completions| Low |
57+
| Violence | Prompts and Completions| Low |
58+
| Sexual | Prompts and Completions| Low |
59+
| Self-Harm | Prompts and Completions| Low |
60+
| Content Credentials | Completions | N/A |
61+
| Deceptive Generation of Political Candidates | Prompts | N/A |
62+
| Depictions of Public Figures | Prompts | N/A |
63+
| User prompt injection attack (Jailbreak) | Prompts | N/A |
64+
| Protected Material – Art and Studio Characters | Prompts | N/A |
65+
| Profanity | Prompts | N/A |
66+
67+
68+
In addition to the above safety configurations, Azure OpenAI DALL-E also comes with [prompt transformation](./prompt-transformation.md) by default. This transformation occurs on all prompts to enhance the safety of your original prompt, specifically in the risk categories of diversity, deceptive generation of political candidates, depictions of public figures, protected material, and others.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: Azure OpenAI prompt transformation concepts
3+
titleSuffix: Azure OpenAI
4+
description: Learn about the prompt transformation feature in Azure OpenAI DALL-E 3, how it works, and why it's necessary.
5+
author: PatrickFarley
6+
ms.author: pafarley
7+
ms.service: azure-ai-openai
8+
ms.topic: conceptual
9+
ms.date: 07/16/2024
10+
manager: nitinme
11+
---
12+
13+
# What is prompt transformation?
14+
15+
Prompt transformation is a process in DALL-E 3 image generation that applies a safety and quality system message to your original prompt using a large language model (LLM) call before being sent to the model for image generation. This system message enriches your original prompt with the goal of generating more diverse and higher-quality images, while maintaining intent.
16+
17+
Prompt transformation is applied to all Azure OpenAI DALL-E 3 requests by default. There may be scenarios in which your use case requires a lower level of enrichment. To generate images that use prompts that more closely resemble your original prompt, append this text to your prompt: `I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:`. This ensures there is minimal prompt transformation. Evaluating your system behavior with and without this prompt helps you better understand the impact and value of prompt transformation.
18+
19+
After prompt transformation is applied to the original prompt, content filtering is applied as a secondary step before image generation; for more information, see [Content filtering](./content-filter.md).
20+
21+
> [!TIP]
22+
> Learn more about image generation prompting in OpenAI's [DALL·E documentation](https://platform.openai.com/docs/guides/images/language-specific-tips).
23+
24+
## Prompt transformation example
25+
26+
27+
| **Example text prompt** | **Example generated image without prompt transformation** | **Example generated image with prompt transformation** |
28+
|---|---|---|
29+
|"Watercolor painting of the Seattle skyline" | ![Watercolor painting of the Seattle skyline (simple).](../media/how-to/generated-seattle.png) | ![Watercolor painting of the Seattle skyline, with more detail and structure.](../media/how-to/generated-seattle-prompt-transformed.png) |
30+
31+
32+
## Why is prompt transformation needed?
33+
34+
Prompt transformation is essential for responsible and high-quality generations. Not only does prompt transformation improve the safety of your generated image, but it also enriches your prompt in a more descriptive manner, leading to higher quality and descriptive imagery.
35+
36+
Default prompt transformation in Azure OpenAI DALL-E 3 contains safety enhancements that steer the model away from generating images of Copyright Studio characters and artwork, public figures, and other harmful content such as sexual, hate and unfairness, violence, and self-harm content.
37+
38+
## How do I use prompt transformation?
39+
40+
Prompt transformation is applied by default to all Azure OpenAI DALL-E 3 requests. No extra setup is required to benefit from prompt transformation enhancements.
41+
42+
Like image generation, prompt transformation is non-deterministic due to the nature of large language models. A single original prompt may lead to many image variants.
43+
44+
45+
## View prompt transformations
46+
47+
Your revised or transformed prompt is visible in the API response object as shown here, in the `revised_prompt` field.
48+
49+
50+
```json
51+
Input Content:
52+
{
53+
"prompt": "Watercolor painting of the Seattle skyline",
54+
"n": 1,
55+
"size": "1024x1024"
56+
}
57+
58+
Output Content:
59+
{
60+
"created": 1720557218,
61+
"data": [
62+
{
63+
"content_filter_results": {
64+
...
65+
},
66+
"prompt_filter_results": {
67+
...
68+
},
69+
"revised_prompt": "A soft and vivid watercolor painting capturing the scenic beauty of the Seattle skyline. The painting illustrates a setting sun casting warm hues over the sprawling cityscape, with the Space Needle prominently standing tall against the sky. Imagine the scattered high-rise buildings, a soothing blend of the lush green of the parks with the winding blue water of the Puget Sound, and the snow-covered peak of Mount Rainier in the distance. A play of light and shadow adds depth and dynamism to this multihued urban panorama."
70+
}
71+
}
72+
```
73+
74+
> [!NOTE]
75+
> Azure OpenAI Service does not offer configurability for prompt transformation at this time. To bypass prompt transformation, prepend the following to any request: `I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:`.
76+
>
77+
> While this addition will encourage the revised prompt to be more representative of your original prompt, the system may alter specific details.
78+
79+
## Next steps
80+
81+
* [DALL-E quickstart](/azure/ai-services/openai/dall-e-quickstart)

articles/ai-services/openai/how-to/dall-e.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -255,30 +255,10 @@ It's also possible that the generated image itself is filtered. In this case, th
255255

256256
Your image prompts should describe the content you want to see in the image, as well as the visual style of image.
257257

258-
> [!TIP]
259-
> For a thorough look at how you can tweak your text prompts to generate different kinds of images, see the [Dallery DALL-E 2 prompt book](https://dallery.gallery/wp-content/uploads/2022/07/The-DALL%C2%B7E-2-prompt-book-v1.02.pdf).
260-
261-
#### [DALL-E 3](#tab/dalle3)
262-
263258
When writing prompts, consider that the image generation APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see [Content filtering](../concepts/content-filter.md).
264259

265-
### Prompt transformation
266-
267-
DALL-E 3 includes built-in prompt rewriting to enhance images, reduce bias, and increase natural variation of images.
268-
269-
| **Example text prompt** | **Example generated image without prompt transformation** | **Example generated image with prompt transformation** |
270-
|---|---|---|
271-
|"Watercolor painting of the Seattle skyline" | ![Watercolor painting of the Seattle skyline (simple).](../media/how-to/generated-seattle.png) | ![Watercolor painting of the Seattle skyline, with more detail and structure.](../media/how-to/generated-seattle-prompt-transformed.png) |
272-
273-
The updated prompt is visible in the `revised_prompt` field of the data response object.
274-
275-
While it is not currently possible to disable this feature, you can use special prompting to get outputs closer to your original prompt by adding the following to it: `I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:`.
276-
277-
#### [DALL-E 2 (preview)](#tab/dalle2)
278-
279-
When writing prompts, consider that the image generation APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see [Content filtering](../concepts/content-filter.md).
280-
281-
---
260+
> [!TIP]
261+
> For a thorough look at how you can tweak your text prompts to generate different kinds of images, see the [Image prompt engineering guide](/azure/ai-services/openai/concepts/gpt-4-v-prompt-engineering).
282262
283263

284264
## Specify API options

articles/ai-services/openai/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ items:
5050
href: ./concepts/abuse-monitoring.md
5151
- name: Content filtering
5252
href: ./concepts/content-filter.md
53+
- name: Default safety policies
54+
href: ./concepts/default-safety-policies.md
55+
- name: Prompt transformations
56+
href: ./concepts/prompt-transformation.md
5357
- name: Customizing Large Language Models (LLMs)
5458
href: ./concepts/customizing-llms.md
5559
- name: Embeddings

articles/ai-services/openai/whats-new.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ This article provides a summary of the latest releases and major documentation u
2020

2121
## July 2024
2222

23+
### New Responsible AI default content filtering policy
24+
25+
The new default content filtering policy `DefaultV2` delivers the latest safety and security mitigations for the GPT model series (text), including:
26+
- Prompt Shields for jailbreak attacks on user prompts (filter),
27+
- Protected material detection for text (filter) on model completions
28+
- Protected material detection for code (annotate) on model completions
29+
30+
While there are no changes to content filters for existing resources and deployments (default or custom content filtering configurations remain unchanged), new resources and GPT deployments will automatically inherit the new content filtering policy `DefaultV2`. Customers have the option to switch between safety defaults and create custom content filtering configurations.
31+
32+
Refer to our [Default safety policy documentation](./concepts/default-safety-policies.md) for more information.
33+
2334
### New GA API release
2435

2536
API version `2024-06-01` is the latest GA data plane inference API release. It replaces API version `2024-02-01` and adds support for:
@@ -57,6 +68,7 @@ Refer to our [data plane inference reference documentation](./reference.md) for
5768

5869
For information on global standard quota, consult the [quota and limits page](./quotas-limits.md).
5970

71+
6072
## June 2024
6173

6274
### Retirement date updates

articles/ai-studio/how-to/troubleshoot-secure-connection-project.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ If you use a proxy, it may prevent communication with a secured project. To test
121121
* Temporarily disable the proxy setting and see if you can connect.
122122
* Create a [Proxy auto-config (PAC)](https://wikipedia.org/wiki/Proxy_auto-config) file that allows direct access to the FQDNs listed on the private endpoint. It should also allow direct access to the FQDN for any compute instances.
123123
* Configure your proxy server to forward DNS requests to Azure DNS.
124+
* Ensure that the proxy allows connections to AML APIs, such as "*.\<region\>.api.azureml.ms" and "*.instances.azureml.ms"
124125
125126
## Troubleshoot missing storage connections
126127

articles/aks/csi-secrets-store-identity-access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ In this security model, you can grant access to your cluster's resources to team
201201
Alternatively, you can create a new managed identity and assign it to your virtual machine (VM) scale set or to each VM instance in your availability set using the following commands.
202202
203203
```azurecli-interactive
204-
az identity create -resource-group <resource-group> --name <identity-name>
204+
az identity create --resource-group <resource-group> --name <identity-name>
205205
az vmss identity assign --resource-group <resource-group> --name <agent-pool-vmss> --identities <identity-resource-id>
206206
az vm identity assign --resource-group <resource-group> --name <agent-pool-vm> --identities <identity-resource-id>
207207

articles/aks/keda-workload-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This article shows you how to securely scale your applications with the Kubernet
6666
--overwrite-existing
6767
```
6868
69-
## Deploy Azure Service Bus
69+
## Create an Azure Service Bus
7070
7171
1. Create an Azure Service Bus namespace using the [`az servicebus namespace create`][az-servicebus-namespace-create] command. Make sure to replace the placeholder value with your own value.
7272
34.7 KB
Loading

0 commit comments

Comments
 (0)