Chain of Thought (CoT)

「ステップ・バイ・ステップで考えて」。この一言がAIのIQを劇的に上げる。

Reasoning Example

conversation.txt
User:
I have 5 apples. I ate 2, then bought 3 more. How many do I have?
AI (Standard):
6 apples.
AI (Chain of Thought):
1. Start with 5 apples.
2. Ate 2, so 5 - 2 = 3.
3. Bought 3, so 3 + 3 = 6.
Answer: 6 apples.

途中経過を出力させることで、論理飛躍(ハルシネーション)を防ぐことができる。