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
Built Distribution
File details
Details for the file auto_graph_of_thoughts-0.2.0.tar.gz
.
File metadata
- Download URL: auto_graph_of_thoughts-0.2.0.tar.gz
- Upload date:
- Size: 18.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0d4e8bd03c5bbc8d2104a8cc84f79629031258bbd3d81172d1d01f4b1caf0f |
|
MD5 | f131ecbfbb6093dbb89543a75231aa0b |
|
BLAKE2b-256 | c28b2976314746a84067f112a6f373d19d30af4dd23adad14cf6cac6ed345e64 |
File details
Details for the file auto_graph_of_thoughts-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: auto_graph_of_thoughts-0.2.0-py3-none-any.whl
- Upload date:
- Size: 48.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 507b3ffbb21c893c16a3d0612bd97db5afdbf3e82e876f821ccd3991d9a9ca54 |
|
MD5 | 23dc70ac788cdc0b8b13d5e2b2f040ca |
|
BLAKE2b-256 | 17e89403306a81f1710653ec55ea1f055b2a7f94ba04a0cc530b59fa48efd03e |