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

前言

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

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

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

感受下prompt creator带来的效果

接下来我们使用如下Prompt:

text代码解读复制代码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.

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

kotlin

代码解读
复制代码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时,可以偶尔尝试用这种办法给自己启发思路,最后自己再精炼一下来使用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>