by spcl
Official Implementation of "Affordable AI Assistants with Knowledge Graph of Thoughts"
# Add to your Claude Code skills
git clone https://github.com/spcl/knowledge-graph-of-thoughtsArchitecture Overview | Setup Guide | Quick Start | Citations
</div> <p align="center"> <img src="paper/pics/task_transformation.png" width="80%"> </p>This is the official implementation of Affordable AI Assistants with Knowledge Graph of Thoughts.
Knowledge Graph of Thoughts (KGoT) is an innovative AI assistant architecture that integrates LLM reasoning with dynamically constructed knowledge graphs (KGs). KGoT extracts and structures task-relevant knowledge into a dynamic KG representation, iteratively enhanced through external tools such as math solvers, web crawlers, and Python scripts. Such structured representation of task-relevant knowledge enables low-cost models to solve complex tasks effectively.
The KGoT system is designed as a modular and flexible framework that consists of three main components: the Controller, the Graph Store, and the Integrated Tools, each playing a critical role in the task-solving process.
<p align="center"> <img src="paper/pics/architecture.svg" width="80%"> </p>In order to use this framework, you need to have a working installation of Python 3.10 or newer.
Before running the installation, make sure to activate your Python environment (if any) beforehand.
git clone https://github.com/spcl/knowledge-graph-of-thoughts.git
cd knowledge-graph-of-thoughts/
pip install -e .
playwright install
To get started make a copy of the following template files inside the kgot directory:
kgot/config_llms.template.jsonkgot/config_tools.template.jsonThen rename them as follows:
config_llms.template.json → config_llms.jsonconfig_tools.template.json → config_tools.jsonPlease update the API keys, if necessary, for the language models you intend to use in the kgot/config_llms.json file.
You can also add new models by incorporating their information into the JSON file.
The object key is the language model identifier used in KGoT, and the various attributes contain the information needed to run the model.
Local models are expected to be hosted using Ollama. KGoT assumes that the model is accessible at the default Ollama...
No comments yet. Be the first to share your thoughts!