Plan And Solve: Definition and Examples
Prompting technique that asks the model to first devise a resolution plan before solving a problem, thereby improving its performance on complex reasoning tasks.
Full definition
Plan And Solve (PS) is a prompting strategy introduced by Wang et al. in 2023, designed to improve the ability of large language models to solve complex problems, especially in mathematics and logical reasoning. Instead of asking the model to solve a problem directly, it is explicitly asked to design an action plan before proceeding to execution.
This approach is inspired by the observation that methods like Chain of Thought (CoT) sometimes suffer from calculation errors, missing steps, or loss of coherence during reasoning. By forcing an explicit planning phase, Plan And Solve reduces these issues by structuring the model's thinking in two stages: first understand the problem and identify necessary steps, then execute each step in an orderly manner.
The improved variant, called PS+ (Plan And Solve Plus), adds additional instructions such as "extract variables and their values" or "compute intermediate results." These detailed guidelines guide the model further and significantly reduce reasoning errors.
Plan And Solve works in zero-shot mode, meaning it requires no prior examples in the prompt. Simply adding an instruction like "First devise a plan, then solve the problem step by step" yields significantly better results than a basic prompt.
Etymology
The term comes directly from the research paper "Plan-and-Solve Prompting" published by Lei Wang et al. in 2023. It literally describes the two phases of the method: plan then solve.
Concrete examples
Solving a complex math problem
Solve this problem. First, devise a plan by identifying the variables and necessary calculation steps. Then execute each step of the plan.
Problem: A store offers a 20% discount on an item priced at €85, then applies a 5.5% tax on the reduced price. What is the final price?
Analyzing a multi-factor business case
Before answering, design a structured plan to analyze this case. Identify the dimensions to examine, then address each dimension methodically.
Case: A B2B SaaS startup has a monthly churn rate of 8% despite an NPS of 45. What could be the causes and solutions?
Debugging a complex technical problem
First, develop a diagnostic plan by listing possible causes in order of likelihood. Then analyze each cause one by one, explaining how to verify it.
Problem: My Next.js application returns a 500 error only in production, never in local development.
Practical usage
To apply Plan And Solve, add an explicit instruction asking the model to plan before acting, for example: "First design a plan, then solve the problem step by step." For the PS+ variant, specify expected subtasks such as extracting key data, identifying relationships between variables, and checking each intermediate calculation. This technique is particularly effective for multi-step problems where the model might skip steps or lose the thread of reasoning.
Related concepts
FAQ
What is the difference between Plan And Solve and Chain of Thought?
Does Plan And Solve require examples in the prompt?
In which cases is Plan And Solve most useful?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Positional Encoding: Definition and Examples
Positional Encoding is a technique used in Transformer architectures to inject information about the position of each token in a sequence.
Precision Recall: Definition and Examples
Precision and recall are two complementary metrics used to evaluate the quality of a classification model's results.
Presence Penalty: Definition and Examples
The Presence Penalty is a language model parameter that penalizes tokens that have already appeared in the generated text, encouraging the model to introduce
Program of Thought: Definition and Examples
Prompting technique where the model generates executable code to solve a reasoning problem, instead of producing a natural language chain of thought.
Prompt Chaining: Definition and Examples
Prompt chaining is a technique that involves chaining multiple sequential prompts, where the output of each step feeds the input of the next, to
Prompt Compression: Definition and Examples
Technique for reducing the length of a prompt while preserving its meaning and effectiveness, to optimize token usage and improve
Get new prompts every week
Join our newsletter.