Learn Before
Constructing a Multi-Variable Prompt Template
You are tasked with creating a prompt that asks a language model to write a brief comparison between two different programming languages. The prompt needs to be reusable for any pair of languages. Write a prompt template that includes distinct placeholders for the name of the first language and the name of the second language.
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
Example of a Prompt Template for Semantic Similarity
Constructing a Multi-Variable Prompt Template
A developer is building an application that uses a large language model to generate a paragraph comparing two distinct products. The application needs to take the names of both products as separate inputs. Which prompt template design is most effective and robust for this task?
Debugging a Prompt Generation System