Learn Before
Literal Text in Prompt Templates
Prompt templates consist of static, literal text that provides instructions or context for a language model's task. This fixed text frames the variable inputs. For instance, a template for a semantic similarity task might include the literal instruction 'Compute the semantic similarity between the two sentences' along with framing text like 'Here is a sentence' and 'Here is another sentence' to structure the inputs 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
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
Learn After
A developer needs a language model to generate a one-sentence summary of a customer review. To do this, the developer will place the customer's review into a pre-defined text structure. Which of the following structures uses its fixed, unchanging text most effectively to instruct the model to perform this specific task?
Constructing a Prompt for Email Classification
Example of a Prompt Template for Semantic Similarity
A developer is using the text structure 'Here is some text: {unstructured_text}. What are the key-value pairs?' to extract information from a user's message. The model's responses are often conversational and not in the desired structured format. Which of the following changes to the fixed, instructional text would be most effective at guiding the model to produce a structured key-value pair output?