# Prompt Engineering

- **Canonical URL:** https://getaimath.com/dictionary/prompt-engineering/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/)
- **Last updated:** 2026-11-25

## What is Prompt Engineering?

**In one sentence:** Prompt engineering is the skill of writing and arranging instructions so an AI model gives the best possible answers.

Models respond very differently depending on how you ask. Prompt engineering includes giving clear goals, adding examples, explaining the audience, setting a format, and breaking big tasks into steps. It is part writing, part testing, and part understanding how models behave.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Prompt Engineering?

Changing "write about dogs" to "write a 100-word funny poem about a dog who hates baths" is prompt engineering.

## Why does Prompt Engineering matter?

Good prompts can make the same model dramatically more useful without changing the model at all.

## Related Concepts

- [Assistant Message](https://getaimath.com/dictionary/assistant-message/): An assistant message is a reply written by the AI model in a conversation.
- [Zero-shot Prompting](https://getaimath.com/dictionary/zero-shot-prompting/): Zero-shot prompting is asking an AI to do a task without giving it any examples first.
- [User Prompt](https://getaimath.com/dictionary/user-prompt/): A user prompt is the message a person types to an AI model, like a question or a request.
- [One-shot Prompting](https://getaimath.com/dictionary/one-shot-prompting/): One-shot prompting is asking an AI to do a task after showing it exactly one example.
- [System Prompt](https://getaimath.com/dictionary/system-prompt/): A system prompt is a set of hidden instructions given to an AI model before the conversation starts, to shape how it behaves.
- [Few-shot Prompting](https://getaimath.com/dictionary/few-shot-prompting/): Few-shot prompting is giving an AI a handful of examples in the prompt before asking it to do the task.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/prompt-engineering/)
