Learn Before
Improving Code Debugging with Prompts
A developer asks a language model to find a bug in a complex function. The prompt is simply: 'Find the bug in this code: [code snippet]'. The model provides a single incorrect line of code as a fix without any explanation. What specific phrase or sentence could the developer add to their prompt to increase the likelihood of receiving a correct and well-reasoned answer? Provide one concrete example of such an instruction.
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 is attempting to have a language model solve a multi-step logic puzzle. The initial prompt, 'Solve the following logic puzzle: [puzzle details]', frequently results in an incorrect final answer. Which of the following revised prompts best applies the principle of guiding the model towards a more reliable solution by explicitly requesting a more detailed thought process?
Improving LLM Project Timeline Estimation
Improving Code Debugging with Prompts