跳到主要内容

Prompt

Prompt 则是调整下游任务来适应预训练模型。预训练+微调是让预训练模型去适应下游任务。

技巧​

1 把目的说清楚​

用下面资源中的 CRISPE 原则。

让 AI 扮演专家能提升回答到水平,因为训练的数据中,有不同层次的内容。

2 使用思维链(CoT)​

思维链:就是给模型展示推理步骤。

资源​

ChatGPT3 Prompt Engineering​

CRISPE Prompt Framework:

  • Capacity and Role: What role (or roles) should ChatGPT act as?
  • Insight: Provides the behind the scenes insight, background, and context to your request.
  • Statement: What you are asking ChatGPT to do.
  • Personality: The style, personality, or manner you want ChatGPT to respond in.
  • Experiment: Asking ChatGPT to provide multiple examples to you.

精简一下:

  • 希望 AI 扮演是谁。 一般是某某专家。
  • 希望 AI 做什么
  • 提供 AI 做什么的背景信息
  • 希望 AI 以怎样的方式输出
  • 希望 AI 提供更多的例子

examles:如有必要,举例子

requirements:输出的受众、格式等

优秀示例 & 教程​

评估效果​

工具​

  • Guidance 结构化辅助生成 Prompt。
  • ALEL ALEL is one of the first ever “Prompt Frameworks”, which in the most simplest of terms is a standard method of communicating efficiently with ChatGPT.

资源​