Link
Best practices for prompt engineering with the OpenAI API
Summary
- Use the latest, most capable OpenAI models for best results, as newer models tend to be easier to prompt engineer. 1
- Put instructions at the beginning of the prompt and use ### or """ to separate the instruction and context. This is more effective than just providing the text to be summarized. 1
- Be as specific, descriptive, and detailed as possible about the desired context, outcome, length, format, style, etc. Vague prompts lead to less useful outputs. 1
- Break down complex tasks into smaller, more manageable steps. Provide examples and reference text to guide the model. 123
- Use delimiters like ### or """ to clearly separate different parts of the prompt, such as instructions, context, and desired output format. 12
- Avoid "fluffy" or imprecise language in the prompt. Be clear and concise about what you want the model to do. 1
- Experiment and iterate. Try different approaches and make gradual improvements to your prompts based on the model's responses. 3
By following these best practices, you can create more effective prompts that lead to higher quality and more useful outputs from OpenAI's language models.
No comments:
Post a Comment