教程中心
AI Agent 从入门到实战:概念理解、MCP 使用、平台实操、工作流自动化
1252
教程总数
234
入门教程
42
实操教程
按主题浏览
Prompt Engineering Mastery: Advanced Techniques for 2025
Go beyond basic prompts—master the techniques that actually move model performance
Prompt engineering is more than adding "think step by step." This comprehensive guide covers advanced techniques: chain-of-thought and tree-of-thought prompting, few-shot examples with optimal selection strategies, prompt chaining for complex tasks, self-consistency and majority voting, constitutional AI prompting, prompt compression for cost optimization, and systematic prompt evaluation frameworks. Includes real benchmarks comparing techniques.
Zero-Shot Prompting: Complete Guide with Examples 2026
Master Zero-Shot Prompting for better AI outputs
Zero-Shot Prompting: Complete Guide 2026 What is Zero-Shot Prompting? Zero-Shot Prompting is a prompt engineering technique where you ask the AI to perform a task without any examples. It's one of the most effective methods for improving AI respons
Meta-Prompting: Complete Guide and Examples
Master meta-prompting — using LLM to generate better prompts — best for prompt optimization
Meta-Prompting: Complete Guide What is Meta-Prompting? Meta-Prompting is a prompting technique that involves using LLM to generate better prompts. It is particularly effective for prompt optimization. When to Use Meta-Prompting Use this technique
Self-Consistency Sampling: Complete Guide and Examples
Master self-consistency sampling — multiple solutions voted by majority — best for reliable reasoning
Self-Consistency Sampling: Complete Guide What is Self-Consistency Sampling? Self-Consistency Sampling is a prompting technique that involves multiple solutions voted by majority. It is particularly effective for reliable reasoning. When to Use Se
Chain-of-Thought Prompting: Complete Guide with Examples 2026
Master Chain-of-Thought Prompting for better AI outputs
Chain-of-Thought Prompting: Complete Guide 2026 What is Chain-of-Thought Prompting? Chain-of-Thought Prompting is a prompt engineering technique where you ask the model to show its reasoning step by step. It's one of the most effective methods for
Constrained Generation: Complete Guide and Examples
Master constrained generation — controlling output format via prompts — best for structured data
Constrained Generation: Complete Guide What is Constrained Generation? Constrained Generation is a prompting technique that involves controlling output format via prompts. It is particularly effective for structured data. When to Use Constrained G
Zero-Shot Prompting: Complete Guide and Examples
Master zero-shot prompting — direct task specification without examples — best for classification and generation
Zero-Shot Prompting: Complete Guide What is Zero-Shot Prompting? Zero-Shot Prompting is a prompting technique that involves direct task specification without examples. It is particularly effective for classification and generation. When to Use Zer
Few-Shot Learning Prompts: Complete Guide with Examples 2026
Master Few-Shot Learning Prompts for better AI outputs
Few-Shot Learning Prompts: Complete Guide 2026 What is Few-Shot Learning Prompts? Few-Shot Learning Prompts is a prompt engineering technique where you provide 2-5 examples to teach the model the pattern. It's one of the most effective methods for
Role Prompting: Complete Guide and Examples
Master role prompting — assigning expert persona for better answers — best for domain expertise
Role Prompting: Complete Guide What is Role Prompting? Role Prompting is a prompting technique that involves assigning expert persona for better answers. It is particularly effective for domain expertise. When to Use Role Prompting Use this techn
Few-Shot Prompting: Complete Guide and Examples
Master few-shot prompting — providing examples to guide LLM behavior — best for consistent formatting
Few-Shot Prompting: Complete Guide What is Few-Shot Prompting? Few-Shot Prompting is a prompting technique that involves providing examples to guide LLM behavior. It is particularly effective for consistent formatting. When to Use Few-Shot Prompti
Constrained Generation: Complete Guide with Examples 2026
Master Constrained Generation for better AI outputs
Constrained Generation: Complete Guide 2026 What is Constrained Generation? Constrained Generation is a prompt engineering technique where you specify precise constraints on length, format, or content. It's one of the most effective methods for imp
Generated Knowledge: Complete Guide and Examples
Master generated knowledge — prompting to generate context before answering — best for factual accuracy
Generated Knowledge: Complete Guide What is Generated Knowledge? Generated Knowledge is a prompting technique that involves prompting to generate context before answering. It is particularly effective for factual accuracy. When to Use Generated Kn
Prompt Compression: Complete Guide and Examples
Master prompt compression — reducing token count without losing meaning — best for cost optimization
Prompt Compression: Complete Guide What is Prompt Compression? Prompt Compression is a prompting technique that involves reducing token count without losing meaning. It is particularly effective for cost optimization. When to Use Prompt Compressio
Chain-of-Thought Prompting: Complete Guide and Examples
Master chain-of-thought prompting — step-by-step reasoning in prompts — best for math and logic tasks
Chain-of-Thought Prompting: Complete Guide What is Chain-of-Thought Prompting? Chain-of-Thought Prompting is a prompting technique that involves step-by-step reasoning in prompts. It is particularly effective for math and logic tasks. When to Use
Structured Output Prompting: Complete Guide with Examples 2026
Master Structured Output Prompting for better AI outputs
Structured Output Prompting: Complete Guide 2026 What is Structured Output Prompting? Structured Output Prompting is a prompt engineering technique where you specify the exact format you want (JSON, markdown, tables). It's one of the most effective
Adversarial Prompting: Complete Guide and Examples
Master adversarial prompting — testing robustness against manipulation — best for security testing
Adversarial Prompting: Complete Guide What is Adversarial Prompting? Adversarial Prompting is a prompting technique that involves testing robustness against manipulation. It is particularly effective for security testing. When to Use Adversarial P
Directional Stimulus: Complete Guide and Examples
Master directional stimulus — guiding LLM with hints and cues — best for targeted outputs
Directional Stimulus: Complete Guide What is Directional Stimulus? Directional Stimulus is a prompting technique that involves guiding LLM with hints and cues. It is particularly effective for targeted outputs. When to Use Directional Stimulus Us
Iterative Refinement Prompting: Complete Guide with Examples 2026
Master Iterative Refinement Prompting for better AI outputs
Iterative Refinement Prompting: Complete Guide 2026 What is Iterative Refinement Prompting? Iterative Refinement Prompting is a prompt engineering technique where you ask the AI to critique and improve its own output. It's one of the most effective
Contextual Grounding: Complete Guide with Examples 2026
Master Contextual Grounding for better AI outputs
Contextual Grounding: Complete Guide 2026 What is Contextual Grounding? Contextual Grounding is a prompt engineering technique where you provide rich background context before the actual question. It's one of the most effective methods for improvin
Prompt Chaining: Complete Guide and Examples
Master prompt chaining — multi-stage prompts for complex workflows — best for pipeline processing
Prompt Chaining: Complete Guide What is Prompt Chaining? Prompt Chaining is a prompting technique that involves multi-stage prompts for complex workflows. It is particularly effective for pipeline processing. When to Use Prompt Chaining Use this
Retrieval-Augmented Prompting: Complete Guide and Examples
Master retrieval-augmented prompting — injecting retrieved context into prompts — best for RAG systems
Retrieval-Augmented Prompting: Complete Guide What is Retrieval-Augmented Prompting? Retrieval-Augmented Prompting is a prompting technique that involves injecting retrieved context into prompts. It is particularly effective for RAG systems. When
Reflexion Prompting: Complete Guide and Examples
Master reflexion prompting — self-reflection and iterative improvement — best for agent learning
Reflexion Prompting: Complete Guide What is Reflexion Prompting? Reflexion Prompting is a prompting technique that involves self-reflection and iterative improvement. It is particularly effective for agent learning. When to Use Reflexion Prompting
Role-Based Prompting: Complete Guide with Examples 2026
Master Role-Based Prompting for better AI outputs
Role-Based Prompting: Complete Guide 2026 What is Role-Based Prompting? Role-Based Prompting is a prompt engineering technique where you assign a specific expert role to the AI model. It's one of the most effective methods for improving AI response
Metacognitive Prompting: Complete Guide with Examples 2026
Master Metacognitive Prompting for better AI outputs
Metacognitive Prompting: Complete Guide 2026 What is Metacognitive Prompting? Metacognitive Prompting is a prompt engineering technique where you ask the model to reflect on its own reasoning process. It's one of the most effective methods for impr
Maieutic Prompting: Complete Guide and Examples
Master maieutic prompting — Socratic questioning for deeper reasoning — best for complex analysis
Maieutic Prompting: Complete Guide What is Maieutic Prompting? Maieutic Prompting is a prompting technique that involves Socratic questioning for deeper reasoning. It is particularly effective for complex analysis. When to Use Maieutic Prompting
Analogical Reasoning Prompts: Complete Guide with Examples 2026
Master Analogical Reasoning Prompts for better AI outputs
Analogical Reasoning Prompts: Complete Guide 2026 What is Analogical Reasoning Prompts? Analogical Reasoning Prompts is a prompt engineering technique where you use analogies to help explain complex concepts. It's one of the most effective methods
System Prompt Design: Complete Guide and Examples
Master system prompt design — crafting effective system instructions — best for behavior control
System Prompt Design: Complete Guide What is System Prompt Design? System Prompt Design is a prompting technique that involves crafting effective system instructions. It is particularly effective for behavior control. When to Use System Prompt Des
Least-to-Most Prompting: Complete Guide and Examples
Master least-to-most prompting — decomposing complex problems bottom-up — best for multi-step tasks
Least-to-Most Prompting: Complete Guide What is Least-to-Most Prompting? Least-to-Most Prompting is a prompting technique that involves decomposing complex problems bottom-up. It is particularly effective for multi-step tasks. When to Use Least-to
ReAct Prompting: Complete Guide and Examples
Master react prompting — reasoning and acting in iterative loops — best for tool-using agents
ReAct Prompting: Complete Guide What is ReAct Prompting? ReAct Prompting is a prompting technique that involves reasoning and acting in iterative loops. It is particularly effective for tool-using agents. When to Use ReAct Prompting Use this tech
Program-of-Thought: Complete Guide and Examples
Master program-of-thought — code execution as reasoning substrate — best for quantitative tasks
Program-of-Thought: Complete Guide What is Program-of-Thought? Program-of-Thought is a prompting technique that involves code execution as reasoning substrate. It is particularly effective for quantitative tasks. When to Use Program-of-Thought Us
Tree of Thoughts: Complete Guide and Examples
Master tree of thoughts — branching reasoning paths for complex problems — best for multi-step problems
Tree of Thoughts: Complete Guide What is Tree of Thoughts? Tree of Thoughts is a prompting technique that involves branching reasoning paths for complex problems. It is particularly effective for multi-step problems. When to Use Tree of Thoughts