Definition
Prompt engineering is the iterative design, testing, and maintenance of model inputs for a defined task. It covers instructions, examples, delimiters, output requirements, role or message placement, and the wording used to separate trusted directions from untrusted data.
The engineering part is empirical. A prompt is a versioned component tested against representative cases, failure cases, and the exact model configuration that will run it. A clever instruction that worked once in a chat is a prompt experiment, not evidence of a reliable design.
Origin and usage
The available primary record does not establish one inventor of the phrase. OpenAI's CLIP paper, submitted in 2021, contains a section titled "Prompt Engineering and Ensembling," showing that the term was already in technical use by then. Work around GPT-3 and related models helped popularize prompting as a practical discipline, but the historical record does not justify crediting a single person with coining it.
Operational significance
Prompts are model-dependent software assets. A model upgrade, a new tool schema, a longer conversation, or a change in retrieved data can alter behavior without changing the prompt text. Keep evals beside important prompts, record the model and decoding settings, and remove instructions that no longer earn their token and attention cost.
Prompt changes also cannot enforce permissions or prove correctness. Authorization, schema validation, evidence checks, and side-effect controls belong in the surrounding system.
Distinguish it from nearby terms
- Prompt engineering designs the instructions and demonstrations sent to a model.
- Context engineering owns the larger process that selects, structures, updates, and removes information across calls.
- Fine-tuning changes model parameters. Prompt engineering changes inference-time input.
- A specification states what a system must do. A prompt can communicate part of that intent, but it is not an enforceable contract by itself.
Check your understanding
A prompt passes ten handpicked examples and fails after a model upgrade. Explain what was missing from the engineering process and which configuration should have been versioned with the prompt.