How Prompt Engineering Works

Rules of Thumb and Examples

Rule #1 – Instructions at beginning and ### or “”" to separate instructions or context

Rule #2 – Be specific and detailed about the desired context, outcome, length, format, and style.

Rule #3 – Give examples of desired output format

Rule #4 – First try without examples, then try giving some examples.

Rule #5 – Fine-tune if Rule #4 doesn’t work

Rule #6 – Be specific. Omit needless words.

Rule #7 – Use leading words to nudge the model towards a pattern

Bonus Prompt – Let ChatGPT Design the Optimal Prompt

阅读原文