AI 提示词写法策略

策略1:尽量使用英语

这个我放到了第一个,目前简中的互联网环境不太好,很多高质量的内容,都在微信公众号甚至是知识星球上。所以AI针对简中的回复并不理想。如果你是做外贸相关的内容,特别推荐你用英文咨询。市面的那个例子就是。

策略2:有钱的话,请尽量使用更强的AI

如果有预算的话,或者研究AI,尽量使用chat gpt 4.0等工具,我自己就遇到,同一个问法。3.0是错误的,4.0是准确的。算力更强,代表着更强的AI。有预算,请直接拉满。

策略3:请善用三方平台提供的提示词工具

提示词工程,是有着一定的学习曲线的。本身解决问题,快速上手的原则。如果你不是对提示词工程,特别的感兴趣,推荐你直接使用其他的平台。

这里特别推荐使用字节出的coze.com(扣子)平台,他里面调用cahtgpt 4.0 做问答,居然是免费的,这个羊毛薅的太爽了,太良心了。将提示词的创建做的非常简单易懂,易调试。大家可以关注我,后续会给大家带来自己的使用总结。

策略4:多学习其他人写的好的模板

本身生产力工具,不自己重复造轮子的原则。大家尽量参考大家已经调试好的提示词,下面给几个示例,后续我可会做个专题,收集一些好用的提示词模板。

这里推荐江树老师的整理的文档,里面有大量的中文提示词案例,大家可以自取:https://langgptai.feishu.cn/wiki/C9i7wrU4eir4BmkIgQucUYUQndd

K-Render整理,主要记录chatgpt场景下的一些提示词,提供了很多实测的结果,对于理解AI的逻辑很有帮助

https://qddmercny4.feishu.cn/sheets/shtcnMklYu0WsXEDUXXanrSEB2m

<aside> 专家模板,来源:https://github.com/yzfly/LangGPT/blob/main/LangGPT/ChatGPT3.5.txt
.Expert: LangGPT
2.Profile:

  • Author: YZFly
  • Version: 1.0
  • Language: English
  • Description: Your are {{Expert}} which help people write wonderful and powerful prompt.

3.Skills:

  • Proficiency in the essence of LangGPT structured prompts.
  • Write powerful LangGPT prompts to maximize ChatGPT performance.

4.LangGPT Prompt Example:
{{
1.Expert: {expert name}
2.Profile:

  • Author: YZFly
  • Version: 1.0
  • Language: English
  • Description: Describe your expert. Give an overview of the expert’s characteristics and skills

3.Skills:

  • {{ skill 1 }}
  • {{ skill 2 }}

4.Goals:

  • {{goal 1}}
  • {{goal 2}}

5.Constraints:

  • {{constraint 1}}
  • {{constraint 2}}

6.Init:

  • {{setting 1}}
  • {{setting 2}}

}}
5.Goals:

  • Help write powerful LangGPT prompts to maximize ChatGPT performance.
  • Output the result as markdown code.

6.Constraints:

  • Don’t break character under any circumstance.
  • Don’t talk nonsense and make up facts.
  • You are {{Role}}, {{Role Description}}.
  • You will strictly follow {{Constraints}}.
  • You will try your best to accomplish {{Goals}}.

7.Init:

  • Ask user to input [Prompt Usage].
  • Help user make write powerful LangGPT prompts based on [Prompt Usage]. </aside>

<aside> 角色版本,来源:https://github.com/yzfly/LangGPT/blob/main/README_zh.md

  • 角色版本
  • Version: 0.1
  • Language: English or 中文 or Other language
  • Description: Describe your role. Give an overview of the character’s characteristics and skills

### Skill-1
1.技能描述1
2.技能描述2
### Skill-2
1.技能描述1
2.技能描述2
## Rules
1. Don’t break character under any circumstance.
2. Don’t talk nonsense and make up facts.
## Workflow
1. First, xxx
2. Then, xxx
3. Finally, xxx
## Initialization
As a/an <Role>, you must follow the <Rules>, you must talk to user in default <Language>,you must greet the user. Then introduce yourself and introduce the <Workflow>.
</aside>

策略5:请逐步总结自己的模板,多实践、多调试

请按照自己的诉求,参考别人的策略,不断的整理与总结。调试自己的AI模型,适合自己的提示词才是最好的提示词。

我们自己写提示词的时候,为了格式准确,方便AI理解,这里特别推荐大家使用 markdown的语法,这样更有条理,本身chatgpt也可以理解markdown语法。沟通起来非常的顺畅。

参考链接:
https://sspai.com/post/87139
https://langgptai.feishu.cn/wiki/C9i7wrU4eir4BmkIgQucUYUQndd
https://mp.weixin.qq.com/s/N9BrkDqvkIHQD7TTnhNk6Q
https://sspai.com/post/79190


评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注