Tuple Representation of a Simple Prompt
A simple prompt, represented as , can be formally expressed as a tuple containing two key elements: the instruction, denoted by , and the user input, denoted by . This relationship is captured in the formula .

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
Tuple Representation of a Simple Prompt
A user wants to generate a one-paragraph summary of a long article. They provide the entire article text to a language model as the prompt, but the model's output is a continuation of the article's topic rather than a summary. Based on the principles of effective prompt structure, what is the most likely reason for this poor result?
Analyzing a Flawed Prompt
Deconstructing a Prompt
Learn After
A user provides the following text to a language model: 'Summarize the main points of the following article: [Text of a long article...]'. If this prompt is broken down into its two core components, an instruction and a user input, which option below correctly separates them?
Analyzing a Flawed Prompt Representation
A user provides an instruction,
c, which is 'Translate the following sentence to French'. The user also provides an input,z, which is 'The cat is sleeping on the mat.'. According to the formal representation where a promptxis a tuple of these two elements,xwould be written as ____.