Practices and formula for better prompting
7 best practices when it comes to effective prompt engineering:
- 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?"
- 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?"
- 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.
- 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?"
- 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.
- 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.
- 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?"
留言
張貼留言