Learn Before
Example of a Prompt for Nested Bracket Completion
A prompt can be designed to test a large language model's ability to handle nested structures by asking it to complete a sequence of brackets. The model must generate the correct closing brackets to ensure syntactic validity. For instance, a prompt might be: 'Complete the rest of the sequence, making sure that the parentheses are closed properly. Input: [ [' or a similar prompt with the input '[ ['. These prompts require the model to understand nesting and provide the corresponding closing brackets in the correct order.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of a Prompt for Nested Bracket Completion
Chain-of-Thought Prompting
A developer is using a language model to generate a simple, syntactically correct data structure. The developer provides the model with the starting text
{"name": "Alex",and wants the model to finish it, for example, as"id": 123}. Which of the following prompts is most effectively structured to guide the model toward this specific kind of completion?Debugging a Sequence Completion Prompt
Crafting a Sequence Completion Prompt
Learn After
A language model is given the following input sequence of opening brackets:
( { [. The model is tasked with generating the correct sequence of closing brackets to form a syntactically valid structure. Which of the following outputs represents the correct completion?Analyzing a Language Model's Failure on Nested Structures
Initiating Step-by-Step Reasoning for Problem Solving
Evaluating Prompt Designs for Nested Structures