以前にGPTのプロンプト作成ルールについて二回話しました:
ChatGPTプロンプト作成ガイド - Temperature、Top-p、Top-k
今日は、どのようにGPTにGPTプロンプトの書き方を尋ねるかについて共有します。魔法で魔法を倒す(まるで輪のよう)、なぜならGPTこそがGPTを最も理解しているからです。。。そして、私はGPTにこの記事にタイトルを付けてもらいました。彼が使ったのはMeta-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.
ユーザー入力は👆上記の通りです
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:
Include information on how to phrase prompts for better clarity and precision. Discuss the importance of context and its role in prompt formulation. Touch on how to manage GPT's limitations when creating prompts. Questions:
Are there specific aspects of prompt creation you are most interested in (e.g., educational, professional, creative writing)? Are you looking for any specific examples of good vs bad prompts? 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:
Include guidelines on creating open-ended vs. closed-ended prompts. Discuss how specificity can impact the quality of the GPT model's responses. 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:
Discuss the impact of prompt length and complexity on the quality of the GPT model's responses. Highlight the importance of avoiding ambiguous language. Talk about how prompts can be tailored to elicit more creative or more factual responses from the GPT model. Questions:
Are you interested in crafting prompts for a particular type of text generation (e.g., stories, reports, conversation simulation)? Is there a certain genre or field (e.g., science, business, literature) you'd like these comparison examples to be from? 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!
幾度とないやり取りの中で、私たちはプロンプトを徐々に確定し、GPT-4も私に答えをくれました。皆さんも質問する前に、一度GPT-4に修正してもらうことをお勧めします。