Back to Discover

⚖️ Contrastive Chain-of-Thought

Contrastive CoT prompting involves adding both correct and incorrect examples to a Chain-of-Thought prompt to help the model learn by contrasting faulty reasoning with correct logic.

Prompt

Question : James writes a 3-page letter to 2 different friends twice a week. How many pages does he write a year? Explanation: He writes each friend 3*2=6 pages a week. So he writes 6*2=12 pages every week. That means he writes 12*52=624 pages a year. Wrong Explanation: He writes each friend 12*52=624 pages a week. So he writes 3*2=6 pages every week. That means he writes 6*2=12 pages a year. Question: James has 30 teeth. His dentist drills 4 of them and caps 7 more teeth than he drills. What percentage of James' teeth does the dentist fix?