# 基本原则 & 建议

在和 ChatGPT 对话时，亦或者在使用和设计 prompt 时，有以下几个原则与建议。记住这几个原则，能让你写出更好的 prompt 😁

#### 建议使用最新的模型[​](https://learningprompt.wiki/docs/chatGPT/tutorial-basics/%E5%9F%BA%E6%9C%AC%E5%8E%9F%E5%88%99%20&%20%E5%BB%BA%E8%AE%AE#%E5%BB%BA%E8%AE%AE%E4%BD%BF%E7%94%A8%E6%9C%80%E6%96%B0%E7%9A%84%E6%A8%A1%E5%9E%8B) <a href="#jian-yi-shi-yong-zui-xin-de-mo-xing" id="jian-yi-shi-yong-zui-xin-de-mo-xing"></a>

如果你是直接使用 AI 产品，比如 ChatGPT 或者 Midjourney，那无需在意这个原则。如果你是通过 API 或者 OpenAI Playground 的方式使用，则建议你先使用最新的模型测试。

#### Prompt 里最好包含完整的信息[​](https://learningprompt.wiki/docs/chatGPT/tutorial-basics/%E5%9F%BA%E6%9C%AC%E5%8E%9F%E5%88%99%20&%20%E5%BB%BA%E8%AE%AE#prompt-%E9%87%8C%E6%9C%80%E5%A5%BD%E5%8C%85%E5%90%AB%E5%AE%8C%E6%95%B4%E7%9A%84%E4%BF%A1%E6%81%AF) <a href="#prompt-li-zui-hao-bao-han-wan-zheng-de-xin-xi" id="prompt-li-zui-hao-bao-han-wan-zheng-de-xin-xi"></a>

这个是对结果影响最大的因素。比如如果你想让 AI 写一首关于 OpenAI 的诗。

Less effective prompt:

```
Write a poem about OpenAI.
```

它生成的答案可能就会很宽泛，而更好的方式是增加更多的信息。

Better prompt:

```
Write a short inspiring poem about OpenAI, focusing on the recent DALL-E product launch (DALL-E is a text to image ML model) in the style of a {famous poet}
```

#### Prompt 最好简洁易懂，并减少歧义[​](https://learningprompt.wiki/docs/chatGPT/tutorial-basics/%E5%9F%BA%E6%9C%AC%E5%8E%9F%E5%88%99%20&%20%E5%BB%BA%E8%AE%AE#prompt-%E6%9C%80%E5%A5%BD%E7%AE%80%E6%B4%81%E6%98%93%E6%87%82%E5%B9%B6%E5%87%8F%E5%B0%91%E6%AD%A7%E4%B9%89) <a href="#prompt-zui-hao-jian-jie-yi-dong-bing-jian-shao-qi-yi" id="prompt-zui-hao-jian-jie-yi-dong-bing-jian-shao-qi-yi"></a>

这个比较好理解，即使你跟人说话，说一些简单的短句，对方也会更容易听懂，AI 也是这样。另外，在 prompt 里也需要减少一些歧义，少用模棱两可的词语。

比如像这个就很不明确，什么叫 not too much more？

```
The description for this product should be fairly short, a few sentences only, and not too much more.
```

更好的 prompt 是这样的，明确告知要写多少句话，就比较明确：

```
Use a 3 to 5 sentence paragraph to describe this product.
```

另外需要注意的是，简单并不代表简短。你的 prompt 也可以很长，只要你的 prompt 描述更充分就可以，即使长一点也没有关系。

#### Prompt 要使用正确的语法、拼写，以及标点[​](https://learningprompt.wiki/docs/chatGPT/tutorial-basics/%E5%9F%BA%E6%9C%AC%E5%8E%9F%E5%88%99%20&%20%E5%BB%BA%E8%AE%AE#prompt-%E8%A6%81%E4%BD%BF%E7%94%A8%E6%AD%A3%E7%A1%AE%E7%9A%84%E8%AF%AD%E6%B3%95%E6%8B%BC%E5%86%99%E4%BB%A5%E5%8F%8A%E6%A0%87%E7%82%B9) <a href="#prompt-yao-shi-yong-zheng-que-de-yu-fa-pin-xie-yi-ji-biao-dian" id="prompt-yao-shi-yong-zheng-que-de-yu-fa-pin-xie-yi-ji-biao-dian"></a>

特别是在使用英语的 prompt 的时候，一定要注意语法和拼写。

🚧

例子待补充

#### 从简单的先开始，并给产品多一点耐心[​](https://learningprompt.wiki/docs/chatGPT/tutorial-basics/%E5%9F%BA%E6%9C%AC%E5%8E%9F%E5%88%99%20&%20%E5%BB%BA%E8%AE%AE#%E4%BB%8E%E7%AE%80%E5%8D%95%E7%9A%84%E5%85%88%E5%BC%80%E5%A7%8B%E5%B9%B6%E7%BB%99%E4%BA%A7%E5%93%81%E5%A4%9A%E4%B8%80%E7%82%B9%E8%80%90%E5%BF%83) <a href="#cong-jian-dan-de-xian-kai-shi-bing-gei-chan-pin-duo-yi-dian-nai-xin" id="cong-jian-dan-de-xian-kai-shi-bing-gei-chan-pin-duo-yi-dian-nai-xin"></a>

最后一点算是我个人的建议。如我在前面提到的例子 `What is 100*100/40*56？`一样，如果发现机器理解错误，不妨补充点信息，不妨多实验几次，给 AI 多一点耐心。

<br>


---

# 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://wiki.aig123.com/chatgpt-tutorial/ji-chu-pian/ji-ben-yuan-ze-jian-yi.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.
