ChatGPT Prompt Design Doc

内容就是来自官网的这篇链接,里面提到了一些chatgpt prompt的设计技巧 https://platform.openai.com/docs/guides/completion/prompt-design

几个基本点:

There are three basic guidelines to creating prompts:

Show and tell. Make it clear what you want either through instructions, examples, or a combination of the two. If you want the model to rank a list of items in alphabetical order or to classify a paragraph by sentiment, show it that's what you want.

Provide quality data. If you're trying to build a classifier or get the model to follow a pattern, make sure that there are enough examples. Be sure to proofread your examples — the model is usually smart enough to see through basic spelling mistakes and give you a response, but it also might assume this is intentional and it can affect the response.

Check your settings. The temperature and top_p settings control how deterministic the model is in generating a response. If you're asking it for a response where there's only one right answer, then you'd want to set these lower. If you're looking for more diverse responses, then you might want to set them higher. The number one mistake people use with these settings is assuming that they're "cleverness" or "creativity" controls.

然后可以用来完成下面几类工作:

Factual responses

Pasted-Image-20231225103630.png

Conversation

Pasted-Image-20231225103533.png

Transformation

Pasted-Image-20231225103427.png