The Power of Examples
One of the most effective ways to improve prompt performance is by providing examples. This is called "Few-Shot Prompting".
Zero-Shot Prompting
Asking the model to do something without any examples.
"Classify the sentiment of this review: 'The food was okay, but the service was slow.'"
Few-Shot Prompting
Giving the model a few examples of inputs and desired outputs before asking it to solve your problem.
"Classify the sentiment of these reviews:"
"Great movie!" โ Positive
"Terrible acting." โ Negative
"It was fine." โ Neutral
"The food was okay, but the service was slow." โ
By seeing the pattern, the model understands exactly what format and logic you want.
โ Zero-Shot (Risky)
Model might misinterpret your intent
โ Few-Shot (Reliable)
Model follows your examples precisely