langchain/libs/experimental/langchain_experimental/tot
Vadim Gubergrits e7e5cb9d08
Tree of Thought introducing a new ToTChain. (#5167)
# [WIP] Tree of Thought introducing a new ToTChain.

This PR adds a new chain called ToTChain that implements the ["Large
Language Model Guided
Tree-of-Though"](https://arxiv.org/pdf/2305.08291.pdf) paper.

There's a notebook example `docs/modules/chains/examples/tot.ipynb` that
shows how to use it.


Implements #4975


## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:

- @hwchase17
- @vowelparrot

---------

Co-authored-by: Vadim Gubergrits <vgubergrits@outbox.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-07-26 21:29:39 -07:00
..
__init__.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
base.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
checker.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
controller.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
memory.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
prompts.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
thought_generation.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00
thought.py Tree of Thought introducing a new ToTChain. (#5167) 2023-07-26 21:29:39 -07:00