tot
#
Implementation of a Tree of Thought (ToT) chain based on the paper [Large Language Model Guided Tree-of-Thought](https://arxiv.org/pdf/2305.08291.pdf).
The Tree of Thought (ToT) chain uses a tree structure to explore the space of possible solutions to a problem.
Classes
Chain implementing the Tree of Thought (ToT). |
|
Tree of Thought (ToT) checker. |
|
Tree of Thought (ToT) controller. |
|
|
Memory for the Tree of Thought (ToT) chain. |
Parse and check the output of the language model. |
|
Parse the output of a PROPOSE_PROMPT response. |
|
A thought in the ToT. |
|
|
Enum for the validity of a thought. |
Base class for a thought generation strategy. |
|
Strategy that is sequentially using a "propose prompt". |
|
Sample strategy from a Chain-of-Thought (CoT) prompt. |
Functions
Get the prompt for the Chain of Thought (CoT) chain. |
|
Get the prompt for the PROPOSE_PROMPT chain. |