← Back to Leaderboard
Lneo4j-labs

neo4j-labs/llm-graph-builder

Build Neo4j knowledge graphs from unstructured data and query them with GraphRAG

Engineering Health (Methodology)
A+ · 91/100
Maintenance Activity
● Updated yesterday
Latest Release
v0.8.7
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption22/25
Release Cadence14/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 5,333
24h Growth
+0
7d Growth
+3
Forks
889

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

neo4j-labs/llm-graph-builder Star History (2024-01-22 - 2026-12-03) ALL-TIME STAR HISTORY (2024-01 – 2026-12) +5.3k in 1046d · avg +5/day 5.6k 2.8k 0 2024-01-22: ★ 12024-03-30: ★ 162024-06-08: ★ 2182024-08-17: ★ 1,7652024-10-26: ★ 2,1852025-01-04: ★ 2,6492025-03-15: ★ 3,0662025-05-24: ★ 3,4032025-08-02: ★ 3,6852025-10-11: ★ 3,9462025-12-20: ★ 4,1482026-02-28: ★ 4,4082026-05-09: ★ 4,6132026-07-18: ★ 4,9212026-09-26: ★ 5,2452026-12-03: ★ 5,333 ★ 5.3k 2024-01 2025-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Neo4j LLM Graph Builder is a browser application backed by a Python service and Neo4j. The Yarn-managed frontend handles source selection, extraction settings, and chat; it connects to the API through VITE_BACKEND_API_URL. The backend runs through Uvicorn at score:app and uses LangChain with the selected LLM to extract nodes, relationships, and properties from unstructured inputs. Neo4j stores the resulting graph, which can be previewed by source and explored in Bloom.

Extraction and embedding are configured separately. Operators expose extraction choices with VITE_LLM_MODELS_PROD and configure providers through backend model settings. Embedding generation is enabled by default in the Compose configuration, while entity embeddings are off by default. This lets an operator change how documents are represented for vector retrieval without also changing the extraction provider; a change to the embedding model still calls for a plan to regenerate affected vectors and validate retrieval.

Key Capabilities & Differentiators

The ingestion flow accepts PDFs, DOC files, plain text, and content from web pages and YouTube. Local uploads, YouTube, Wikipedia, S3, and web sources are enabled by default; GCS is opt-in. Operators can constrain node and relationship labels with a preset or custom schema, process selected files or all files in New status, and inspect individual or combined source graphs.

Chat offers seven configurable modes spanning graph, vector, full-text, and hybrid retrieval, returns source metadata, and has a dedicated /chat-only route. Embedding options include OpenAI, Gemini, Amazon Titan, and Sentence Transformers. With TRACK_USER_USAGE=true and a configured tracking database, users can persist their embedding selection and inspect daily and monthly token usage and limits. Without tracking, the backend environment controls the embedding choice, and the frontend selector cannot change it.

Trade-offs & Limitations

Compared with vector-only RAG, this app adds an inspectable representation of entities and relationships and lets teams compare graph, vector, and hybrid retrieval over the same corpus. That is useful when the questions depend on how entities are connected. It is extra work when the goal is simply to find relevant passages: extraction adds inference and graph writes, and inconsistent labels or duplicate entities can undermine retrieval even when the source text is sound.

Compared with a hand-built Neo4j import pipeline, the application reduces UI and provider-integration work but gives less control than deterministic mappings backed by explicit validation. Provider availability varies by deployment, so validate the exact model configuration rather than equating a listed integration with a Compose default. For a production pilot, sample extracted entities and edges, check answer sources, and measure cost and throughput on representative batches. This is an experimental Neo4j Labs project, not a supported Neo4j product.

Hardware & Deployment Guide

Docker Compose builds the backend from ./backend/Dockerfile and reads backend/.env. A split development setup uses Python 3.12+ with uvicorn score:app --reload and Yarn with yarn run dev. Both paths need access to Neo4j 5.23+ with APOC; older releases such as 5.20 lack the scoped CALL syntax used by the backend. Aura, including its free tier, is supported. Neo4j Desktop requires running the frontend and backend separately rather than through the supplied Compose path.

Compose enables OpenAI and Diffbot by default; Gemini requires extra GCP configuration. The Ollama path points the backend at a reachable local model endpoint, but keeping inference on-site also means selecting local embeddings and avoiding external source connectors and cloud caching. Cloud Run is another deployment option; for internal corpora, put authentication in front of the app and manage credentials as secrets. Release v0.8.5 expanded embedding selection and usage tracking, v0.8.6 addressed Wikipedia rate-limit failures, and v0.8.7 broadened model support and linked to Neo4j Document Intelligence.

Graph construction: LangChain-based extraction turns unstructured sources into Neo4j nodes, relationships, and properties under a configurable schema.
Ingestion: Local files, web pages, YouTube, Wikipedia, and S3 are enabled by default; GCS is opt-in.
Retrieval: VITE_CHAT_MODES selects among seven vector, graph, full-text, and hybrid chat modes; /chat-only exposes a dedicated chat interface.
Model configuration: Docker Compose defaults to OpenAI and Diffbot; Gemini needs additional GCP setup, and Ollama can serve local extraction.
Embedding policy: OpenAI, Gemini, Amazon Titan, and Sentence Transformers are supported; without usage tracking, model selection is managed through backend environment variables.
Database compatibility: Neo4j 5.23+ with APOC is required because the backend uses CALL (variable) { ... } subquery syntax.
Best For

Teams already using or evaluating Neo4j that want to turn document collections into inspectable graphs and compare retrieval modes before committing to a GraphRAG architecture.

Skip If

Chunk-level search is sufficient, ingestion must be strictly deterministic, or procurement requires a vendor-supported production product.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
docker pull ollama/ollama

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
llm-graph-builder ★5.3k+3Jupyter NotebookApache-2.0Build Neo4j knowledge graphs from unstructured data and query them with GraphRAG
ragflow95.1k+297GoApache-2.0Go-based RAG platform for parsing complex documents and grounding answers in sou
WeKnora38.8k+387Go—Self-hosted RAG, agents, and a Wiki on shared document knowledge bases
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/neo4j-labs/llm-graph-builder.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

neo4j-labs/llm-graph-builder Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about llm-graph-builder

What integration points matter when connecting this to an existing Neo4j stack?

Start with a reachable Neo4j 5.23+ database with APOC and configure the backend for your chosen extraction provider. The frontend uses VITE_BACKEND_API_URL to locate the backend API. To make the output useful beyond the UI, define node and relationship labels before ingestion and check a sample graph against the Cypher queries your downstream application needs.

Do I need a GPU, and what should I size for?

No GPU or VRAM minimum is specified. With hosted extraction and embedding models, inference runs at the providers, but the app and database still need resources for parsing, ingestion, and indexing. Local Sentence Transformers and Ollama add model execution to your own infrastructure. Size against the chosen models, typical document batches, and concurrent ingestion and chat rather than assuming a fixed hardware requirement.

Can we self-host it commercially without sending documents to third parties?

Apache-2.0 permits commercial use and self-hosting, subject to its terms, including notice and license obligations when redistributing. Review Neo4j, model, and provider terms separately. Self-hosting the app does not keep documents on-site if extraction or embedding calls go to hosted providers or if files are cached in GCS.

When is this preferable to vector RAG or a custom Neo4j ingestion service?

Choose this when the deliverable includes an inspectable graph with explicit entities and relationships, and you want to evaluate graph and vector retrieval in one application. A vector-only pipeline is simpler when chunk-level retrieval is enough. Prefer a custom Neo4j ingestion service when deterministic mapping, validation, and integration with existing job controls are more important than a ready-made UI.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining neo4j-labs/llm-graph-builder? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature neo4j-labs/llm-graph-builder on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare