Last updated:
The Prompt Report: A Systematic Survey of Prompt Engineering Techniques
Sander Schulhoff et al.
In collections: Prompting
Abstract: Generative Artificial Intelligence (GenAI) systems are increasingly being deployed across various industries and research fields. Developers and end users interact with these systems through prompting and prompt engineering. Although prompt engineering is a widely adopted and extensively studied area, it suffers from conflicting terminology and a fragmented ontological understanding of what constitutes an effective prompt, owing to its relatively recent emergence. We establish a structured understanding of prompt engineering by assembling a taxonomy of prompting techniques and analyzing their applications. We present a detailed vocabulary of 33 terms, a taxonomy of 58 LLM prompting techniques and 40 techniques for other modalities. In addition, we provide best practices and guidelines for prompt engineering, including advice on prompting state-of-the-art (SOTA) LLMs such as ChatGPT. As the culmination of these efforts, this paper presents the most comprehensive survey of prompt engineering to date.
Strategies from the report
Taxonomy of prompting techniques — The report classifies 58 techniques used for LLMs and 40 techniques for other modalities, which makes it easier to choose an approach for a specific task.
Glossary of terms — Contains 33 defined terms that bring order to previously inconsistent naming and make communication between researchers and practitioners easier.
Meta-analysis of prefix-prompting — A systematic summary of research findings on natural prefix-prompting, indicating which methods have repeatable effects.
Practical applications — A discussion of how prompting techniques perform in tasks such as text generation, information extraction, classification, and in multimodal systems.
Evaluating effectiveness — The report compares techniques in terms of accuracy, stability and computational cost, pointing out the trade-offs between the simplicity of a prompt and the quality of results.
Best practices
Precise model versioning: Always give the full version identifier (e.g.
gpt-4-0613instead ofGPT-4). This prevents problems caused by models being updated in the background.Publishing full texts and templates: Share prompts in their raw form together with clearly marked variables (placeholders), so that other researchers can reproduce the experiment exactly.
Defining determinism parameters: Explicitly stating the values of
temperature,top-pandseed(where available) is essential for keeping results replicable in production environments.Documenting Few-shot strategies: If you use examples in the prompt, describe the criteria for choosing them (e.g. whether they were picked at random or by a specific semantic-similarity key).
Reporting the date and infrastructure: Because of the model drift phenomenon, it is crucial to record the date the tests were run and the wrappers (e.g. LangChain, Guidance) or API libraries used.
What to avoid
Using generic names: Avoid terms like “Llama” or “Claude” without specifying the model's version and size (e.g. 70B). Such data is useless for scientific and technical purposes.
Relying on default settings: Never assume that the “default temperature” is constant across API versions. Not defining parameters explicitly is the most common cause of replication problems.
Hiding manual post-production: If the model's outputs were manually “cleaned” or corrected before analysis, failing to mention this in the report is a methodological error.
Ignoring negative results and hallucinations: Leaving out cases where the model failed makes a reliable assessment of the risk of deploying a given prompt impossible.
A “magical” approach to Prompt Engineering: Avoid introducing modifications (e.g. adding “Think step by step”) without evidence that they actually improve performance in the given use case.
Support this project by buying me a coffee ;)