Cây suy nghĩ - Tree-of-thoughts là kỹ thuật prompt nâng cao khi sử dụng LLMs tạo ra một bàn tròn các chuyên gia khác nhau và cùng trao đổi về một câu hỏi.
Trong quá trình trao đổi, một trong những chuyên gia được phản biệt tự nhận thấy mình sai sẽ rút khỏi bàn tròn.
Cùng xem 3 chuyên gia trao đổi về bài toán có 3 quả táo được tặng 2 túi mỗi túi có 6 quả táo.
Kết quả trao đổi giữa 3 chuyên gia:
**Expert 1: Mathematician**
Step 1: Let's start by identifying the initial number of apples Ngoc has, which is 3.
(The group waits for Expert 2 and Expert 3 to share their step)
**Expert 2: Fruit Connoisseur**
Step 1: I think there might be a misunderstanding - are the bags Ha gives Ngoc actually containing apples? Maybe they're just empty bags?
**Expert 1 (Mathematician)**
Since we can't assume the contents of the bags, let's wait for Expert 3 to share their step.
**Expert 3: Simple Addition Specialist**
Step 1: I'm going to ignore the possible bag issue and focus on the number of apples Ngoc gets from Ha. Two bags with 6 apples each means Ngoc gets 12 more apples. So, we just need to add that to Ngoc's initial 3 apples.
**Expert 2 (Fruit Connoisseur)**
Wait a minute... if the bags are empty, then the number of apples Ngoc has doesn't change. In which case...
**Expert 2 leaves the group**
(The group continues with Expert 1 and Expert 3)
**Expert 1 (Mathematician)**
Step 2: If we assume the bags do contain apples, I'll go ahead and calculate that Ngoc now has 15 apples in total.
**Expert 3 (Simple Addition Specialist)**
But wait... I was thinking along the same lines as Expert 1, but then I realized that Ha giving Ngoc two bags of 6 apples each actually means Ngoc gets a total of 12 apples from those bags, not just 6. So...
**Expert 3 leaves the group**
(The group is now left with only Expert 1)
**Expert 1 (Mathematician)**
Well, I think I'll stick to my previous calculation. The final answer is indeed 15 apples.
(And that's it! Only one expert was able to provide a complete and correct solution.)