What is a Prompt ?
Prompts are nothing but detailed instructions that help LLMs generate great output.
For example :
Write a professional email to a customer thanking them for purchasing our premium subscription. Keep the tone polite and concise, and highlight three benefits of the premium plan.
What is a Prompt Template ?
A Prompt Template is a reusable structure of instructions that can be filled with variables.
Instead of writing a new prompt every time, you can design a template once and pass in values dynamically.
For example:
Here, {tone}, {role}, {topic}, and {key_points} are variables that can be replaced depending on the context.
- Template:
Write a {tone} email to a {role} about {topic}. Make sure the email includes {key_points}.
-
Filled Variables:
-
{tone}= friendly -
{role}= customer -
{topic}= upcoming feature launch -
{key_points}= launch date, benefits, and call-to-action -
Generated Prompt:
Write a friendly email to a customer about the upcoming feature launch. Make sure the email includes the launch date, benefits, and a clear call-to-action.