Advanced Prompt Engineering Techniques
Master every prompting method for ChatGPT, Claude, and Gemini. From chain-of-thought to tree-of-thoughts, self-refine to ReAct โ with real examples and model-specific tips.
๐ง Reasoning & Logic
View all โTechniques that improve logical reasoning, step-by-step thinking, and problem-solving accuracy
Chain-of-Thought (CoT)
Chain-of-Thought prompting guides the AI to break down complex problems into intermediate reasoning steps before arriving at a final answer. Instead of jumping to conclusions, the model shows its work โ dramatically improving accuracy on math, logic, and multi-step reasoning tasks.
Zero-Shot Prompting
Zero-shot prompting asks the AI to perform a task using only natural language instructions โ no examples provided. The model relies entirely on its pre-trained knowledge and the clarity of your instructions to produce the desired output.
Tree of Thoughts (ToT)
Tree of Thoughts extends chain-of-thought by exploring multiple reasoning paths simultaneously, evaluating each branch, and selecting the most promising direction. Instead of a single linear chain, the model considers several possible approaches before committing.
Task Decomposition
Task decomposition breaks a complex problem into smaller, manageable sub-tasks that the AI can handle individually. Unlike prompt chaining (which is about workflow), decomposition is about problem structure โ identifying the right sub-problems to solve.
Step-Back Prompting
Step-back prompting asks the AI to first consider the broader concept or principle behind a question before attempting to answer the specific query. By abstracting to a higher level first, the model activates more relevant knowledge and produces more accurate, well-reasoned answers.
โจ Output Optimization
View all โMethods to refine, verify, and improve the quality of AI-generated outputs
Self-Consistency
Self-consistency prompting generates multiple independent responses to the same question using different reasoning paths, then selects the most common answer. It's like asking several experts independently and going with the majority consensus.
Self-Refine
Self-Refine is a technique where the AI generates an initial response, critiques its own output, then produces an improved version. This iterative self-improvement cycle can be repeated multiple times, with each round producing better results.
Chain of Verification (CoVe)
Chain of Verification asks the AI to generate an answer, then systematically verify each claim in its response by asking itself targeted follow-up questions. This dramatically reduces hallucinations and factual errors.
Constitutional AI Prompting
Constitutional AI prompting defines explicit principles or rules that the AI must follow when generating and self-critiquing responses. The model generates output, then revises it against a set of 'constitutional' rules you define โ ensuring alignment with your values and standards.
Rephrase and Respond (RaR)
Rephrase and Respond asks the AI to first rephrase the user's question in its own words before answering. This simple step forces the model to deeply process the question, resolve ambiguities, and often reveals the true intent โ leading to more accurate and relevant answers.
๐ค Agent & Autonomous
View all โTechniques for building autonomous AI agents that reason, plan, and take actions
ReAct Prompting
ReAct (Reasoning + Acting) prompting interleaves chain-of-thought reasoning with concrete actions like searching, calculating, or calling APIs. The model thinks about what it needs to do, takes an action, observes the result, then reasons about the next step.
Prompt Chaining
Prompt chaining breaks a complex task into a sequence of simpler prompts, where each prompt's output becomes the next prompt's input. Like an assembly line, each step handles one specific sub-task, producing higher quality results than a single monolithic prompt.
Reflexion
Reflexion is a technique where the AI agent reflects on its failures from previous attempts to improve future performance. After a task attempt fails or produces suboptimal results, the model generates a verbal reflection on what went wrong and uses that insight for the next attempt.
๐ Knowledge & Retrieval
View all โApproaches that enhance AI responses with external knowledge and context
Few-Shot Prompting
Few-shot prompting provides the AI with 2-5 examples of the desired input-output pattern before asking it to handle a new case. The model learns the task format, style, and logic from these examples โ no fine-tuning required.
RAG (Retrieval-Augmented Generation)
RAG combines an AI language model with an external knowledge retrieval system. Instead of relying solely on training data, the model first retrieves relevant documents from a database, then generates answers grounded in those specific sources.
System Prompt Design
System prompt design is the art of crafting the persistent instructions that shape an AI's behavior across an entire conversation. A well-designed system prompt defines the AI's role, capabilities, constraints, output format, and behavioral guidelines.
๐จ Creative & Generative
View all โMethods for unlocking creative potential and generating novel content
Meta-Prompting
Meta-prompting uses AI to generate, refine, or optimize prompts themselves. Instead of writing prompts manually, you ask the model to create the best prompt for a given task โ essentially using AI to improve its own instructions.
Role Prompting
Role prompting assigns the AI a specific persona, expertise, or character before giving it a task. By framing 'You are a senior software architect...' or 'Act as a Harvard MBA professor...', the model adjusts its vocabulary, depth, perspective, and reasoning style.
Emotion Prompting
Emotion prompting adds emotional context or stakes to a prompt to improve the quality and effort of AI responses. Research shows that phrases like 'This is very important to my career' or 'Take a deep breath and think carefully' can measurably improve model performance.
Skeleton of Thought
Skeleton of Thought asks the AI to first generate a high-level outline (skeleton) of the answer, then expand each section in parallel or sequentially. This produces better-structured, more comprehensive responses and can dramatically speed up generation.
Guides & Resources
Level up your AI prompting skills
From beginner-friendly techniques to expert methods, master 20+ prompting strategies with real-world examples and model-specific tips.
Explore All AI Prompts โ