chatgpt learn – Guidelines

learn from DLAI – Learning Platform Beta (deeplearning.ai)

Write clear and specific instructions

Use delimiters – 使用分隔符明确指令和数据

例如告诉chatgpt三个反引号内是处理目标,“`目标文本“`

Ask for structured output – 要求结构化输出

输出json/html以便后续处理

Check whether conditions are satisfied – 要求模型检查前置条件

告诉模型如果输入不对时候主动提示不正确

Few-shot prompting – 提供示例

给一个例子会更好点

Give the Model time to think

Specify the steps to complete a task – 要求模型按步骤完成

可以避免“一步到错”

Instruct the model to work out its own solution before rushing to a conslusion – 要求结论给出前,模型先计算完成

不然模型可能只比较结论,不比较过程

Model Limitations

Hallucination (虚假知识)

回复看起来真实的错误内容

要求模型先从文本中找到相关内容,使用引用内容来回答问题。

留下评论