Code&Data Insights
[Prompt Engineering] Chain-of-Thought | Tree-of-Thought 본문
[Prompt Engineering] Chain-of-Thought | Tree-of-Thought
paka_corn 2024. 3. 26. 15:44Chain-of-Thought Approach
: involves breaking down a complex task into smaller and easier ones through a sequence of more straightforward prompts
a prompt-based learning approach
=> Feed the model with related questions along with their corresponding solutions
** Use same logic & reasoning
=> Linear Appoach ( Each new idea links directly to the previous one )
Tree-of-Thought Approach
: hierarchically structuring a prompt or query, akin to a tree structure, to specify the desired line of thinking or reasoning for the model.
involvess generating multiple lines of thought, resembling a decision tree
there are diffrent possiblities/ideas from input
- allows the model to evaluate and pursue multiple paths simultaneously
- each thought or idea branches out, creating a tree-like structure of interconnected thoughts
=> Hierarchical Appoach ( Each new idea can branch off into multiple related ides )
Reference