Structuring a Prompt for an AI System
A developer is building a system to automatically generate product descriptions. The system needs to pass structured information to a language model. Given the following data for a new product, construct a single, valid JSON object that organizes this information into a key-value format suitable for the model.
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