AI engineering glossary · Prompt context engineering

What is instruction hierarchy?

Instruction hierarchy: A defined order of trust among the instruction sources a model sees, typically system or developer rules first, then the user, then content from tools or documents. Training models to follow it helps them ignore commands hidden in lower-trust text.

Level: advancedTopic: Prompt context engineering

Instruction hierarchy: an example

If a web page fetched by a tool says 'ignore your rules', the model treats it as data, not an order.

Related terms

More Prompt context engineering terms

Where you learn it

Instruction hierarchy is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.