← AI glossary

Definition

Prompt Engineering

Prompt engineering is the practice of designing instructions, context and constraints that guide AI models toward useful outputs.

Also known as: prompt design

Short definition

Prompt engineering is the process of writing and structuring inputs for AI systems, especially large language models, so they produce more reliable and useful results.

A prompt can include the task, role, constraints, examples, source material and output format.

How it works

Good prompts reduce ambiguity. They tell the model what to do, what not to do and what evidence to use. For repeatable business workflows, prompts are often treated like product logic: tested, versioned and improved over time.

Prompting is not only about clever wording. In production systems it often works together with retrieval, validation, safety rules and user interface design.

Example

Instead of asking: summarize this report, a better prompt might ask for a five-bullet executive summary, the three biggest risks, cited source sections and a confidence note for each claim.

Why it matters

Prompt engineering matters because LLMs are sensitive to context and instructions. A weak prompt can produce vague, overconfident or wrongly formatted output. A strong prompt can make the same model much more useful.

It is still not a substitute for evaluation. Important workflows need testing against real examples and clear rules for when a human should review the result.