Model or dataset
spcl/graph-of-thoughts avatar
spcl/graph-of-thoughts

graph of thoughts is two years past its last tag, and neither quick start snippet is complete

Official Implementation of "Graph of Thoughts: Solving Elaborate Problems with Large Language Models"

2,849 stars218 forksPythonNOASSERTION

At a glance

What is it?
graph-of-thoughts is the reference implementation of the Graph of Thoughts paper, modelling a problem as a Graph of Operations executed by a language model. Its manifest reads 0.0.3 while the newest release tag is v0.0.2 from 2023, all eleven dependencies are capped below their next major, and both quick start code blocks stop mid statement.
Who is it for?
graph of thoughts is worth reading if you want the reference implementation rather than a maintained framework, and the design point is real: the graph is the primitive, so chain and tree prompting become special cases rather than separate systems. Two things to accept before you build on it.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Activity is slowing. The repository last received commits 8 months ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • spcl/graph-of-thoughts2,849 ★ · +11
Star history
Repository2026-09-102026-11-24
spcl/graph-of-thoughts2.8k2.8k

11 Stars in the last 75 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The manifest says 0.0.3 and the newest tag is v0.0.2 from 2023

Three dates tell the story of this repository. The paper appeared in the AAAI conference proceedings in March 2024, at volume 38, number 16, pages 17682 to 17690. The release history holds two tags, v0.0.1 in August 2023 and v0.0.2 in September 2023, so the last tagged artifact predates publication. The last push is dated 2026-03-24, roughly two and a half years after that tag. Meanwhile the manifest declares version 0.0.3, a number with no corresponding release. So there are three states: a published paper, a tagged codebase from 2023, and a working tree that has moved since. Anyone installing from the index gets whichever commit pip resolved for 0.0.3, which is not the same as the code in the repository today.

Neither quick start snippet is complete

The readme gives two quick start snippets for the same 32 number sorting problem, one for the chain of thought style graph and one for the graph of thoughts graph. Both stop in the middle. The first ends on a comment that begins to explain where the language model configuration lives and then cuts off mid clause. The second ends partway through a constructor call, opening a SortingPrompter argument and never closing it. What survives is the part that matters most for understanding the design, which is the graph assembly:

python
from examples.sorting.sorting_032 import SortingPrompter, SortingParser, utils
from graph_of_thoughts import controller, language_models, operations

# Problem input

to_be_sorted = "[0, 2, 6, 3, 8, 7, 1, 1, 6, 7, 7, 7, 7, 9, 3, 0, 1, 7, 9, 1, 3, 5, 1, 3, 6, 4, 5, 4, 7, 3, 5, 7]"

# Create the Graph of Operations
gop = operations.GraphOfOperations()
gop.append_operation(operations.Generate())
gop.append_operation(operations.Score(scoring_function=utils.num_errors))
gop.append_operation(operations.GroundTruth(utils.test_sorting))

Three operations appended in order: generate, score with a user supplied function, and a ground truth check.

Every one of the eleven dependencies is capped below its next major

Look at the dependency block and the pattern is absolute. All eleven entries carry both a floor and a ceiling: backoff below 3.0.0, openai below 2.0.0, matplotlib below 4.0.0, numpy below 2.0.0, pandas below 3.0.0, sympy below 2.0, torch below 3.0.0, transformers below 5.0.0, accelerate below 1.0.0, bitsandbytes below 1.0.0, and scipy below 2.0.0. Not one is left to float. That is defensible for a research artifact whose results people want to reproduce, and it is also a set of ceilings that will each need lifting. The openai ceiling is the one to think about first, because it pins the client to the first generation of that library while the readme example passes a model name string of chatgpt rather than a dated identifier.

Installing the library pulls a local model stack

What the framework does is orchestrate language model calls over a graph of operations. What it requires you to install is considerably wider than that. Four of the eleven dependencies are a local model stack: torch, transformers, accelerate, and bitsandbytes. The last of those is specifically for quantised GPU work. Alongside them sit scipy and sympy, matplotlib for plotting, pandas and numpy for the data frames the operations pass around, and the openai client. So if your plan is to point the controller at a hosted endpoint through a config file, a plain pip install still brings in a CUDA-oriented stack you will not import. That is the practical cost of the fully capped dependency set, and it is worth weighing before installing into a constrained environment.

The package credits four of the paper's eleven authors

The citation block lists eleven authors on the paper: Besta, Blach, Kubicek, Gerstenberger, Gianinazzi, Gajda, Lehmann, Podstawski, Niewiadomski, Nyczyk, and Hoefler. The manifest lists four people as package authors: Maciej Besta, Nils Blach, Ales Kubicek, and Robert Gerstenberger, each with an address. So the pip metadata attributes the code to the first four names on the paper. Nothing is wrong with that, since a package author list and a paper author list are different things, but it does mean the two documents answer the question of who made this differently. The citation block also asks readers for a star in the same section where it asks them to cite the work.

An empty project.scripts table sits next to module-run instructions

The manifest declares a console script table and leaves it with no entries under it. That is consistent with how the readme tells you to run things, which is as Python modules from the repository root:

bash
python -m examples.sorting.sorting_032
python -m examples.keyword_counting.keyword_counting

There is no command to install, so the package is a library and its examples are run as scripts in a checkout. The examples directory holds four problems, document merging, keyword counting, set intersection, and sorting, each with its own readme, and the readme notes that results are written into the example's own subdirectory when you run them from the main directory. The build backend is hatchling, the build requirement is a single entry, and the Python floor is 3.8.

Licence metadata says nothing while a LICENSE file sits in the root

The repository's licence field reports no assertion, which means nothing was detected there. The tree itself carries a LICENSE file, and the manifest points its licence entry at that file by name. So the intent to licence is recorded in two places and the metadata field is the odd one out. The paper this implements was published through AAAI Press, which is a separate question from the code licence and is not something the repository resolves. If you are auditing this dependency, read the LICENSE file in the tree rather than the metadata field, and treat the difference between the two as unresolved rather than assuming the field is authoritative.

Chain and tree prompting become special cases of one graph

The design claim is that the graph, not the chain, is the primitive. A problem is modelled as a Graph of Operations, which is then executed with a language model as the engine, and the operations are appended to a graph object one at a time. Because the structure is a graph rather than a chain, the readme says you can also implement graphs of operations that resemble earlier approaches such as chain of thought or tree of thought. That is what makes the example pair instructive: the same sorting problem is solved twice, once with a graph assembled inline from three operations and once with a graph retrieved from the example module. The two runs write separate output files, and the score carried on each thought state reports the number of errors in the sorted list.

Editorial conclusion

graph of thoughts is worth reading if you want the reference implementation rather than a maintained framework, and the design point is real: the graph is the primitive, so chain and tree prompting become special cases rather than separate systems. Two things to accept before you build on it. Neither quick start snippet is complete as printed, so budget time to finish the controller wiring yourself from the module READMEs. And the install pulls torch, transformers, accelerate and bitsandbytes even if you only intend to call a hosted model, so on a machine without a GPU you are paying for a stack you will not use. Pin against the released tags rather than the manifest version, since they are not the same.

Frequently asked questions

What is graph of thoughts?

The official implementation of the Graph of Thoughts paper. It models a problem as a Graph of Operations that is executed automatically with a large language model as the engine, and because the structure is a graph rather than a chain it can also implement approaches resembling chain of thought or tree of thought.

How do I install graph-of-thoughts?

Two routes. Users install the package from PyPI with pip install graph_of_thoughts, and developers clone the repository and run pip install -e in editable mode. Python 3.8 or newer is required, and the LLM itself is configured separately by following the controller README for the model of your choice.

Does graph-of-thoughts need a GPU?

The dependency list pulls torch, transformers, accelerate and bitsandbytes whether or not you plan to run a local model, so a GPU-oriented stack is installed regardless. If you intend to drive the framework through a hosted endpoint with a config file, those four packages are installed and unused.

Which examples does the graph-of-thoughts repository ship?

Four problems, in directories for document merging, keyword counting, set intersection, and sorting, each with its own readme. They can be run from the main directory as modules, and results are written into the corresponding example subdirectory. A separate paper directory holds the data needed to replot the results without rerunning the experiments.

What licence is graph-of-thoughts under?

The repository's licence metadata field reports nothing, while the tree carries a LICENSE file and the manifest points its licence entry at that file. Read the file in the tree rather than the metadata field, and treat the mismatch between the two as unresolved.

Official sources

  1. Issues
  2. Project website
  3. README
  4. Releases
  5. spcl/graph-of-thoughts on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/spcl-graph-of-thoughts.svg)](https://hysenlabs.com/projects/spcl-graph-of-thoughts)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/spcl-graph-of-thoughts.svg)](https://hysenlabs.com/projects/spcl-graph-of-thoughts)

Was this useful?