Designing a Conditional Prompt Template
You are designing a feature for a travel app that suggests weekend activities. The suggestions need to change based on whether the user is traveling alone, with a partner, or with their family. Create a single prompt template that uses a placeholder to accommodate these different user scenarios.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Creation in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Instantiating a Variable in a Prompt Template
A developer is building an application that generates personalized weekend activity suggestions. The application must use two specific pieces of user information: their budget (e.g., 'low', 'high') and their location (e.g., 'city', 'countryside'). Which of the following text structures is best designed to be programmatically filled with this information to consistently generate the most relevant suggestions?
Designing a Conditional Prompt Template
Improving a Prompt Template for Better Weekend Suggestions