Prompt engineering: what it is, the techniques that work and the prompt engineer job today
In 2022, researchers from the University of Tokyo and Google added one sentence to their prompts, "Let's think step by step." On an arithmetic benchmark, the model's accuracy jumped from 17.7% to 78.7% (Kojima et al.). That is what prompt engineering is about: designing, testing and refining the instructions you give a generative AI model so it produces reliable results, without changing the model itself. It is not just good writing. It is a testing discipline, with success criteria and measurements. This guide covers the techniques with evidence behind them, the method AI vendors recommend, the shift to context engineering, and what happened to the prompt engineer job.
Prompt engineering at a glance
| Question | Short answer |
|---|---|
| What is it? | Designing and refining the instructions (prompts) given to an AI model, then measuring the results. |
| What changes | Only the text sent to the model. The model itself is not retrained. |
| Core techniques | Zero-shot, few-shot, chain of thought, roles, structure, prompt chaining. |
| How it differs from a good prompt | Success criteria set in advance and repeated tests on many cases. |
| The job in 2026 | Rare as a standalone title, now an expected skill in many roles. |
Definition: from prompt to prompt engineering
An AI prompt is the instruction you give a generative AI tool. Prompt engineering is the practice of making that instruction effective and consistent. OpenAI's documentation defines it as "the process of writing effective instructions for a model."
The difference is scale. For a one-off question in ChatGPT, a clear prompt is enough. An app that handles thousands of customer requests a day needs a prompt that gets it right almost every time, including when users write vague or messy requests. That calls for an engineering loop: write, test on a set of examples, measure, fix.
Prompt engineering is not fine-tuning, which retrains the model on your data. It is cheaper, takes minutes to apply and works with any LLM you can reach through a chat interface or an API.
Prompt engineering techniques with evidence behind them
The Prompt Report, a survey by 31 researchers first published in 2024 and updated in 2025, catalogs 58 text prompting techniques. Most are variations on a handful of ideas, summarized here with their sources.
| Technique | How it works | What we know |
|---|---|---|
| Zero-shot | Ask directly, with no examples | Often enough for simple, common tasks |
| Few-shot | Show a few input and output examples | GPT-3 learned new tasks from a few examples (2020) |
| Chain of thought | Have the model reason step by step before answering | Clear gains in math and logic, small elsewhere (2024) |
| Self-consistency | Generate several reasoning paths, keep the majority answer | +17.9 points on a math word problem benchmark (2022) |
| Structure | Separate instructions, context and data with tags | Reduces misinterpretation, according to Anthropic |
| Prompt chaining | Split a task into a sequence of prompts | Lets you check every intermediate step |
- Few-shot: the GPT-3 paper showed in 2020 that a model could perform a task from examples placed in the prompt. OpenAI advises showing a diverse range of inputs; Anthropic recommends 3 to 5 examples. See our guide to few shot prompting.
- Chain of thought: Wei et al. reached state-of-the-art results on math word problems in 2022 with just eight reasoning examples. But a meta-analysis of more than 100 papers found the gains are concentrated in math and logic. More in our guide to chain of thought prompting.
- Self-consistency: Wang et al. sample several different reasoning paths and keep the answer that comes up most often.
- Structure and chaining: Anthropic's guide suggests putting long documents at the top of the prompt and the question at the end, and chaining draft, review against criteria, then revision.
What reasoning models change
Recent models think before they answer. OpenAI says its reasoning models generally do better with high-level guidance, while its GPT models benefit from very precise instructions. On its latest models, Anthropic advises relying on built-in thinking rather than asking the model to write out its reasoning. Tricks from 2022 do not carry over as is: test on the model you actually use.
The prompt engineering method in 6 steps
Anthropic's prompt engineering overview sets three prerequisites: clear success criteria, a way to test against them, and a first draft prompt. The method that follows:
- Set a measurable target: not "sort emails well" but "90% of emails sorted into the right category across 200 examples." Anthropic asks for specific, measurable, achievable and relevant criteria.
- Build a test set: real cases plus edge cases (off-topic requests, very long inputs, ambiguous or sarcastic messages).
- Write a first prompt: role, task, context, output format, examples. The Fast Track AI's free AI prompt generator can give you a starting point.
- Measure: run the prompt on the whole test set and record the score. Automate grading where you can (exact match, code, or a model acting as grader).
- Change one thing at a time: one example, one sentence, the order of sections. Keep whichever version raises the score.
- Pin and monitor: OpenAI recommends pinning production apps to a specific model snapshot and keeping your evals, since a model update can shift results.
For everyday use in ChatGPT or Gemini, steps 1 and 2 shrink to comparing a few attempts. Our guide on how to write prompts covers that lighter version.
From prompt engineering to context engineering
With AI agents that take a series of actions, the prompt is only part of what the model reads: conversation history, documents and tool results pile up too. In September 2025, Anthropic described context engineering as "the natural progression" of prompt engineering: curating the full set of information the model sees at each step.
The idea: the longer the context, the worse the model gets at recalling a given detail. So Anthropic recommends the smallest possible set of high-signal information. The other shift is automatic optimization. In a VMware study reported by IEEE Spectrum in 2024, prompts generated and tested by software beat the best hand-written prompts in nearly every case.
Prompt engineer: a job or a skill?
In 2023, right after ChatGPT launched, prompt engineer was billed as the job of the future, with salaries of up to $200,000 according to Korn Ferry. Two years later, the firm noted the role had gone cold: in a Microsoft survey of 31,000 workers in 31 countries, it ranked second from the bottom among new roles companies planned to add.
Microsoft's 2025 Work Trend Index points instead to AI trainers, AI data specialists and AI security specialists, and treats prompting as a skill every employee needs. The skill has not vanished; it has spread. People who make it the core of their work now go by titles like AI engineer or LLM engineer, and combine:
- Writing: clear, unambiguous instructions suited to the audience.
- Domain knowledge: legal, healthcare, customer support. It is what lets you judge an answer.
- Evaluation: building test sets and metrics, reading failure cases.
- Engineering: API calls, Python, agent tooling, prompt version control.
The limits of prompt engineering
A better prompt does not fix everything. Look elsewhere in these cases:
- The model lacks the information: no prompt teaches it your internal documents or today's news. You have to supply them, for example with RAG.
- Answers must be 100% accurate: even well guided, a model can make things up with confidence. That is an AI hallucination, and human review is still required.
- Cost or latency is the problem: Anthropic notes that switching models sometimes improves latency and cost faster than rewriting the prompt.
- Security is at stake: OWASP ranks prompt injection as the top risk for LLM applications. A well-written system prompt is not enough on its own: OWASP recommends combining several defenses.
Key takeaways
Frequently asked questions
What is prompt engineering?
It is the practice of designing, testing and refining the instructions given to a generative AI model so it produces accurate, consistent answers. The model is not changed: only the text you send it. It applies to chat tools and to apps built on AI APIs.
What does a prompt engineer do?
A prompt engineer writes the instructions for an AI application, builds test sets, measures results and revises prompts until they meet set criteria. The work involves product and engineering teams. Today, it is often done by AI engineers or domain experts rather than a dedicated hire.
Is prompt engineering still a career?
As a standalone job, it is shrinking: according to Korn Ferry, a 2025 Microsoft survey ranked it near the bottom of new roles companies plan to create. The skill, however, has spread across many jobs and continues in context engineering, which manages everything AI agents are given to read.
How much does a prompt engineer make?
There is no official government statistic for this job title. In 2023, some US roles were advertised at up to $200,000 a year, according to Korn Ferry, but such listings have become rare. Salary sites give widely different estimates, so check current job postings in your area.
How do I learn prompt engineering?
Start with the free guides from OpenAI, Anthropic and Google, and Anthropic's interactive tutorial on GitHub. Then practice on a real task from your job: set a target, prepare about twenty examples and compare several versions of your prompt.
What is the difference between prompt engineering and fine-tuning?
Prompt engineering only changes the instructions sent to the model, so it is fast and cheap. Fine-tuning retrains the model on your own examples. It takes longer and costs more, but helps keep a very specific style or format at scale.
Sources
- Large Language Models are Zero-Shot ReasonersarXiv (Kojima et al., 2022)
- Prompt engineeringOpenAI
- The Prompt Report: A Systematic Survey of Prompt Engineering TechniquesarXiv (Schulhoff et al., 2024-2025)
- Language Models are Few-Shot LearnersarXiv (Brown et al., 2020)
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsarXiv (Wei et al., 2022)
- To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningarXiv (Sprague et al., 2024)
- Self-Consistency Improves Chain of Thought Reasoning in Language ModelsarXiv (Wang et al., 2022)
- Prompting best practicesAnthropic
- Prompt engineering overviewAnthropic
- AI Prompt Engineering Is DeadIEEE Spectrum
- The Hottest Job of the Year Goes ColdKorn Ferry