Learn Before
Example of a Code Completion Prompt
A type of prompt directed at a language model to perform a code completion task. The example, 'Complete the rest of the sequence, making sure that the parentheses are closed properly. Input: [ {', tests the model's ability to understand natural language instructions and apply knowledge of formal syntax, such as that of JSON, to generate a correct continuation.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Learn After
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