Chain-of-thought prompting: few-shot and zero-shot (DAIR.AI)

Few-shot chain-of-thought exemplars (Wei et al. 2022) plus the zero-shot 'Let's think step by step' trigger (Kojima et al. 2022) from the Prompt Engineering Guide.

License: MIT · Source: DAIR.AI (Prompt Engineering Guide contributors) · By waxmark · v1 · 2026-11-02

Share on X

Add a trust badge to your README

[![Waxmark](https://waxmark.app/api/badge/dair-chain-of-thought-prompting)](https://waxmark.app/items/dair-chain-of-thought-prompting/scan)
Report
The odd numbers in this group add up to an even number: 4, 8, 9, 15, 12, 2, 1.
A: Adding all the odd numbers (9, 15, 1) gives 25. The answer is False.

The odd numbers in this group add up to an even number: 17,  10, 19, 4, 8, 12, 24.
A: Adding all the odd numbers (17, 19) gives 36. The answer is True.

The odd numbers in this group add up to an even number: 16,  11, 14, 4, 8, 13, 24.
A: Adding all the odd numbers (11, 13) gives 24. The answer is True.

The odd numbers in this group add up to an even number: 17,  9, 10, 12, 13, 4, 2.
A: Adding all the odd numbers (17, 9, 13) gives 39. The answer is False.

The odd numbers in this group add up to an even number: 15, 32, 5, 13, 82, 7, 1. 
A:

---

Zero-shot CoT variant (Kojima et al. 2022): append the trigger phrase to any question.

I went to the market and bought 10 apples. I gave 2 apples to the neighbor and 2 to the repairman. I then went and bought 5 more apples and ate 1. How many apples did I remain with?

Let's think step by step.
Chain-of-thought prompting: few-shot and zero-shot (DAIR.AI) · Waxmark