help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-openai-api
6 Users
0 Comments
96 Highlights
5 Notes
Top Highlights
###
Put instructions at the beginning of the prompt and use ### or """ to separate the instruction and context
Articulate the desired output format through examples (example 1, example 2).
Start with zero-shot, then few-shot (example), neither of them worked, then fine-tune
Reduce “fluffy” and imprecise descriptions
Instead of just saying what not to do, say what to do instead
Code Generation Specific - Use “leading words” to nudge the model toward a particular pattern
Best practices for prompt engineering with OpenAI API
How to give clear and effective instructions to GPT-3 and Codex
here are specific prompt formats that work particularly well and align better with the tasks at hand.
Rules of Thumb and Examples
"{text input here}"
is a placeholder for actual text/context
1. Use the latest model
we generally recommend using the latest, most capable models.
November 2022, t
best options are
“text-davinci-003”
model for text generation
“code-davinci-002”
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.