What does Huyen mean by “prompt engineering is context construction”?
Prompt engineering is not just writing good text — it is systematically constructing the information context the model needs: instruction hierarchy, defensive constraints, retrieved knowledge, and examples — all optimized for utility per token.
What is the Instruction Hierarchy?
The ordering of prompt instructions where system-level instructions take precedence over user-level inputs. This ensures behavioral compliance (e.g., federal neutrality mandates) cannot be overridden by user prompts or prompt injection attacks.
What is defensive prompt engineering?
Techniques to prevent prompt injection and jailbreak attacks — including instruction hierarchy enforcement, input validation rails, and system prompt constraints that override adversarial user inputs.
What is In-Context Learning?
The ability of LLMs to learn tasks from examples provided in the prompt (few-shot prompting) without updating model weights. Includes few-shot prompting, chain-of-thought prompting, and structured output formatting.