Skip to main content

Auto Graph Builder Framework

Transform any dataset into a Knowledge Graph with just a few lines of code


🎯 Vision

A framework that automatically converts structured data (JSON, CSV, Excel) into optimized Neo4j graph databases using LLM-powered entity extraction and optional embeddings.

Goal: Enable developers to build knowledge graphs without graph expertise.


💡 The Problem

Building a graph database today requires:

# Current approach: 100+ lines of code + expertise

1. Manually design graph schema
   - Which nodes? Which relationships?
   - What properties to store?
   
2. Write entity extraction logic
   - Parse text fields
   - Extract organizations, people, locations
   - Handle edge cases
   
3. Create database schema
   - Write Cypher for constraints
   - Create indexes for performance
   - Test and debug
   
4. Insert data
   - Write complex Cypher queries
   - Handle batching
   - Error handling
   
5. Add embeddings (optional)
   - Generate vectors
   - Create vector indexes
   - Sync with graph

6. Optimize & maintain
   - Monitor performance
   - Add new indexes
   - Update schema

Result: Takes days/weeks, requires Neo4j expertise, error-prone.


✨ Our Solution

# Auto Graph approach: 3 lines

from autograph import GraphBuilder

builder = GraphBuilder(
    llm_api_key="sk-...",           # OpenAI or Anthropic
    neo4j_uri="bolt://localhost:7687",
    neo4j_password="password",
    use_embeddings=True              # Optional
)

builder.load_data("data.json").build_graph()

Result: Working knowledge graph in minutes, zero graph expertise needed.

What Happens Automatically

1. 🤖 LLM analyzes your data structure
   → Designs optimal graph schema
   → Suggests node types & relationships

2. 🧠 LLM extracts entities from text
   → Organizations, people, locations, etc.
   → Creates connections automatically

3. ⚡ Framework optimizes database
   → Creates constraints for uniqueness
   → Adds indexes for performance
   → Batch processing for efficiency

4. 📊 Optional: Generates embeddings
   → Vector representations of text
   → Enables semantic search
   → Hybrid graph + vector queries

🌟 Core Capabilities

1. Zero Configuration

  • No manual schema design
  • No Cypher knowledge required
  • Works out of the box

2. LLM-Powered Intelligence

  • Automatic schema detection
  • Smart entity extraction
  • Relationship inference

3. Multi-Format Support

  • JSON files
  • CSV spreadsheets
  • Excel workbooks
  • Pandas DataFrames

4. Optional Semantic Search

  • Toggle embeddings on/off
  • Automatic vector indexing
  • Hybrid graph + semantic queries

5. Production Ready

  • Auto-optimization
  • Batch processing
  • Error handling
  • Performance monitoring

🏗️ How It Works

┌──────────────────────────────────────────────────────┐
│              YOUR DATA (JSON/CSV/Excel)              │
└────────────────────┬─────────────────────────────────┘
                     │
                     ▼
┌──────────────────────────────────────────────────────┐
│                 AUTO GRAPH BUILDER                   │
│                                                      │
│  Step 1: Analyze Data                               │
│  ├─ LLM examines structure                          │
│  └─ Designs graph schema                            │
│                                                      │
│  Step 2: Extract Entities                           │
│  ├─ LLM reads text fields                           │
│  └─ Identifies entities & relationships             │
│                                                      │
│  Step 3: Build Graph                                │
│  ├─ Create nodes & relationships                    │
│  ├─ Add constraints & indexes                       │
│  └─ Optimize for queries                            │
│                                                      │
│  Step 4: Optional Embeddings                        │
│  ├─ Generate vectors                                │
│  └─ Create vector index                             │
└────────────────────┬─────────────────────────────────┘
                     │
                     ▼
┌──────────────────────────────────────────────────────┐
│           NEO4J KNOWLEDGE GRAPH (Ready!)             │
└──────────────────────────────────────────────────────┘

Key Components

  1. Data Loaders - Understand your data format
  2. Schema Analyzer - LLM designs graph structure
  3. Entity Extractor - LLM finds entities in text
  4. Graph Manager - Builds optimized Neo4j database
  5. Embedding Generator - Optional semantic search

🚀 Quick Start

Basic Usage

from autograph import GraphBuilder

# Initialize
builder = GraphBuilder(
    llm_api_key="sk-...",
    neo4j_uri="bolt://localhost:7687",
    neo4j_password="password"
)

# Build graph automatically
builder.load_data("data.json").build_graph()

# Search
results = builder.search("AI regulation")

With Semantic Search

builder = GraphBuilder(
    llm_api_key="sk-...",
    neo4j_uri="bolt://localhost:7687",
    neo4j_password="password",
    use_embeddings=True  # Enable vector search
)

builder.load_data("data.json").build_graph()

# Semantic search automatically enabled
results = builder.search("government AI policy")

Different Data Formats

# JSON
builder.load_data("news.json")

# CSV
builder.load_data("products.csv")

# Excel
builder.load_data("customers.xlsx")

# All trigger automatic processing
builder.build_graph()

🎨 Example Use Cases

News & Media

Transform RSS feeds and articles into searchable knowledge graphs with automatic entity extraction and topic clustering.

E-Commerce

Build product catalogs with automatic category hierarchies, brand relationships, and customer review connections.

Research & Academia

Create citation networks from paper databases with author affiliations and topic relationships.

Social Networks

Map user interactions, followers, and content sharing patterns automatically from platform exports.

Business Intelligence

Convert CRM data into relationship graphs showing customer journeys, sales patterns, and market segments.


⚙️ Configuration

Minimal Setup

builder = GraphBuilder(
    llm_api_key="sk-...",
    neo4j_uri="bolt://localhost:7687",
    neo4j_password="password"
)

Common Options

builder = GraphBuilder(
    # Required
    llm_api_key="sk-...",
    neo4j_uri="bolt://localhost:7687",
    neo4j_password="password",
    
    # Optional
    use_embeddings=True,        # Enable semantic search
    llm_provider="openai",      # or "anthropic"
    verbose=True                # Show progress
)

🤖 How LLM Powers the Framework

Automatic Schema Detection

The framework sends sample data to LLM:

Input: Sample of your data

[
  {
    "title": "White House considers AI regulation",
    "source": "NYT",
    "content": "The White House is discussing..."
  }
]

LLM Analyzes and Returns:

{
  "node_types": [
    {"label": "Article", "id_field": "url"},
    {"label": "Source", "id_field": "name"},
    {"label": "Entity", "id_field": "name"}
  ],
  "relationships": [
    {"type": "PUBLISHED_BY", "from": "Article", "to": "Source"},
    {"type": "MENTIONS", "from": "Article", "to": "Entity"}
  ]
}

Framework creates the graph automatically based on this schema.


Automatic Entity Extraction

For each record, LLM extracts entities:

Input Text:

"White House considers vetting AI models. 
The Biden administration is exploring..."

LLM Extracts:

{
  "organizations": ["White House", "Biden administration"],
  "technologies": ["AI models"],
  "people": []
}

Framework creates nodes and relationships for these entities.


⚡ Performance & Costs

Processing Time Estimates

Dataset Size Processing Time With Embeddings
100 records ~2 minutes ~5 minutes
1,000 records ~15 minutes ~40 minutes
10,000 records ~2 hours ~6 hours

Using GPT-4 and standard embedding models

Cost Estimates (OpenAI)

For 1,000 records:

  • Schema analysis: ~$0.01
  • Entity extraction: ~$2.00
  • Embeddings (optional): ~$0.02
  • Total: ~$2.03

Neo4j Requirements

  • Free tier: 200MB (suitable for ~10-50k articles)
  • Production: Aura Pro $65/month (8GB+)

🎯 Target Users

Primary:

  • Data Scientists who know Python but not Neo4j
  • Backend Developers building features quickly
  • ML Engineers needing knowledge graphs for RAG

Secondary:

  • Researchers creating quick prototypes
  • Startups building MVPs fast
  • Students learning about graphs

💎 Value Proposition

For Developers

  • ✅ 90% less code required
  • ✅ Zero graph expertise needed
  • ✅ Production-ready in minutes

For Businesses

  • ✅ Faster time to market
  • ✅ Lower development costs
  • ✅ Easier maintenance

For Projects

  • ✅ Rapid prototyping
  • ✅ Easy experimentation
  • ✅ Scalable foundation

🚀 Getting Started

# Install (when available)
pip install auto-graph

# Use
from autograph import GraphBuilder

builder = GraphBuilder(
    llm_api_key="sk-...",
    neo4j_uri="bolt://localhost:7687",
    neo4j_password="password"
)

builder.load_data("your_data.json").build_graph()

📝 Summary

Auto Graph Builder transforms any dataset into a knowledge graph with minimal code.

  • Zero configuration - LLM handles schema design
  • Smart extraction - Entities detected automatically
  • Production ready - Optimized and scalable
  • Developer friendly - Works like familiar Python libraries

Built for developers who want graphs, not graph expertise.

Metadata

Release files for autograph-llmneo4j 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autograph-llmneo4j 0.1.2
File Size Uploaded
autograph_llmneo4j-0.1.2.tar.gz 33.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autograph-llmneo4j 0.1.2
File Interpreter ABI Platform
autograph_llmneo4j-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 58.1 kB

Release files / autograph_llmneo4j-0.1.2.tar.gz

Download URL autograph_llmneo4j-0.1.2.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
93b3a854b0929697efca97d019251b5c0b9d7a4100150cbc3c3dd0ea0c2767ed
BLAKE2b-256 checksum
How to use checksums
36adc690c923d4ab1905f5e815933c3cda680d63adbc363fba635e0b8134aeca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2026.

Transparency log

Release files / autograph_llmneo4j-0.1.2-py3-none-any.whl

Download URL autograph_llmneo4j-0.1.2-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceee39f8f6b53d39fdf3fa967db4f39734628c4ed3187841daff08026c910435
BLAKE2b-256 checksum
How to use checksums
d799bde65dadd70b4bb519157ac09e2e040a0e32be07cc103037b059ba99bf59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page