Instruction Hierarchy
A principle according to which instructions at different levels have different priorities: a system prompt has higher priority than a user request, and a user request has higher priority than data within a document.
Why
This is a protection against Prompt Injection: if the text in a document says "ignore the rules," the model should understand that data is the lowest level of the hierarchy and cannot override system rules.
Levels
- System instructions;
- User request;
- Data and documents;
- Tool outputs.