Skip to main content

Automated Graph of Thoughts

Project description

Automated Graph of Thoughts

This is the official implementation of Automated Graph of Thoughts.

Setup Guide

To run this code, Python 3.11 or newer is required. The latest version of the package can be installed from PyPI:

pip install auto-graph-of-thoughts

Alternatively, the package can be installed from source.

Optional Dependencies

The project comes with optional dependencies which are required for some features.

Graph Visualization

To visualize the graphs by using pure_graph_of_thoughts.visualization, the optional visualization dependencies are required.

pip install auto-graph-of-thoughts[visualization]

For a cleaner, hierarchical visualization, add dot-visualization.

pip install auto-graph-of-thoughts[visualization,dot-visualization]

Be aware that dot-visualization requires the GraphViz library to be installed.

Pure Graph of Thoughts

The package pure_graph_of_thoughts contains a new implementation of the Graph of Thoughts concepts.

Graph of Thoughts was originally introduced in the paper Graph of Thoughts: Solving Elaborate Problems with Large Language Models. The official implementation of the paper's proposed API can be found here: https://github.com/spcl/graph-of-thoughts.

The pure_graph_of_thoughts package does not conform the API proposed by the original paper nor is it a fork of it. It aims for a more automation-friendly implementation of the general concept of Graph of Thoughts, where both construction and traversal of a graph can be handled iteratively.

Some key differences and restrictions:

  • Operations and thoughts are represented independently of their graph structure.
  • As a user-facing API, operations can be defined in a declarative way over a typed and validated data structure (DSL).
  • There is a strict distinction between a prompt operation executed by a language model and a code execution operation.
  • To simplify parsing logic and to ensure consistent results, the JSON format is used for communication with the language model.
  • The scoring is now part of an operation involving a prompt, rather than being a standalone operation that can be added arbitrarily. While this simplifies the automation process, it restricts the user's possibility of adding a validation operation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_graph_of_thoughts-0.1.0.tar.gz (18.7 MB view details)

Uploaded Source

Built Distribution

auto_graph_of_thoughts-0.1.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file auto_graph_of_thoughts-0.1.0.tar.gz.

File metadata

File hashes

Hashes for auto_graph_of_thoughts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 30cd14eabd1ab2935fa0194d080d37040d977f99aedfd4ef9c85e85412d1d8eb
MD5 c7d5ce83f590c0e49d315f69675e6943
BLAKE2b-256 97088c917e69f04776d6cdfa715e02d9063aa47f01611ea23b9010e06d07e01a

See more details on using hashes here.

File details

Details for the file auto_graph_of_thoughts-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_graph_of_thoughts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3475c4a21413d0557131fc21fa6c2f58359799743a2b6455798cd26114d31c4a
MD5 e93b03538d1d9342aeb79cd985136110
BLAKE2b-256 d158eb009e04539f3c724c4658d252ce961e67c1689d713887b651a47f20a486

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page