Learn Before
Creating a Reusable Prompt Template
You are tasked with creating a reusable instruction for a language model to perform sentiment analysis on customer feedback. The goal is to have a single template that can be used for any piece of feedback. Below is a specific example of a complete instruction:
'What is the sentiment of the following customer feedback? Feedback: The product was amazing and arrived on time.'
Modify this instruction to create a general-purpose template by replacing the specific customer feedback with a placeholder.
0
1
Tags
Ch.2 Generative Models - 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
Examples of Prompt Templates for Grammaticality Judgment
Example of Instantiating a Placeholder in a Grammaticality Judgment Prompt
Example of a Prompt for Grammaticality Judgment
A developer is building a system that uses a language model to summarize news articles. They need to create a single, reusable instruction that can work for any article provided by a user. Which of the following options correctly uses a placeholder to create such a flexible template?
Creating a Reusable Prompt Template
Match each term related to creating dynamic instructions for a language model with its correct description.
Examples of Prompt Templates for English-to-Chinese Translation
Example of a Sentence-First Prompt for Grammaticality Judgment with Answer Options
Example of a Constraint-First Prompt for Grammaticality Judgment