← Prompt Engineering
Instruction Hierarchy
Instruction hierarchy is the principle that some instructions outrank others: system and developer instructions should take precedence over instructions embedded in user input or retrieved content. Designing prompts and models to respect this ordering is a key defense against prompt injection, since it lets the system ignore lower-priority text that tries to override its rules.