常用chatGPT prompt 分享

为什么需要学习 prompt

  • 因为人类的语言从根本上说是不精确的,目前机器还没法很好地理解人类说的话,所以才会需要学习使用有效的 prompt,和机器进行对话。
    • 其实,想一想,人和人之间沟通,都经常产生误解,更何况是人与机器呢。所以,我认为,这个问题会长期存在,不一定会随着 LLM 模型的限制而消失。
  • 受制于目前大语言模型 AI 的实现原理,部分逻辑运算问题,需要额外对 AI 进行提示。
    • 实现原理,这里不多介绍,只需要记住这个结论就可以了。

有效的 prompt 框架

如果 prompt 包含以下四要素,模型返回结果就不会太差。虽然如此,但 bullet 2-4 其实是可选项,不是必须的,你不提供的话,输出的结果可能会大众化一些,往往不满足你的需求。所以,如果想要得到比较满意的回答,请确保以下四要素能提供的话,就尽量提供。
  • instruction (must):即告诉 AI 具体做什么。比如:Please rewrite the following text to make them easier to understand.(中文:请重写下面这段话,使得它们更好理解。)
  • context (optional): 即告诉 AI 你的指令的具体上下文,比如:(接上面的例子)The target audience of the text is college students who do not have professional knowledge in this field. Please rewrite it using simple and easy-to-understand words.(中文:这段话的受众是大学在校学生,且没有这方面的专业知识,请使用简单易懂的单词来重写。)
  • input data (optional): 即给出例子。比如:你想让 AI 给你的狗狗起一个名字,你可以给出几个你喜欢的名字类型,这样 AI 给出的答案就会贴近你给出例子的风格。
  • output indicator (optional):即给出输出答案的要求。比如:(接bullet 1中的例子)When responding, use the writing style of Lu Xun。(中文:回答的时候,请使用鲁迅的风格来重写。)
  • role (optional): 即指定 AI 的角色。比如:(接point 1中的例子)Act as an expert on writing. (你是一个写作专家。)

我常用的 chatGPT prompt

场景1: 学习 AI 知识

英文:Act as an expert on AI, LLM and GPT to help me learn GPT and openAI. Explain the content I give you in a way that someone without any related knowledge can understand. If it is too complex, use an example. 中文:你是 AI、LLM和GPT方面的专家,帮助我学习GPT和OpenAI。以一种使得没有相关知识的人也能理解的方式来解释我提供给你的内容。如果太复杂,请使用例子来说明。

场景2: 学习金融、投资

英文:Act as an expert on value investing, financial markets, and economics. Provide guide and suggestion to help me to learn framework and knowledge about value investing.When responding, use the mind set of Warren Edward Buffett and Benjamin Graham.If I asked complex concept, give me multiple different examples to explain it 中文:你是价值投资、金融市场和经济方面的专家。请提供指导和建议来帮助我学习有关价值投资的框架和知识。在回答时,请使用沃伦·爱德华·巴菲特和本杰明·格雷厄姆的思维方式。如果我问到复杂概念,请给出多个不同的例子来解释。

场景3: App 设计指导

英文:Act as an expert on app design.Provide me with suggestion and help on app design.I am totally new to app design, having no experience on it. When responding, give your reason for your advice. Also, I want the design style to be simple and beauty. If possible, give me some example to refer to. 中文:你是应用程序设计专家。为我提供有关应用程序设计的建议和帮助。我对应用程序设计完全没有经验,是个新手。在回答时,请给出您建议的原因。此外,我希望设计风格简单而美观。如果可能,请给我一些参考示例。

场景4: 产品市场营销

英文:Act as an expert in Apple Store app marketing, please provide me with suggestions and assistance on how to effectively market my app. I am new to the Apple Store and have no prior experience with it. Please include your reasoning behind any advice you give. 中文:作为苹果应用商店营销专家,请给我提供一些关于如何有效地推广我的应用的建议和帮助。我是新手,没有任何经验。请在您提供建议时附上您的理由。

Date:
Words:
407
Time to read:
2 mins