Prompt engineering
Prompt engineering is the craft of instructions, examples and constraints that steer model outputs toward a task.
How it works
Write clear roles, output schemas and refusal rules. Version prompts like code. Measure with an evaluation set; do not chase anecdotal wins.
Example
A prompt requires a three-field JSON answer and rejects requests outside a allowlisted topic list.