Skip to content

Commit a018ac4

Browse files
committed
writer edits
1 parent 67228f4 commit a018ac4

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

articles/ai-services/openai/concepts/prompt-transformation.md

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,40 @@ manager: nitinme
1212

1313
# What is prompt transformation?
1414

15-
Prompt transformation is a process that applies a safety and quality system message to your original prompt via a large language model (LLM) call prior to 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.
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.
1616

17-
Prompt transformation is applied to all Azure OpenAI DALL-E 3 requests by default. There may be scenarios in which your scenario 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 will ensure there is minimal prompt transformation. Evaluating your system with this prompt will help you better understand the impact and value of prompt transformation.
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 will ensure there is minimal prompt transformation. Evaluating your system behavior with and without this prompt will help you better understand the impact and value of prompt transformation.
1818

1919
After prompt transformation is applied to the original prompt, content filtering is applied as a secondary step prior to image generation; see [Content filtering](./content-filter.md) for more information.
2020

21-
Learn more about image generation prompting in OpenAI’s [DALL·E documentation](tbd).
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
2225

2326

2427
| **Example text prompt** | **Example generated image without prompt transformation** | **Example generated image with prompt transformation** |
2528
|---|---|---|
2629
|"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) |
2730

2831

29-
## Why is Prompt Transformation needed?
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 additional setup is required to benefit from prompt transformation enhancements.
3041

31-
Prompt transformation is essential to responsible and high-quality generations. Not only does prompt transformation enhance the safety of your generated image, but it also enriches your prompt in a more descriptive manner, leading to higher quality and descriptive imagery.
42+
Like image generation, prompt transformation is non-deterministic due to the nature of large language models. A single original prompt may lead to a number of image variants.
3243

33-
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.
3444

35-
## How do I use Prompt Transformation?
45+
## View prompt transformations
3646

37-
Prompt transformation is applied by default to all Azure OpenAI DALL-E 3 requests. No additional set-up is required to benefit from prompt transformation enhancements.
38-
Like image generation, prompt transformation is non-deterministic due to the nature of large language models. A single original prompt may lead to a a variety of image variants.
39-
Your revised or transformed prompt will be visible in the response object as shown below, in the `revised_prompt` field.
47+
Your revised or transformed prompt will be visible in the API response object as shown below, in the `revised_prompt` field.
4048

41-
### Example response
4249

4350
```json
4451
Input Content:
@@ -64,7 +71,11 @@ Output Content:
6471
}
6572
```
6673

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

68-
The 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:`.
79+
## Next steps
6980

70-
While this addition will encourage the revised prompt to be more representative of your original prompt, the system may alter specific details.
81+
* [DALL-E quickstart](/azure/ai-services/openai/dall-e-quickstart)

0 commit comments

Comments
 (0)