Writing effective prompts that drive consistent results can feel more like an art than a science.
We’ve spoken with hundreds of prompt engineers, AI founders, and folks who write prompts every day. Below are 10 easy-to-implement best practices that will help you get better responses from your prompts.
1. Be specific
Being specific doesn't necessarily mean being short. Longer prompts usually provide more context and clarity.
2. Use delimiters
Delimiters help the model understand the different parts of your prompt. This leads to better responses and protection against prompt injections.
3. Give the model room to think
Encourage the model to think through the problem before giving an answer. Telling the model to reason step-by-step can help avoid rushing to incorrect conclusions.
4. Quote Sources
Directing the model to quote its sources can reduce the risk of hallucinations.
5. Avoid jargon
Use simple, accessible language in your prompts.
6. Set a goal
The clearer the objective, the better the response. This is an example of how to be more specific with your prompts
7. Create a scenario
Scenarios help generate more detailed and thought-provoking responses.
8. Encourage analysis
Prompts that encourage the model to analyze options will lead to more insightful responses. This approach allows the model to think things through.
9. Time-frame it
Incorporate a timeframe to add context or urgency.
10. Clarify the format
Specify the desired structure or presentation of responses.The models respond better when shown specific format requirements.
There you go! 10 easy-to-implement tips to keep in mind when writing prompts.
If you want to streamline the whole prompt engineering process with clean versioning, A/B testing, collaboration, and more, feel free to join our waitlist. We'll be onboarding teams in batches in the coming weeks.