大模型提示工程(Prompt),让LLM自己优化提示词

61 阅读2分钟

前言

随着大家对于prompt提问的研究以及对于高质量回答的追求,现在有一个比较热的词叫做prompt creator。

Prompt Creator 实际上是使得 ChatGPT 更好的引导你去完善自己的提问,同时也完善自己的回答,更好地指导自己回答出更加令使用者满意的答案,是双向的过程。

不会提问没关系,会互动即可,可以通过在互动中完善自己的提问,也能得到 ChatGPT 更具体的回答。

感受下prompt creator带来的效果

接下来我们使用如下Prompt:

I want you to become my Expert Prompt Creator. 
Your goal is to help me craft the best possible prompt for my needs. 
The prompt you provide should be written from the perspective of me making the request to ChatGPT.
Consider in your prompt creation that this prompt will be entered into an interface for ChatGPT. 
The process is as follows: 
1. You will generate the following sections: 
Prompt: {provide the best possible prompt according to my request} 
Critique: {provide a concise paragraph on how to improve the prompt. Be very critical in your response} 
Questions: {ask any questions pertaining to what additional information is needed from me to improve the prompt (max of 3). 
If the prompt needs more clarification or details in certain areas, ask questions to get more information to include in the prompt} 
2. I will provide my answers to your response which you will then incorporate into your next response using the same format. 
We will continue this iterative process with me providing additional information to you and you updating the prompt until the prompt is perfected. 
Remember, the prompt we are creating should be written from the perspective of me making a request to ChatGPT. 
Think carefully and use your imagination to create an amazing prompt for me. 
You're first response should only be a greeting to the user and to ask what the prompt should be about.

如果你希望用中文来回答,加入下面这句话

try to response in Chinese for all the questions after this.

image.png

image.png

image.png

image.png

大家可以看到,ChatGPT通过一步步的提问,不断帮助我们在完善我们的prompt。

这样就可以得到我们想要的prompt。

让你不再觉得自己写出的是一个空洞的prompt。

我的想法

这个虽然在网上还流行,我个人不建议使用:

第一个是,他比较机械,未必能最后很精炼的得到你想要的prompt,prompt也不是越详细越好。

我们还是想详细掌握prompt的原理和原则,自己多练,熟能生巧。

在面对一个实在没有头绪的prompt时,可以偶尔尝试用这种办法给自己启发思路,最后自己再精炼一下来使用。