Types of Prompts
Different tasks require different types of prompts. Common categories include:
• Descriptive prompts – For explanations or summaries
• Instructional prompts – For how-to guidance or procedures
• Creative prompts – For storytelling or ideation
• Comparative prompts – For pros/cons or analysis
Each type helps tailor the output style and depth of information
Zero-shot and few-shot prompting:
Zero-Shot Prompting
Zero-Shot PromptingProviding no examples, just instructions.
Example:
“Translate this sentence to French: ‘I love learning AI.’”
Few-Shot Prompting
Providing a few examples before asking the model to continue the pattern.
Example:
This helps the model understand the format and expected output better.
Chain-of-thought prompting
Chain-of-thought prompting involves asking the model to “think out loud” or break down its reasoning step-by-step.
Example:
“Is 725 an odd number? Explain your reasoning step by step.”
This method improves performance on tasks involving logic, math, or stepwise reasoning.