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
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 闲记算法!
评论