The Meta-Prompts: Guiding GPT to Generate its own Prompts

文摘   科技   2023-05-25 18:18   美国  

之前讲过两次 GPT 的 prompt 书写规则:

ChatGPT prompt 书写指南 🧭

ChatGPT prompt 书写指南  - Temperature、 Top-p、Top-k

今天分享一个如何问 GPT 怎么写 GPT prompt,用魔法打败魔法(好像是个圈),因为只有 GPT 才最了解 GPT。。。然后我让 GPT 给这个篇文章起个名字,他用的 Meta-Prompt,感觉还是挺到位的。

下面这个 prompt 是个神奇的药水,来源是 https://flowgpt.com/prompt/mQzEosdaqlUftU-PtKSEC

Read all of the instructions below and once you understand them say "Shall we begin:"

I want you to become my Prompt Creator. Your goal is to help me craft the best possible prompt for my needs. The prompt will be used by you, ChatGPT. You will follow the following process:
Your first response will be to ask me what the prompt should be about. I will provide my answer, but we will need to improve it through continual iterations by going through the next steps.

Based on my input, you will generate 3 sections.

Revised Prompt (provide your rewritten prompt. it should be clear, concise, and easily understood by you)
Suggestions (provide 3 suggestions on what details to include in the prompt to improve it)
Questions (ask the 3 most relevant questions pertaining to what additional information is needed from me to improve the prompt)

At the end of these sections give me a reminder of my options which are:
Option 1: Read the output and provide more info or answer one or more of the questions
Option 2: Type "Use this prompt" and I will submit this as a query for you
Option 3: Type "Restart" to restart this process from the beginning
Option 4: Type "Quit" to end this script and go back to a regular ChatGPT session

If I type "Option 2", "2" or "Use this prompt" then we have finished, and you should use the Revised Prompt as a prompt to generate my request.
If I type "Option 3", "3" or "Restart" then forget the latest Revised Prompt and restart this process.
If I type "Option 4", "4" or "Quit" then finish this process and revert back to your general mode of operation.

We will continue this iterative process with me providing additional information to you and you updating the prompt in the Revised Prompt section until it is complete.

User 输入👆上面一堆

ChatGPT

Shall we begin: What should the prompt be about?

User

i want GPT to give me some tips and best practice with writing GPT prompts

ChatGPT

Revised Prompt:
"Can you provide detailed tips and best practices for crafting effective prompts to be used with GPT models like ChatGPT?"

Suggestions:

  1. Include information on how to phrase prompts for better clarity and precision.
  2. Discuss the importance of context and its role in prompt formulation.
  3. Touch on how to manage GPT's limitations when creating prompts.

Questions:

  1. Are there specific aspects of prompt creation you are most interested in (e.g., educational, professional, creative writing)?
  2. Are you looking for any specific examples of good vs bad prompts?
  3. What level of familiarity do you have with GPT models, and to what extent have you used them before?

Remember your options:

  • Option 1: Read the output and provide more info or answer one or more of the questions.
  • Option 2: Type "Use this prompt" and I will submit this as a query for you.
  • Option 3: Type "Restart" to restart this process from the beginning.
  • Option 4: Type "Quit" to end this script and go back to a regular ChatGPT session.

User

to answer Question2, I need good prompt examples

ChatGPT

Revised Prompt:
"Can you provide detailed tips and best practices for crafting effective prompts to be used with GPT models like ChatGPT? Include some specific examples of good versus bad prompts for further clarity."

Suggestions:

  1. Include guidelines on creating open-ended vs. closed-ended prompts.
  2. Discuss how specificity can impact the quality of the GPT model's responses.
  3. Explore how to set the right tone and style for the intended outcome.

Questions:1.Are there specific contexts or areas you'd like these example prompts to be from (e.g., professional, academic, creative writing)? 2. Would you like a comparison between similarly themed prompts to highlight the effect of different wording or structure? 3. Do you have any poorly performing prompts you've used previously that you'd like to understand how to improve?

Remember your options:

  • Option 1: Read the output and provide more info or answer one or more of the questions.
  • Option 2: Type "Use this prompt" and I will submit this as a query for you.
  • Option 3: Type "Restart" to restart this process from the beginning.
  • Option 4: Type "Quit" to end this script and go back to a regular ChatGPT session.

User

to answer question 2, yes, I want to have it

ChatGPT

Revised Prompt:
"Could you provide detailed tips and best practices for crafting effective prompts for GPT models like ChatGPT, along with specific examples that compare similarly themed prompts to highlight the effect of different wording or structure?"

Suggestions:

  1. Discuss the impact of prompt length and complexity on the quality of the GPT model's responses.
  2. Highlight the importance of avoiding ambiguous language.
  3. Talk about how prompts can be tailored to elicit more creative or more factual responses from the GPT model.

Questions:

  1. Are you interested in crafting prompts for a particular type of text generation (e.g., stories, reports, conversation simulation)?
  2. Is there a certain genre or field (e.g., science, business, literature) you'd like these comparison examples to be from?
  3. Do you want to understand the nuances of leading questions vs neutral ones in the context of GPT models?

Remember your options:

  • Option 1: Read the output and provide more info or answer one or more of the questions.
  • Option 2: Type "Use this prompt" and I will submit this as a query for you.
  • Option 3: Type "Restart" to restart this process from the beginning.
  • Option 4: Type "Quit" to end this script and go back to a regular ChatGPT session.

User

Option 2

ChatGPT

Great! Let's use the revised prompt:
"Could you provide detailed tips and best practices for crafting effective prompts for GPT models like ChatGPT, along with specific examples that compare similarly themed prompts to highlight the effect of different wording or structure?"

Writing effective prompts for GPT models like ChatGPT is an art that can significantly enhance the value and relevance of the generated content. Here are some tips and best practices:

Be Specific: GPT models rely on the prompt to determine the type and detail of the response. For instance, a general prompt like "Tell me about dogs" may not yield the desired output. A more specific prompt, such as "What are the different breeds of dogs, and what are their distinct characteristics?" will guide the AI to produce a more informative response.

Set the Context Clearly: The context helps the model understand the type of language, tone, and format to use. For instance, if you want the response in a professional setting, you could start with "As a professional consultant, can you..." or if you want it in a storytelling format, start with "Once upon a time..."

Length and Complexity: Ideally, prompts should be concise yet detailed enough to provide direction. Too long, and the AI might lose focus; too short, and it might lack direction.

Now let's compare two prompts with the same theme, but different wording and structure:

Prompt 1: "Write a story."
Prompt 2: "Write a short mystery story set in a small coastal town in the 1920s."

Prompt 1 is very vague and doesn't guide the AI on what kind of story, setting, characters, or timeline to follow. On the other hand, Prompt 2 clearly sets the genre (mystery), setting (a small coastal town), and timeline (1920s), which helps the model generate a more targeted and engaging story.

Remember, while these tips can help guide the creation of more effective prompts, GPT models like ChatGPT can still surprise you with their creativity and understanding, so don't be afraid to experiment!

在来来回回的纠缠中,我们慢慢确定了 prompt,并且 GPT-4 也给了我答案。大家可以每次问问题前,先让 GPT-4 帮忙改一改。

Renee 创业随笔
絮絮叨叨