Graph of Thoughts models problems as graphs of operations executed by a configured large language model, including CoT- and ToT-like workflows.
Overview
Graph of Thoughts is a Python framework that implements the Graph of Thoughts research approach for tackling elaborate tasks with large language models. It represents a problem as a Graph of Operations that the runtime executes step by step with an LLM as the engine.
The design is meant to be flexible: you can encode newer graph-style reasoning pipelines and also reproduce patterns similar to chain-of-thought or tree-of-thought setups within the same abstraction. A controller layer orchestrates operations, and modules documented in the project explain how to extend or replace pieces of the pipeline.
After installing the package from PyPI or editable source, you connect a configured LLM backend following the controller setup notes. Quick-start examples include sorting lists with simpler and more advanced graph configurations, producing output graphs you can inspect for scoring or error counts.
Shipped examples walk through additional problems described in the associated paper, each with its own instructions. Paper experiment assets can be re-run or replotted from a dedicated directory when you only need to review published results.
Key features
- Graph of Operations execution
- Pluggable LLM controller
- Chain-of-thought style graphs
- Tree-of-thought style graphs
- Example sorting benchmarks
- Documented modular architecture
Use cases
- Research on structured LLM reasoning
- Comparing CoT and GoT pipelines
- Prototype complex LLM workflows