
Chain-of-Thought (CoT) prompting is a technique that enhances an AI’s ability to reason through problems by guiding it to break down its response into a logical sequence of steps. Rather than just providing an answer, CoT ensures that the AI explains its thought process, making its reasoning clearer and more reliable.
Prompt:
“What is 234 × 56?”
AI Response:
“13,104.”
Prompt:
“Solve 234 × 56 step by step.”
AI Response:
1.Break it down: 234 × 50 = 11,700
2.Break it down: 234 × 6 = 1,404
3.Final sum: 11,700 + 1,404 = 13,104
This approach is particularly effective in tasks that require structured decision-making:
By shifting AI from generating simple responses to breaking problems into logical sequences, CoT prompting makes it significantly more effective for handling complex queries.
Tree of Thought (ToT) Prompting is an advanced technique designed to enhance the reasoning capabilities of large language models (LLMs). This method generalizes Chain-of-Thought (CoT) prompting, introducing structured, multi-step exploration to improve problem-solving in complex tasks.

ToT operates by maintaining a tree-like structure, where each thought (or step) represents an intermediate step towards solving a problem. The model evaluates each thought systematically, pruning incorrect or unhelpful paths while refining promising ones.
A key feature of ToT is its ability to incorporate search-based strategies:
Let’s consider a mathematical reasoning task:
Given four numbers, generate an expression that evaluates to 24.
1. Standard Approach (Fails on Complex Cases)
A simple LLM prompt might look like:
Given the numbers [8, 3, 3, 1], generate an expression that evaluates to 24.
However, the model may not always find the correct answer.
2. ToT-Based Approach (More Accurate)
With ToT prompting, we:
ToT Prompt Example:
Let’s solve the problem step by step using a Tree of Thought approach.
Numbers: [8, 3, 3, 1]
Self-consistency is an advanced prompting technique designed to improve the accuracy and reliability of Large Language Models (LLMs). It enhances Chain-of-Thought (COT) prompting by generating multiple reasoning paths and selecting the most consistent answer. Instead of following a single logical path, self-consistency encourages the model to explore diverse approaches and use majority voting to identify the most reliable response.

To apply self-consistency prompting, follow these steps:
Incorrect Example (Greedy Decoding Approach)
Q: When I was 6, my sister was half my age. Now I’m 70, how old is my sister?
Model Output: 73 (Incorrect)
Instead of relying on a single output, we provide multiple examples of logical reasoning paths to guide the AI toward consistency.
By generating multiple reasoning paths and selecting the most consistent one, we further refine the accuracy.
Q: Michael had 58 golf balls. On Tuesday, he lost 23. On Wednesday, he lost 2 more. How many does he have now?
Path 1:
Path 2:
Path 3: