# 第十一章 提示词工程入门

> 学会“说人话”，让 AI 真正听懂你的需求

***

你是否遇到过这种情况：满怀期待地问 AI 一个问题，结果它回了一堆正确的废话，或者根本没听懂你的意思？

很多人因此觉得“AI 也不过如此”。其实，问题可能不在 AI 身上，而在我们 **提问的方式** 上。

在 AI 时代，**“会提问”成为了一项核心技能。这种向 AI 提问、引导它输出高质量结果的技巧，被称为提示词工程（Prompt Engineering）**。

别被这个高大上的名字吓跑了。虽然带个“工程”，但它不需要你懂任何代码。简单来说，它也是一门 **沟通的艺术**——就像你学着如何更清晰地给同事布置任务、如何更准确地向老板汇报工作一样。

本章将教你这门 AI 时代的必修课，让你成为能够驾驭 AI 的“沟通大师”。

## 本章内容

* **11.1 什么是提示词工程**：揭开“咒语”的神秘面纱
* **11.2 编写有效提示词的基本原则**：掌握核心心法，从此告别废话
* **11.3 常见提示词模式**：几个好用的万能模板
* **11.4 避免常见错误**：新手最容易踩的那些坑
* **11.5 当提示词失效时**：理解提示词工程的局限与突破方向

> 💡 **延伸阅读**：如需系统掌握提示词工程，请参阅[《大模型提示词工程指南》](https://yeasy.gitbook.io/prompt_engineering_guide)和[《Claude 技术指南》](https://yeasy.gitbook.io/claude_guide)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeasy.gitbook.io/ai_beginner_guide/di-san-bu-fen-shi-zhan-ying-yong-ji-qiao/11_prompt_basics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
