Learn Before
Debugging a Code Completion Prompt
A developer is using a language model to complete a JSON object. Analyze the provided prompt and the model's output. Explain why the model likely failed to produce a complete, syntactically valid object, and then write a revised prompt that is more likely to succeed.
0
1
Tags
Ch.3 Prompting - 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 wants to use a language model to generate a Python function that takes two numbers as input and returns their sum. Which of the following prompts is best structured to elicit the most accurate and complete code for this specific task?
Debugging a Code Completion Prompt
Crafting a Code Completion Prompt for a Python Dictionary