LibreAI / RAG & Knowledge / llm-graph-builder
// rag · neo4j-labs/llm-graph-builder

llm-graph-builder

Build Neo4j knowledge graphs from unstructured data using LLMs — then chat with your graph.

★ 5.3k stars⑂ 882 forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

llm-graph-builder is an open-source rag & knowledge project by neo4j-labs (neo4j-labs/llm-graph-builder on GitHub). It has 5,276 GitHub stars and 882 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 6 October 2026.

GitHub stars
5,276
Forks
882
License
Apache-2.0
Last updated on GitHub
6 October 2026
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your knowledge domain

    Decide which unstructured sources should become a graph and what entities and relationships matter.

  2. Prepare Neo4j

    Create a Neo4j 5.23+ database (Aura free tier works) with APOC, and note its URI and credentials.

  3. Deploy the app

    Run the backend and frontend (Docker Compose for most setups, or separately for Neo4j Desktop) and set the Neo4j and LLM environment variables.

  4. Build and chat

    Import a first source, generate the graph, view it in Neo4j Bloom, and ask questions in the chat interface.

// features

Why people love it

Unstructured-to-graph extraction

Turns documents and other unstructured sources into nodes, relationships and properties using advanced LLMs.

Custom or preset schemas

Generate graphs under a custom schema you define, or reuse existing schemas configured in the settings.

Many source types

Ingests local files, YouTube, Wikipedia, Amazon S3, Google Cloud Storage and web pages.

Conversational GraphRAG chat

Chat with your data through the graph, with response metadata showing the sources behind answers; a standalone /chat-only route is included.

Provider choice

Works with multiple LLM providers (including OpenAI, Gemini, Anthropic and Diffbot options) and embedding models from OpenAI, Gemini, Amazon Titan or Sentence Transformers.

Usage tracking

Optional per-user token usage tracking with daily/monthly consumption views and limit checks via API.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone LLM Graph Builder and enter the project directory.

    git clone https://github.com/neo4j-labs/llm-graph-builder.git
    cd llm-graph-builder
  2. Configure the backend

    Set your Neo4j connection and model keys, create the backend virtual environment and install requirements.

    # Set NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_DATABASE in backend/.env
    cd backend
    python3.12 -m venv venv && source venv/bin/activate
    pip install -r requirements.txt
  3. Start backend and frontend

    Run the API server, then start the frontend dev server in a second terminal.

    uvicorn score:app --reload
    # frontend: cd frontend && yarn && yarn run dev
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains LLM Graph Builder?

It is a neo4j-labs project, maintained by Neo4j's labs team and contributors.

Is it free?

The app is Apache-2.0 licensed; you need a Neo4j database (Aura has a free tier) and an LLM provider account for extraction.

Does it need a paid API key?

Extraction and chat use LLMs, so you need a key for a supported provider (or a local model setup such as Ollama, which the README covers).

How does it compare to manual knowledge-graph engineering?

Manual pipelines require custom extraction code per source; this tool provides the ingestion, LLM extraction, schema handling and chat UI as one ready application on Neo4j.

How do I get started?

Create a Neo4j 5.23+ database, clone the repo, set the environment variables, and start the backend and frontend.

// keep exploring

Similar tools

RAG & Knowledge

graphrag

Microsoft's graph-based RAG: index a corpus into a knowledge graph, then query it with an LLM

★ 36.3k starsMIT
View guide →
RAG & Knowledge

unstract

Unstract — LLM-driven extraction of unstructured data, built for API deployments and ETL pipeline workflows.

★ 7.3k starsAGPL-3.0
View guide →
RAG & Knowledge

rags

Build a ChatGPT over your own data using natural language and LlamaIndex.

★ 6.5k starsMIT
View guide →
RAG & Knowledge

VideoRAG

VideoRAG — chat with your videos, even hundreds of hours of them, with graph-driven retrieval.

★ 3.4k starsNOASSERTION
View guide →
RAG & Knowledge

docuchat.app

Private document chat for attorneys: local LLMs, verifiable citations.

★ 35 starsMIT
View guide →
RAG & Knowledge

DB-GPT

An agentic AI data assistant - chat with your databases, run SQL and code, get reports

★ 20.1k starsMIT
View guide →
// alternatives

Alternatives in RAG & Knowledge

The most-starred other RAG & Knowledge projects in the LibreAI catalogue — the realistic shortlist if llm-graph-builder is not the right fit.

Get llm-graph-builder

Free and open — grab the source, star the repo, and start creating.