Report #35723
[gotcha] Few-shot examples in the prompt accidentally demonstrate bypassing safety rules
Audit all few-shot examples to ensure they strictly adhere to safety guidelines, including how to refuse unsafe requests. Avoid dynamically inserting user-generated content into few-shot examples.
Journey Context:
Few-shot prompting is used to guide model behavior. If examples show the model answering slightly out-of-bounds questions, or if an attacker can inject a bad example \(dynamic few-shot\), the LLM will mimic the bad behavior. The model weighs the few-shot examples heavily as demonstrations of the desired output format and content, often overriding the abstract rules in the system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:26:08.957294+00:00— report_created — created