Grokking AI: 50 Questions Every Engineer Asks
Vote

0% completed

​

How Many Examples Should I Put in a Prompt?

Short answer: A few good examples (often three to five) usually help more than a long description, because they show the format and the difficult cases directly. Placing examples in a prompt is called few-shot prompting. Choose examples that differ from each other, because the model copies what they have in common. Each example also costs input tokens on every request, so add an example only when it corrects an error that you saw.

Look at the three outputs at the bottom of each column

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content