Learn Before
Rewriting a Prompt for Structured Output
A user wants to generate a recipe that can be easily processed by a computer program. Their current prompt is: 'Give me a recipe for chocolate chip cookies.' Rewrite this prompt to explicitly request the output in a structured format using distinct sections for elements like 'Title', 'Ingredients', and 'Instructions'.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
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