🚀 21 Prompt Engineering Techniques 💡

Role Assignment

Assign a specific role to the AI to set the context for its responses.

Step-by-Step Instructions

Break down complex tasks into smaller steps for instruction.

Providing Examples

Provide specific examples of desired output to AI.

Setting Constraints

Set limitations on response length, format, style, etc.

Providing Context

Provide background information to elicit more accurate responses.

Multiple Perspectives

Request responses from multiple viewpoints on a single topic.

Chain of Thought

Request AI to explain its thought process step by step.

Zero-Shot Learning

Request AI to perform new tasks without prior training.

Few-Shot Learning

Perform new tasks with just a few examples.

Self-Consistency

Generate multiple responses from AI and select the most consistent answer.

Meta-Language Usage

Use special commands or tags to control AI behavior.

Using Templates

Use consistent prompt formats for repetitive tasks.

Iterative Refinement

Gradually improve prompts based on AI responses.

Thought Expansion

Request AI to expand or deepen initial ideas.

Role Reversal

Gain new perspectives by assigning different roles to AI.

Prompting for Creativity

Encourage the generation of original and innovative ideas.

Including Ethical Considerations

Request AI to consider ethical aspects.

Multimodal Prompting

Combines various forms of input including text, images, audio, etc.

Prompt Chaining

Connects multiple prompts to perform complex tasks step by step.

Context Injection

Provides additional background information or context to AI to elicit more accurate and relevant responses.

Meta Prompting

Provides guidelines to AI on how to write prompts or respond, leading to more effective results.