我们现在已经介绍了多种类型的提示指令,以及组合它们的方法。本页将为您解释不同类型的提示指令。虽然已经有了一些方法来形式化关于快速工程的论述,但该领域一直在变化,因此我们将为您提供足够的信息来入门。
指令的组成部分
指令提示符有几个不同的部分,您会一遍又一遍地看到。大致是:
- 一个角色
- 一条说明/任务
- 一个问题
- 上下文
- 例子(few-shot)
在前面的页面中,我们已经介绍了角色、说明和示例。一个问题就是一个问题!(例如,法国的首都是哪里?)。当你在回答问题/执行指令时想要建模使用需要结合上下文的任何相关信息。
You are a doctor. Read this medical history and predict risks for the patient:
January 1, 2000: Fractured right arm playing basketball. Treated with a cast.
February 15, 2010: Diagnosed with hypertension. Prescribed lisinopril.
September 10, 2015: Developed pneumonia. Treated with antibiotics and recovered fully.
March 1, 2022: Sustained a concussion in a car accident. Admitted to the hospital and monitored for 24 hours.
January 1, 2000: Fractured right arm playing basketball. Treated with a cast.
February 15, 2010: Diagnosed with hypertension. Prescribed lisinopril.
September 10, 2015: Developed pneumonia. Treated with antibiotics and recovered fully.
March 1, 2022: Sustained a concussion in a car accident. Admitted to the hospital and monitored for 24 hours.
You are a doctor. Read this medical history and predict risks for the patient: