Restructuring a Prompt into JSON
A developer has written the following unstructured text to guide a language model in generating a product description: 'Generate a description for a new product. The product is a 'Smart Coffee Mug'. Key features are 'temperature control' and 'app connectivity'. The tone should be 'enthusiastic and tech-focused'. The description should be no more than 100 words.'
Restructure this information into a valid JSON object with appropriate keys and values to make it more organized and easier for a system to process.
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
Structuring a Prompt for an AI System
A developer is building an application that generates personalized story summaries. The system needs three distinct pieces of information to create a summary: the
book_title, theuser_name, and the desiredsummary_length(e.g., 'short', 'medium', 'detailed'). To ensure the system can reliably and efficiently handle thousands of these requests, which of the following data structures is the most appropriate for representing the information for a single request?Restructuring a Prompt into JSON
Example of a JSON Prompt Representation