Learn Before
Specifying Input Structure Using Delimiters
A practical method for structuring prompts is to use delimiters, such as quotation marks, to segregate different sections of the input text. To ensure the model correctly interprets this structure, the prompt should also include an explicit instruction explaining the role of the delimiters, for instance, by stating that 'the input text is delimited by double quotes.'
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
Specifying Input Structure Using Delimiters
A developer is building a system to extract key information (product name, price, and stock status) from unstructured product descriptions. Their initial prompt, "Extract the product name, price, and stock status from the following text:", yields inconsistent and unreliable results. Which of the following revised prompts is most likely to produce consistently structured and accurate output?
Improving Product Comparison Generation
Rewriting a Prompt for Structured Output
Learn After
A user wants a language model to summarize a specific customer review. Their current prompt is:
Summarize the following customer review for me. The customer was initially unhappy with the shipping time but was very pleased with the product quality and customer service.The model's summary is often inaccurate because it gets confused about which part of the text is the instruction and which part is the review to be summarized. Which of the following revised prompts is most likely to produce the desired summary by most effectively clarifying the different parts of the input for the model?Debugging a Prompt for Text Summarization
Improving Prompt Reliability with Delimiters