neo4j-labs/llm-graph-builder
Build Neo4j knowledge graphs from unstructured data and query them with GraphRAG
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
VITE_CHAT_MODES selects among seven vector, graph, full-text, and hybrid chat modes; /chat-only exposes a dedicated chat interface.CALL (variable) { ... } subquery syntax.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.
Chunk-level search is sufficient, ingestion must be strictly deterministic, or procurement requires a vendor-supported production product.
Quick Start & Installation
docker pull ollama/ollamaComparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| llm-graph-builder ★ | 5.3k | +3 | Jupyter Notebook | Apache-2.0 | Build Neo4j knowledge graphs from unstructured data and query them with GraphRAG |
| ragflow | 95.1k | +297 | Go | Apache-2.0 | Go-based RAG platform for parsing complex documents and grounding answers in sou |
| WeKnora | 38.8k | +387 | Go | — | Self-hosted RAG, agents, and a Wiki on shared document knowledge bases |
| LightRAG | 41k | +110 | Python | MIT | Graph-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.
curl -sL https://repoforai.com/repo/neo4j-labs/llm-graph-builder.md
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?
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?
Can we self-host it commercially without sending documents to third parties?
When is this preferable to vector RAG or a custom Neo4j ingestion service?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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