HugeGraph-AI
Python clients, graph machine learning tools, and LLM tools for knowledge graph construction and GraphRAG on Apache HugeGraph.
At a Glance
About HugeGraph-AI
HugeGraph-AI is the Graph AI component of Apache HugeGraph, maintained under the Apache Software Foundation. It provides Python clients for HugeGraph, graph machine learning tools, and LLM tools for knowledge graph construction and GraphRAG applications. It is released under the Apache License 2.0.
What It Is
HugeGraph-AI is a Python workspace of modules that sit on top of a HugeGraph Server. Its modules cover schema design and reviewed property-graph extraction from text (hugegraph-llm-sdk), MCP access for AI clients (hugegraph-mcp), knowledge graph construction, GraphRAG and natural-language graph queries (hugegraph-llm), graph learning models (hugegraph-ml), and Python SDKs for HugeGraph and the Vermeer graph computing service.
Modules and Workflow
The LLM SDK handles schema design, entity and relation extraction, graph validation, and reviewed graph construction from text. The MCP module exposes graph queries, schema tools, and controlled writes to AI clients. The ML module reads graph data from HugeGraph and runs graph learning models, with example scripts included. The HugeGraph Python client manages schemas and graph data and runs Gremlin queries.
Setup Path
The repository uses a uv workspace. The RAG service and Web UI can be started from source with uv sync --extra llm, or deployed together with HugeGraph Server through the included Docker Compose file (Server on port 8080, RAG service on port 8001). Optional extras include llm, ml, python-client, vermeer, dev, and all; the llm module has a vectordb extra adding pymilvus and qdrant-client. The documentation lists Python 3.12 or later for the workspace, LLM, and LLM SDK modules, uv 0.7 or later, and HugeGraph Server 1.5.0 or later.
Community Discussions
Be the first to start a conversation about HugeGraph-AI
Share your experience with HugeGraph-AI, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache 2.0)
HugeGraph-AI (GraphRAG and knowledge graph construction with LLMs) is distributed under the Apache License 2.0, self-hosted at no cost.
- Apache License 2.0
- Self-hosted via Docker Compose or from source
- GraphRAG and knowledge graph construction with LLMs
- LLM provider costs are external and not sold by the project
Capabilities
Key Features
- Knowledge graph construction from text
- GraphRAG
- Natural-language graph queries
- Schema design and graph validation with reviewed extraction
- MCP server for graph queries, schema tools and controlled writes
- Graph machine learning models
- Python client for HugeGraph with Gremlin queries
- Vermeer Python client
- Docker Compose deployment with RAG service and Web UI
- REST API
