# Repository Briefing: neo4j-labs/llm-graph-builder
> Source: https://repoforai.com/repo/neo4j-labs/llm-graph-builder (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/neo4j-labs/llm-graph-builder
- **Official Docs / Website**: https://llm-graph-builder.neo4jlabs.com/
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Jupyter Notebook
- **License**: Apache-2.0
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 22/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v0.8.7 (2026-07-23) — https://github.com/neo4j-labs/llm-graph-builder/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 5,333 ★ total (+0 24h / +3 7d) · 889 forks
- **Topics**: `data-import`, `genai`, `graph`, `graph-rag`, `graph-search`, `graphdb`, `graphrag`, `knowledge-graph`, `langchain`, `neo4j`, `rag`, `unstructured-data`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
docker pull ollama/ollama
```
