来源:https://www.promptingguide.ai/techniques 爬取日期:2026-03-22
Prompting Techniques
Prompt Engineering helps to effectively design and improve prompts to get better results on different tasks with LLMs.
While the previous basic examples were fun, in this section we cover more advanced prompting engineering techniques that allow us to achieve more complex tasks and improve reliability and performance of LLMs.
Available Techniques
The guide covers the following 18 prompting techniques:
- Zero-shot Prompting — Prompting without any examples
- Few-shot Prompting — Providing demonstrations/examples in the prompt
- Chain-of-Thought Prompting — Enabling reasoning through intermediate steps
- Meta Prompting — Using prompts to generate or improve prompts
- Self-Consistency — Sampling multiple reasoning paths and selecting the most consistent answer
- Generate Knowledge Prompting — Generating relevant knowledge before answering
- Prompt Chaining — Breaking complex tasks into sequential sub-tasks
- Tree of Thoughts — Exploring multiple reasoning pathways systematically
- Retrieval Augmented Generation (RAG) — Combining retrieval with generation
- Automatic Reasoning and Tool-use (ART) — Automating reasoning with tool integration
- Automatic Prompt Engineer (APE) — Automated prompt optimization
- Active-Prompt — Actively selecting the most informative examples
- Directional Stimulus Prompting — Using hints/cues to guide generation
- Program-Aided Language Models (PAL) — Offloading computation to code
- ReAct — Combining reasoning and acting with external tools
- Reflexion — Self-reflection and iterative improvement
- Multimodal CoT — Chain-of-thought for multimodal inputs
- Graph Prompting — Prompting with graph-structured data