Organizations sit on mountains of unstructured material - PDF reports, long video transcripts, and internal web pages - that hold valuable context yet resist direct querying. LLM Graph Builder bridges that gap by converting unstructured sources into queryable Neo4j knowledge graphs.

Four Steps from Raw Documents to Graph Chat

LLM Graph Builder is an open-source pipeline that uses an LLM to extract entities and relationships from raw text and store them in Neo4j. Processing runs in four stages: ingesting unstructured sources (PDFs, documents, videos, or web pages), extracting nodes and edges with an LLM, persisting the resulting graph inside Neo4j, and answering conversational user queries with source metadata attached to every response.

Users can also supply custom schemas to control exactly which node labels and relationship types get created, then inspect and explore the generated graph visually in Neo4j Bloom.

Multi-Model Support and Hybrid Query Modes

The tool handles everything from graph extraction to conversational retrieval across major model providers including OpenAI, Gemini, Azure OpenAI, and Anthropic. For embeddings, teams can choose between OpenAI, Gemini, Amazon Titan, and Sentence Transformers (the default).

Query behavior is configurable via the VITE_CHAT_MODES environment variable, supporting vector search (vector), graph traversal (graph), combined graph_vector mode, fulltext, and entity_vector. While vector search retrieves chunks by embedding similarity, graph search walks explicit nodes and edges; combining both captures semantic similarity alongside explicit structural relationships.

Running LLM Graph Builder Locally

Self-hosting requires Python 3.12 or newer and a Neo4j 5.23+ instance with APOC installed. Neo4j 5.23+ is mandatory because the backend relies on Cypher variable-scope subquery syntax (CALL (variable) { ... }), which fails on older releases such as 5.20.

To start manually, copy example.env to .env inside the backend folder with your Neo4j credentials, then run yarn and yarn run dev inside frontend. Local Docker Compose setups and fully local graph extraction through Ollama are also supported out of the box. Once connected to Neo4j, users select unstructured files to build the graph and query it through the built-in chat UI. The project ships under the Apache License 2.0.

Pairing schema-guided LLM extraction with hybrid graph-vector retrieval gives data teams a practical way to make unstructured document collections conversational.

Summary

  • Converts unstructured PDFs, transcripts, and web pages into structured Neo4j knowledge graphs using LLMs.
  • Supports major cloud and local LLM/embedding providers alongside vector, graph, graph_vector, fulltext, and entity_vector query modes.
  • Runs locally via Python/Yarn, Docker Compose, and Ollama on Neo4j 5.23+ under the Apache License 2.0.