Skip to content

How Prompts Work

Prompting

Every adversarial technique exploits a prompting mechanism. Role hijacking works because role prompting works. Few-shot attacks work because in-context learning works. You can't break what you don't understand. This section teaches each concept twice: how it works constructively, and how it gets exploited.