Improving a Prompt for a Calculation Task
A user is finding that a language model often makes mistakes on multi-step arithmetic problems. Below is a prompt the user tried:
"A project requires 3 painters working for 8 hours at $25/hour, 50 gallons of paint at $30/gallon, and equipment rental for $150. What is the total cost?"
Rewrite this prompt to include a specific instruction that encourages the model to detail its calculation process before stating the final answer, a technique that can improve the accuracy of the result.
0
1
Tags
Ch.5 Inference - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A user wants a large language model to solve a complex logic puzzle that requires several steps of deduction. Consider the two prompts below:
Prompt 1: "Here is a logic puzzle. What is the final answer? [Puzzle details follow]"
Prompt 2: "Here is a logic puzzle. Before providing the final answer, work through the puzzle step-by-step and explain your reasoning. [Puzzle details follow]"
What is the most likely outcome of using Prompt 2 compared to Prompt 1 for this type of task?
Improving a Prompt for a Calculation Task
Example of an Enhanced Role-Playing Prompt for Mathematical Reasoning
Improving an AI Financial Analyst Tool