Learn Before
Analyzing Prompt Effectiveness for Multi-Step Calculations
An analyst is using a language model to perform a multi-step calculation: finding the percentage change in quarterly sales. They have drafted two prompts.
Prompt A: "Q: Last quarter's sales were $80 and this quarter's sales are $100. What is the percentage change? A: First, find the difference: $100 - $80 = $20. Then, divide the difference by the original amount: $20 / $80 = 0.25. Finally, multiply by 100 to get the percentage: 0.25 * 100 = 25%. The percentage change is 25%.
Q: Last quarter's sales were $500 and this quarter's sales are $450. What is the percentage change?"
Prompt B: "Q: Last quarter's sales were $80 and this quarter's sales are $100. What is the percentage change? A: First, find the difference: $100 - $80 = $20. Then, divide the difference by the original amount: $20 / $80 = 0.25. Finally, multiply by 100 to get the percentage: 0.25 * 100 = 25%. The percentage change is 25%.
Q: Last quarter's sales were $200 and this quarter's sales are $250. What is the percentage change? A: First, find the difference: $250 - $200 = $50. Then, divide the difference by the original amount: $50 / $200 = 0.25. Finally, multiply by 100 to get the percentage: 0.25 * 100 = 25%. The percentage change is 25%.
Q: Last quarter's sales were $500 and this quarter's sales are $450. What is the percentage change?"
Analyze the two prompts. Explain why Prompt B is likely to produce more reliable and accurate results for the final question compared to Prompt A.
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A developer is using a large language model to solve complex logic puzzles that require several steps of reasoning. The model consistently provides incorrect final answers without explaining its process. To improve the model's performance and elicit a step-by-step thought process, which of the following prompt structures would be most effective?
Analyzing Prompt Effectiveness for Multi-Step Calculations
Difficulty of Creating Few-Shot CoT Demonstrations
Improving Model Reasoning for a New Task
Example of a Few-Shot CoT Prompt with Mean Square Demonstration