Practices and formula for better prompting

7 best practices when it comes to effective prompt engineering:

  1. Be Specific: If you ask a vague question, you may get a vague answer. The more details you provide, the better the model can give you what you're looking for. Instead of "tell me about all dog breeds that exist,” ask "What are the different breeds of small dogs suitable for apartment living?"
  2. State Your Intent: If there's a specific purpose for your question, state it in the prompt. For example, instead of asking “explain quantum physics” you could say "I'm helping my fifth-grade son with his science homework. Could you explain quantum physics in a simple way?"
  3. Use Correct Spelling and Grammar: While the model can often interpret and correct spelling and grammar mistakes, providing clear and correct prompts helps ensure you get the best response.
  4. Direct the Output Format: If you want the answer in a specific format, state it in your question. For example, you could ask "Could you list the steps to bake a chocolate cake?" or "Could you explain the process of baking a chocolate cake in a paragraph?"
  5. Ask Follow-Up Questions: If the response wasn't what you expected or if you need more information, feel free to ask follow-up questions to clarify.
  6. Experiment with Different Phrasings: If you're not getting the response you want, try asking the question in a different way. The model might understand one phrasing better than another.
  7. Prompt for Fact-Checking: If you're looking for reliable information, you can ask the model to provide sources or to fact-check information. For example, "Can you fact-check this statement: The tallest mountain in the world is Mount Everest?"

Here is the formula for a perfect prompt.

[Context] + [Specific Information] + [Intent/Goal] + [Response Format (if needed)] = Perfect Prompt

Context: "I'm a beginner occupational therapist"

Specific Information: "I'm trying to develop a one-hour therapeutic group for patients with chronic schizophrenia to improve their social skills."

Intent/Goal: "Can you provide a detailed and easy to follow group plan"

Response Format (if needed): "Write it as a step by step list?"

以上資料來源:https://www.youtube.com/watch?v=pmzZF2EnKaA

留言

這個網誌中的熱門文章

以中文撰寫的論文,如何請 ChatGPT 翻譯成英文

文獻檢索:學習相關知識&應用提示

我建議學生 如何使用 ChatGPT 完成 Journal Meeting 之準備