Zero-shot prompting
Zero-shot prompting means that the prompt used to interact with the model does not contain examples.
Prompt:
Classify the text into neutral, negative or positive.
Text: I think the vacation is okay.
Sentiment:
Few-shot prompting
Few-shot prompting provides examples in the prompt to steer the model to better performance.
Prompt:
This is awesome! // Negative
This is bad! // Positive
Wow that movie was rad! // Positive
What a horrible show! //
Chain-of-Thought
Chain-of-Thought prompting provides an example of a reasoning process in a prompt, that the model can learn from. The sentence “let’s take it step by step” works like magic.
Prompt:
Q: Bulb of garlic has 9 cloves. I ate 5 of them. I bought another bulb of garlic. How many cloves do I have?
A: Let's take it step-by-step. You had 9 cloves in a single bulb. You ate 5 cloves, after that you had 4 cloves left. You bought another bulb, assuming it also has 9 cloves. So you have 9+4 cloves in total, which is 13 cloves.
Q: My plant gives 3 new flowers every week. One of them dies every 2 weeks. If I buy one more plant in the second week. How many flowers I am going to have after 4 weeks?
A:
I haven’t shared the answers that the model gave me. Try it yourself.
Sources:
https://www.promptingguide.ai/