Skip to main content

GraphAide

GraphAide Logo

GraphAide is an advanced multi-agentic query and reasoning system that constructs knowledge graphs (KG) from diverse sources and enables querying and reasoning over the resulting graphs. It harnesses both knowledge graphs and LLMs to rapidly develop domain-specific digital assistants.

Technical Summary

GraphAide v2 is a multi-agent system that uses LangGraph for workflow orchestration, LLMs for entity/relationship extraction, Neo4j for graph storage, and ChromaDB for vector embeddings.

The codebase follows a factory pattern: ModelFactory, GraphDBFactory, VectorStoreFactory, and AgentFactory create and inject dependencies into specialized agents. Agents communicate through shared state objects (KGGenerationState) that track nodes, edges, and messages as data flows through the pipeline.

Project Structure:

  • src/graphgen/v2/ - Core modules (factories, state, workflows)
  • src/graphgen/v2/agents/ - Agent implementations (extractor, loaders, visualizers)
  • templates/ - Prompt templates for each agent
  • tests/notebooks/ - Demo notebooks and test data

Tested Models:

Provider LLM Embedding
LMStudio (local) google/gemma-3-27b:2 text-embedding-nomic-embed-text-v1.5
AWS Bedrock anthropic.claude-3-5-sonnet-20241022-v2:0 amazon.titan-embed-text-v1
OpenAI gpt-4o text-embedding-3-small

Quick Start

📚 Documentation:

  • QUICKSTART.md - Installation, setup, and first examples
  • ARCHITECTURE.md - Deep technical overview (factories, agents, state, workflows)
  • REFERENCE.md - Complete CLI/API reference and feature matrix
  • CLAUDE.md - Guide for Claude AI Code (developers only)

Installation

# From project root
pip install .

# With Docker
docker compose up -d

Deployment Scripts

Linux/Mac/WSL

./graphaide_docker_build.sh 2.0.1              # Build production + dev images
./start-graphaide-prod.sh                      # Start production services
./start-graphaide-dev.sh                       # Start development services

Windows (PowerShell)

.\scripts\windows\graphaide_docker_build.ps1 2.0.1        # Build images
.\scripts\windows\start-graphaide-prod.ps1                # Start production
.\scripts\windows\start-graphaide-dev.ps1                 # Start development

Note: For Windows users, we recommend using WSL (Windows Subsystem for Linux) with the bash scripts above. Native PowerShell scripts are available in scripts/windows/ for reference.

Usage

Ways to Run GraphAide:

Mode Description
CLI (Host) graphaide extract, graphaide query, etc.
CLI (Docker) Run inside container via docker exec
Python API Import WorkflowManager for programmatic access
REST API FastAPI endpoints at http://localhost:8000

Getting Started:

  • Start with QUICKSTART.md for 5-minute setup
  • Run graphaide extract document.pdf to test locally
  • See tests/notebooks/demoGraphAide.ipynb for advanced examples

Support

Please reach out to Sumit.Purohit@pnnl.gov for any questions.

Authors and acknowledgment

Please reach out to Sumit.Purohit@pnnl.gov for any questions.

Citation

If you use GraphAide in your research, please cite:

@inproceedings{purohit2024graphaide,
  title={GraphAide: Advanced Graph-Assisted Query and Reasoning System},
  author={Purohit, Sumit and Chin, George and Mackey, Patrick S and Cottam, Joseph A},
  booktitle={2024 IEEE International Conference on Big Data (BigData)},
  pages={3485--3493},
  year={2024},
  organization={IEEE}
}

The research described in this paper is partially supported by the Resilience Through Data Driven, Intelligently Designed Control (RD2C) Initiative at Pacific Northwest National Laboratory (PNNL) and the United States federal government. Pacific Northwest National Laboratory is a multiprogram national laboratory operated for the US Department of Energy (DOE) by Battelle Memorial Institute under Contract No. DEAC05-76RL01830. PNNL Information Release PNNL-SA205147.

License

Please refer LICENSE and DISCLAIMER files for details.

Project status

Active development

Download files

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

Source Distribution

graphaide-0.4.5.tar.gz (22.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphaide-0.4.5-py3-none-any.whl (139.1 kB view details)

Uploaded Python 3

File details

Details for the file graphaide-0.4.5.tar.gz.

File metadata

  • Download URL: graphaide-0.4.5.tar.gz
  • Upload date:
  • Size: 22.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for graphaide-0.4.5.tar.gz
Algorithm Hash digest
SHA256 8679609fd471efb23ff3947bee87f461411f7ed50666ebc79151ff27a347998a
MD5 c7dda36c42c5341f68609414e4a7f9bf
BLAKE2b-256 77ad23bb466eb188e72f83c4409d16d367e4215fa97baa234a1dc85c2a044b9e

See more details on using hashes here.

File details

Details for the file graphaide-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: graphaide-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 139.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for graphaide-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cf0e06c990228258b6e716ba9590c27a68a7cfcef4adfbc939bc2ac7ee2b1466
MD5 4f74ce98235eabbec481a04c0948b1d2
BLAKE2b-256 1407e13ce0c27f0cd269d72c41175f25c7c2f1c15e2a3db131a31faddaf027f2

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.26

2 files

0.4.25

2 files

0.4.24

2 files

0.4.23

2 files

0.4.22

2 files

0.4.21

2 files

0.4.20

2 files

0.4.19

2 files

0.4.18

2 files

0.4.17

2 files

0.4.16

2 files

0.4.15

2 files

0.4.14

2 files

0.4.13

2 files

0.4.12

1 file

0.4.11

1 file

0.4.10

1 file

0.4.9

1 file

This release

0.4.5 This release

2 files

0.4.4

2 files

0.4.3

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page