Research paper augmenting LLMs via graph reasoning
Top 97.2% on sourcepulse
This repository provides the code and datasets for Graph Chain-of-Thought (Graph-CoT), a method for augmenting Large Language Models (LLMs) with structured knowledge from graphs. It addresses LLM hallucination by enabling step-by-step graph traversal for information retrieval, targeting researchers and developers working on grounded LLM reasoning.
How It Works
Graph-CoT is an iterative framework that allows LLMs to navigate graphs to find relevant information. Each iteration involves three steps: LLMs reason about current knowledge and identify needed information, generate interaction requests to fetch data from the graph, and execute these requests. This process repeats until the LLM can formulate a final answer, enabling chain-of-thought reasoning directly on graph structures.
Quick Start & Requirements
conda create --name graphcot python==3.8
, activate, then conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
and conda install -c pytorch -c nvidia faiss-gpu=1.7.4
, followed by pip3 install -r requirements.txt
.data/processed_data/{data_name}
and question answering datasets to data/processed_data/{data_name}/data.json
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
7 months ago
1 week