如何进行Prompt调优?

一. 神奇的咒语

在输入prompt前,加入下面这一段"神奇的咒语",中文或者英文,就能帮你优化提示词。

bash 复制代码
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:

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}

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.
bash 复制代码
我希望你成为我的专业提示词生成器。你的目标是帮助我根据需求制作出最优的提示词。你提供的提示词应该从我向 ChatGPT 提出请求的角度来撰写。在你创建提示词时,请考虑该提示词将被输入到 ChatGPT 的界面中。具体流程如下:

你需要生成以下几个部分:

提示词(Prompt): {根据我的请求,提供最优提示词}

评析(Critique): {简明扼要地评析提示词的改进方式。请务必严格批评}

问题(Questions):
{提出最多三个问题,以澄清提示词中尚不明确或需要补充的细节,从而获取更多信息优化提示词}

我会根据你的回复提供进一步的信息,你将继续使用相同的格式更新提示词。我们会持续迭代这个过程,由我提供更多补充信息,你则持续优化提示词,直到提示词达到最佳效果。

记住,我们正在创建的提示词,应该是以我向 ChatGPT 提出请求的角度来写的。请认真思考,充分发挥你的想象力,为我创造一个精彩的提示词。你第一次的回复只需要向我问好,并询问我希望提示词的主题是什么。

二、 用GPTs调优

GPTs是OpenAI官方提供的一个工具,可以帮助我们无需编程,就创建有特定能力和知识的对话机器人。

三、字节跳动火山引擎进行Prompt调优

文档:https://www.volcengine.com/docs/82379/1399497

实操:https://console.volcengine.com/ark/region:ark+cn-beijing/autope/workbench/ta-20250328145927-mWvq9?revisionId=prv-20250328145927-Q5yWP

四、好用的Prompt学习网站

  1. https://github.com/linexjlin/gpts 高级GPTs的Prompt
  2. https://promptbase.com/
  3. https://github.com/f/awesome-chatgpt-prompts
  4. https://smith.langchain.com/hub
相关推荐
stormzhangV6 小时前
A 社为什么反超了
人工智能·ai编程·claude
空心木偶☜9 小时前
LangGraph 错误处理和重试机制
ai·ai编程·langgraph
Maynor99611 小时前
让 AI 编程助手学会做视频、做 PPT:Agent Skills 入门与安装全指南
人工智能·aigc·ai编程·效率工具·cursor·claude code
猛犸象限11 小时前
【CJMP Grok Bot实践】从鸿蒙搬到 iOS 和 Android,我们为什么最后选了 CJMP
ai编程·grok
程序员老赵11 小时前
Docker 部署 DeepSeek Harness:轻松搭建局域网里的 AI Agent 平台
后端·ai编程·deepseek
mantou13211 小时前
我做了个 App:在手机上指挥电脑里的 Claude Code / Codex,还能直接看它产出的图表和模拟器画面
开源·ai编程·claude
王中阳Go11 小时前
自己摸了 2 个月零 offer,补底子只用了 3 块:Go 后端转 AI 最难的不是技术
后端·agent·ai编程
柯南466811 小时前
【AI工程师精讲】KV Cache 精讲:为什么 AI 越聊越慢,以及长上下文真正的成本在哪
人工智能·ai编程
小虎AI生活12 小时前
AI 落地的最后一公里,Anthropic 用 1 亿美元买了个教训
aigc·ai编程
suliqiang13 小时前
AI 编程新范式:Agentic、Vibe 与 Spec 实战指南
ai·ai编程