Skip to content

Commit 1d0010b

Browse files
authored
Merge pull request #4730 from PatrickFarley/aoai-build
add spotlighting info
2 parents fdfbf6a + f1a0cb2 commit 1d0010b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

articles/ai-services/openai/concepts/content-filter-prompt-shields.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,13 @@ Prompt shields are a feature of the Azure OpenAI content filtering system that h
1515

1616
Prompt shields analyzes LLM inputs and detects adversarial user input attacks.
1717

18-
[!INCLUDE [prompt-shield-attack-info](../../content-safety/includes/prompt-shield-attack-info.md)]
18+
[!INCLUDE [prompt-shield-attack-info](../../content-safety/includes/prompt-shield-attack-info.md)]
19+
20+
## Spotlighting for prompt shields
21+
22+
Spotlighting is a sub-feature of prompt shields that enhances protection against indirect attacks by tagging the input documents with special formatting to indicate lower trust to the model. When spotlighting is enabled, the service transforms the document content using base-64 encoding, and the model is configured to treat this content as less trustworthy than direct user and system prompts. This helps prevent the model from executing unintended commands or actions that are found in the content of the documents.
23+
24+
Spotlighting is turned off by default, and users can enable it when [configuring their content filter](../how-to/content-filters.md) in the Azure AI Foundry portal or REST API.
25+
26+
There is no direct cost for spotlighting, but it adds more tokens to a user's prompt, which could increase the total costs. Also note that spotlighting could make a lengthy document surpass the input size limit.
27+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Personally identifiable information (PII) detection is now available as a built-
2727

2828
### Spotlighting for prompt shields
2929

30-
Spotlighting is a new feature for prompt shields that enhances protection from indirect (embedded document) attacks by tagging input documents with special formatting to indicate lower trust to the model. For more information, see the [Prompt shields content filtering](./concepts/content-filter-prompt-shields.md) documentation.
30+
Spotlighting is a sub-feature of prompt shields that enhances protection against indirect (embedded document) attacks by tagging input documents with special formatting to indicate lower trust to the model. For more information, see the [Prompt shields content filtering](./concepts/content-filter-prompt-shields.md) documentation.
3131

3232

3333

0 commit comments

Comments
 (0)