Learn Before
Constructing a Prompt Template for a Chatbot
You are designing a chatbot that generates personalized travel suggestions. The chatbot needs to use two specific pieces of user input: a desired city and a preferred type of activity (e.g., 'museums', 'hiking', 'restaurants'). Construct a complete prompt template that incorporates placeholders for these two variables to request a travel suggestion from a language 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
Creation in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Examples of Prompt Templates for Weekend Suggestions
Variable vs. Static Prompt Templates
Prompt Templates with Multiple Variables
Literal Text in Prompt Templates
A developer is building an application that uses a language model to generate a two-sentence summary for any user-provided book description. To ensure the model performs this task consistently for different books, the developer needs a reusable input structure that combines a fixed instruction with the variable book description. Which of the following options is the most effective and correctly structured example for this purpose?
Constructing a Prompt Template for a Chatbot
Evaluating a Customer Support Automation Strategy
Target Output Indicator in Prompt Templates
Prompt Templates for Task Adaptation without Structural Modification