These are good straight-to-the-point guides:
- Prompt Engineering by BrexHQ: https://github.com/brexhq/prompt-engineering
- OpenAI guidance: https://help.openai.com/en/articles/6654000-best-practices-f...
- https://devblogs.microsoft.com/dotnet/gpt-prompt-engineering...
- (great examples): https://www.deeplearning.ai/short-courses/chatgpt-prompt-eng...
- (~hr) Karpathy talk: https://www.youtube.com/watch?v=bZQun8Y4L2A
tl;dr:
- Begin with the best and most forgiving model available, optimizing it later if necessary.
- Write your prompts in a clear, specific, and detailed manner
- Be mindful, however, of the tradeoff between including more detail and increasing latency or cost.
- If you're doing any complex reasoning, ask the model to show its work, help "stretch out" computation over more tokens
- "Escape" any included or quoted text properly to avoid confusing the model.
- Keep track of your token budget, considering the context window in conversations and response length.
- Employ an iterative process of measuring, adjusting, and improving your prompt engineering techniques.