Graph databases for AI: Neo4j vs Amazon Neptune vs ArangoDB

Graph databases for AI: Neo4j vs Amazon Neptune vs ArangoDB

Simor Consulting | 02 Jul, 2026 | 05 Mins read

Graph databases went from niche to essential as AI applications discovered that relationships matter. RAG applications that only search by vector similarity miss the connections between entities. Recommendation systems that only look at user-item interactions miss the social graph. Fraud detection that only examines individual transactions misses the network patterns. Graph databases model these relationships natively, and the three serious options — Neo4j, Amazon Neptune, and ArangoDB — each approach the problem differently.

The choice between them is shaped by two questions: how important is the query language, and how tightly are you coupled to a cloud provider?

Why Graph Matters for AI

The standard vector-database approach to RAG retrieves documents by embedding similarity. This works for factual questions (“what is the capital of France?”) but fails for relational questions (“which suppliers share components with the company that had the recall?”). The answer to the relational question requires traversing connections between entities, which is exactly what graph databases do.

Graph-augmented RAG — retrieving context by traversing the knowledge graph in addition to vector search — produces more complete answers for complex questions. The graph provides the structural context that vector search cannot capture. Several teams report 20-40% improvement in answer quality for relational questions when adding graph retrieval to their RAG pipeline.

Graph databases also power AI applications beyond RAG. Recommendation engines use graph traversals to find similar users and items. Fraud detection systems use graph algorithms (community detection, centrality, path analysis) to identify suspicious patterns. Identity resolution uses graph matching to link records across data sources.

Neo4j: The Incumbent

Neo4j is the most widely adopted graph database. It created the Cypher query language, which has become the de facto standard for graph querying (the openCypher project allows other databases to implement it). The ecosystem is the largest, the documentation is the most comprehensive, and the community is the most active.

Cypher is Neo4j’s primary differentiator. The language is designed for graph patterns: “find all users who purchased products from suppliers connected to the flagged vendor” translates to a readable Cypher query. The pattern-matching syntax is intuitive once you learn it, and the learning curve is shorter than writing equivalent traversals in other query languages.

Neo4j’s integration with AI workflows is the strongest of the three. The GraphRAG library (built in collaboration with LangChain and LlamaIndex) provides patterns for building knowledge graphs from documents, storing them in Neo4j, and using them in RAG pipelines. The vector search capability (added in Neo4j 5.11) allows combining graph traversal with vector similarity in a single query — retrieve by embedding similarity, then traverse the graph for additional context.

Neo4j’s Graph Data Science library provides production-grade graph algorithms: PageRank, community detection, shortest path, node similarity, and link prediction. These algorithms are optimized for the Neo4j storage engine and run efficiently on large graphs. For teams that need graph analytics alongside graph querying, the GDS library is a significant advantage.

The operational model depends on the deployment. Neo4j Aura (managed cloud) eliminates operational burden but ties you to Neo4j’s pricing. Self-hosted Neo4j Community Edition is free but lacks clustering. Neo4j Enterprise Edition provides clustering, security, and backup features but requires a commercial license.

The cost of Neo4j at scale is the most common concern. Neo4j’s pricing model (per-node for self-hosted, per-GB for Aura) means costs grow with data volume. For large knowledge graphs (billions of nodes and relationships), the cost can be substantial.

Amazon Neptune: AWS Integration

Neptune is AWS’s managed graph database. It supports two query languages: Gremlin (Apache TinkerPop) for property graph traversals and SPARQL for RDF (Resource Description Framework) queries. This dual-language support is unique and makes Neptune suitable for both property graph and knowledge graph workloads.

Neptune’s primary advantage is the AWS integration. IAM-based access control, VPC networking, CloudWatch monitoring, automated backups, and multi-AZ replication are all available without additional configuration. For organizations on AWS, Neptune fits into the existing operational model without new infrastructure patterns.

Neptune’s serverless option (Neptune Serverless) automatically scales compute capacity based on workload. For variable workloads — graph queries that spike during business hours and drop overnight — serverless scaling reduces cost compared to provisioned instances.

The limitation is the query language. Gremlin is powerful but less intuitive than Cypher for most developers. The traversal-based syntax (.outV().hasLabel('Person').inE('PURCHASED').outV()) requires more mental overhead than Cypher’s pattern-matching syntax (MATCH (p:Person)-[:PURCHASED]->(product)). Neptune supports openCypher as a compatibility layer, but the implementation is less mature than Neo4j’s native Cypher.

Neptune’s AI integration is growing but less developed than Neo4j’s. Neptune ML (graph neural networks for link prediction and node classification) exists but is not as widely adopted or as well-documented as Neo4j’s Graph Data Science library. The vector search capability was added later than Neo4j’s, and the integration with RAG frameworks is thinner.

Neptune’s lock-in is the deepest of the three. Neptune is AWS-only — you cannot run it on GCP, Azure, or on-premises. If your cloud strategy changes, migrating from Neptune requires re-implementing queries in a different query language and re-architecting the application.

ArangoDB: Multi-Model Flexibility

ArangoDB is a multi-model database that supports graphs, documents, and key-value storage in a single engine. The query language, AQL (ArangoDB Query Language), handles all three models: graph traversals, document queries, and key-value lookups in a single language.

The multi-model approach is ArangoDB’s core differentiator. Instead of running a graph database for relationships, a document database for entities, and a key-value store for caching, you run ArangoDB for all three. The simplification is real — fewer services to operate, fewer data synchronization issues, and a single query language for mixed workloads.

ArangoDB’s Foxx microservice framework allows building application logic directly inside the database. For graph-heavy applications where the business logic is primarily traversal-based, running the logic inside ArQL reduces network hops and simplifies the architecture.

The limitation is that multi-model means compromise. ArangoDB’s graph capabilities are not as deep as Neo4j’s — fewer graph algorithms, less mature clustering, and a smaller community of graph practitioners. ArangoDB’s document capabilities are not as deep as MongoDB’s. The strength is versatility, not depth in any single model.

ArangoDB’s AI integration is the thinnest of the three. Vector search was added in ArangoDB 3.11, and the RAG integration patterns are emerging but not as established as Neo4j’s. For teams that need graph-augmented RAG with production-quality tooling, ArangoDB requires more custom work.

ArangoDB’s deployment flexibility is the widest: self-hosted (single server or cluster), ArangoDB Oasis (managed cloud on AWS, GCP, or Azure), or Kubernetes operator. The multi-cloud support is a genuine advantage over Neptune’s AWS lock-in.

Query Language Comparison

This diagram requires JavaScript.

Enable JavaScript in your browser to use this feature.

Decision Framework

Use Neo4j when graph querying and AI integration are primary requirements. Best for teams building knowledge graphs for RAG, running graph algorithms for analytics, or developing applications where the Cypher query language accelerates development. Accept the higher cost at scale as the price of the most mature graph ecosystem.

Use Neptune when you are on AWS and need a managed graph database that integrates with your existing infrastructure. Best for teams that prioritize operational simplicity within AWS over query language elegance. Consider carefully whether the AWS lock-in is acceptable for your long-term strategy.

Use ArangoDB when you need graph capabilities alongside document storage and want a single database for both. Best for teams that have mixed workloads (graph traversals plus document queries) and want to reduce infrastructure components. Accept that the graph-specific capabilities are shallower than Neo4j’s.

For most AI applications that need graph capabilities in 2026, Neo4j provides the strongest foundation. The Cypher ecosystem, the GraphRAG integration, and the Graph Data Science library together create the most complete platform for graph-enhanced AI. Neptune and ArangoDB earn their place when AWS coupling or multi-model flexibility are the dominant constraints.

Shipping a production AI system?

Find the control gaps before they turn into incidents. Take the AI Production Scorecard for a fast baseline across the seven layers, or book an architecture review and we will turn it into a hardening plan.

Similar Articles

Building AI-Ready Data Pipelines: Key Architecture Considerations
Building AI-Ready Data Pipelines: Key Architecture Considerations
04 Mar, 2025 | 02 Mins read

Data pipelines built for business intelligence often fail when supporting AI workloads. The root cause is usually architectural: BI pipelines assume bounded, relatively static datasets, while AI syste

The Modern Data Stack for AI Readiness: Architecture and Implementation
The Modern Data Stack for AI Readiness: Architecture and Implementation
28 Jan, 2025 | 03 Mins read

Existing data infrastructure often cannot support ML workflows. The modern data stack offers a foundation, but it requires adaptation to become AI-ready. This article covers building a data architectu

Building an Eval Harness That Ships With Every Release
Building an Eval Harness That Ships With Every Release
18 Jun, 2026 | 10 Mins read

A fintech company shipped a prompt update to their underwriting assistant on a Friday afternoon. The update improved response quality on three of four test cases. On Monday, the risk team reported tha

Model Gateway Patterns: When to Route, When to Fail Over
Model Gateway Patterns: When to Route, When to Fail Over
20 Jun, 2026 | 11 Mins read

The first time your model provider has an outage at 2 AM and your entire application goes dark, you learn something important about architectural dependencies. The second time it happens, you start bu

Tool Governance for MCP: Scoping Permissions Before They Drift
Tool Governance for MCP: Scoping Permissions Before They Drift
21 Jun, 2026 | 10 Mins read

When an AI agent can call external tools, the security boundary shifts from the model to the tool layer. The model generates a request to call a tool. The tool executes against real systems — reading

AI Observability Beyond Logging: Trace Replay, Incident Forensics, and Cost Attribution
AI Observability Beyond Logging: Trace Replay, Incident Forensics, and Cost Attribution
22 Jun, 2026 | 11 Mins read

Traditional application observability focuses on three signals: request latency, error rates, and resource utilization. If the request returns a 200 in under two hundred milliseconds, the system is he

MCP in Production: Registry, Auth, and Permission Models
MCP in Production: Registry, Auth, and Permission Models
23 Jun, 2026 | 11 Mins read

The Model Context Protocol gives AI agents a standardized way to discover and invoke external tools. In development, MCP works well with a local server running on localhost and a handful of tools. The

Multi-Agent Failure Modes: What Breaks When Agents Call Agents
Multi-Agent Failure Modes: What Breaks When Agents Call Agents
24 Jun, 2026 | 10 Mins read

Single-agent systems have predictable failure modes. The agent calls a tool, the tool fails, the agent receives an error and decides what to do next. The failure is contained to the single agent's con

Agent Guardrails: Containing What an Agent Can Do in Production
Agent Guardrails: Containing What an Agent Can Do in Production
25 Jun, 2026 | 09 Mins read

Input guardrails check whether a user prompt is safe. Output guardrails check whether a model response is appropriate. Agent guardrails check whether the actions an agent takes are within bounds. Thes

From Single-User to Multi-User: The Ten Controls You Need Before You Scale
From Single-User to Multi-User: The Ten Controls You Need Before You Scale
26 Jun, 2026 | 11 Mins read

An AI application built for a single user has no tenancy concerns. The user is the user. There is no data isolation problem because there is only one data set. There is no cost attribution problem bec

AI Rollback Patterns: When to Roll Back a Prompt, a Model, or the Whole Release
AI Rollback Patterns: When to Roll Back a Prompt, a Model, or the Whole Release
27 Jun, 2026 | 11 Mins read

Software rollbacks are well-understood. You deploy a new version, detect an issue, and roll back to the previous version. The rollback is atomic: the entire application reverts to the previous state.

A2A and MCP: How Agent-to-Agent Protocol Fits the Control Layer Model
A2A and MCP: How Agent-to-Agent Protocol Fits the Control Layer Model
28 Jun, 2026 | 09 Mins read

Google announced the Agent-to-Agent protocol, A2A, as a standard for how AI agents communicate with each other. This sits alongside the Model Context Protocol, MCP, which standardizes how agents acces

OpenAI vs Anthropic vs Google: Model Provider Failover Strategies
OpenAI vs Anthropic vs Google: Model Provider Failover Strategies
29 Jun, 2026 | 10 Mins read

Every major model provider has had outages. OpenAI has gone down during peak hours. Anthropic has experienced degraded performance. Google Gemini has had API issues. If your application depends on a s

AI Middleware: The Missing Abstraction Between Your App and the Model
AI Middleware: The Missing Abstraction Between Your App and the Model
30 Jun, 2026 | 09 Mins read

When web applications needed to talk to databases, the industry created ORMs and connection pools. When microservices needed to talk to each other, the industry created API gateways and service meshes

Prompt Versioning in Git: Prompts as Code, Not Configuration
Prompt Versioning in Git: Prompts as Code, Not Configuration
01 Jul, 2026 | 10 Mins read

Prompts are the most frequently changed component of an AI application. They are updated to fix edge cases, improve output quality, accommodate new use cases, and adapt to model behavior changes. Desp

How a retailer reduced inference latency 90% with feature store caching
How a retailer reduced inference latency 90% with feature store caching
21 Apr, 2026 | 04 Mins read

A mid-market e-commerce retailer with roughly $200M in annual revenue had invested eighteen months building a product recommendation engine. The models were accurate. Offline evaluation showed meaning

dbt vs SQLMesh: which transformation tool wins in 2026?
dbt vs SQLMesh: which transformation tool wins in 2026?
23 Apr, 2026 | 06 Mins read

Every analytics team eventually faces the same choice: how do you transform raw data into something analysts can actually use? For years, dbt was the only serious answer. SQLMesh arrived with a differ

The 7-step vector database selection checklist
The 7-step vector database selection checklist
26 Apr, 2026 | 06 Mins read

Most vector database selection failures come down to one mistake: picking the technology before mapping the workload. Teams benchmark embedding search speed on a curated dataset, pick the fastest opti

The open-source LLM landscape just shifted — again
The open-source LLM landscape just shifted — again
02 May, 2026 | 03 Mins read

Three releases in the last six weeks have redrawn the open-source LLM map. Meta shipped Llama 4 with a mixture-of-experts architecture that narrows the gap with proprietary frontier models. Mistral re

Build vs buy: a decision tree for AI infrastructure
Build vs buy: a decision tree for AI infrastructure
03 May, 2026 | 06 Mins read

Every AI infrastructure team eventually faces the same argument. One faction wants to build a custom solution because the commercial options do not handle their specific requirements. The other factio

Vector database showdown: Pinecone, Weaviate, Qdrant, Milvus
Vector database showdown: Pinecone, Weaviate, Qdrant, Milvus
06 May, 2026 | 05 Mins read

Every team building retrieval-augmented generation or semantic search eventually needs a vector database. The market has consolidated around four serious options: Pinecone, Weaviate, Qdrant, and Milvu

Orchestration face-off: Airflow vs Prefect vs Dagster
Orchestration face-off: Airflow vs Prefect vs Dagster
07 May, 2026 | 06 Mins read

The orchestration market has a clear incumbent and two serious challengers. Apache Airflow has been the default choice since 2015. Prefect and Dagster both emerged to address Airflow's pain points, bu

Why every cloud provider launched an AI operating system this year
Why every cloud provider launched an AI operating system this year
09 May, 2026 | 03 Mins read

AWS announced Bedrock Studio. Google shipped Vertex AI Platform as a unified surface. Azure consolidated its AI offerings under a single "AI Foundry" brand. Databricks, Snowflake, and even Cloudflare

The vector database that couldn't scale — and what we did instead
The vector database that couldn't scale — and what we did instead
12 May, 2026 | 05 Mins read

A media company with a library of twelve million articles, transcripts, and research documents had built a semantic search system on a managed vector database. The system was designed to let journalis

LLM evaluation platforms compared: LangSmith, Braintrust, Patronus
LLM evaluation platforms compared: LangSmith, Braintrust, Patronus
14 May, 2026 | 06 Mins read

Building an LLM application is the easy part. Knowing whether it works — whether it still works after you change a prompt, swap a model, or add a tool — is the hard part. LLM evaluation platforms exis

The A2A protocol and what it means for enterprise AI
The A2A protocol and what it means for enterprise AI
16 May, 2026 | 03 Mins read

Google published the Agent-to-Agent (A2A) protocol specification in late 2025 and, as of this quarter, has secured endorsement from over fifty technology companies including Salesforce, SAP, ServiceNo

Building an AI operating system for a 10,000-person company
Building an AI operating system for a 10,000-person company
19 May, 2026 | 05 Mins read

A diversified industrial company with 10,000 employees across manufacturing, logistics, and field services had accumulated forty-seven separate AI projects over three years. Each business unit had bui

Feature store comparison: Feast, Tecton, Hopsworks
Feature store comparison: Feast, Tecton, Hopsworks
20 May, 2026 | 05 Mins read

Feature stores solve a specific problem: the features you use to train a model must be the same features you use to serve it. When the training pipeline computes features differently than the serving

Real-time streaming: Kafka vs Redpanda vs Pulsar
Real-time streaming: Kafka vs Redpanda vs Pulsar
21 May, 2026 | 05 Mins read

Kafka has dominated event streaming for a decade. It processes trillions of messages daily across thousands of companies. Its dominance created an ecosystem so large that "streaming" became synonymous

A cost optimization framework for LLM inference
A cost optimization framework for LLM inference
24 May, 2026 | 06 Mins read

LLM inference costs follow a pattern that catches teams off guard. The first prototype costs almost nothing -- a few hundred dollars a month during development. The pilot scales to a few thousand. Pro

AI spending is up 300% — where is it actually going?
AI spending is up 300% — where is it actually going?
27 May, 2026 | 03 Mins read

Enterprise AI spending increased roughly 300% year-over-year according to multiple industry surveys released this quarter. The headline number gets attention, but the breakdown is where the actionable

The observability stack: Datadog vs Grafana vs Monte Carlo
The observability stack: Datadog vs Grafana vs Monte Carlo
28 May, 2026 | 07 Mins read

Observability is not one problem — it is three. Infrastructure observability watches your servers, containers, and network. Application observability watches your code, APIs, and user-facing behavior.

RAG frameworks head-to-head: LlamaIndex vs Haystack vs Semantic Kernel
RAG frameworks head-to-head: LlamaIndex vs Haystack vs Semantic Kernel
04 Jun, 2026 | 05 Mins read

Retrieval-augmented generation is simple in theory: retrieve relevant documents, stuff them into a prompt, get a grounded answer. In practice, the retrieval step is where most RAG applications fail. T

Data cataloging tools: Atlan, Alation, DataHub, Amundsen
Data cataloging tools: Atlan, Alation, DataHub, Amundsen
11 Jun, 2026 | 05 Mins read

A data catalog solves a trust problem. When an analyst cannot find the right table, does not know what a column means, or cannot tell whether data is fresh, they either guess or ask someone. Both outc

Model serving: vLLM, TGI, Triton — which fits your stack?
Model serving: vLLM, TGI, Triton — which fits your stack?
18 Jun, 2026 | 05 Mins read

Serving a language model in production is an infrastructure problem, not a model problem. The model weights are the same regardless of how you serve them. What differs is throughput (how many requests

Designing guardrails: a practical architecture guide
Designing guardrails: a practical architecture guide
21 Jun, 2026 | 06 Mins read

The guardrail problem in AI is a tension between two failure modes. Too few guardrails and the system produces harmful, inaccurate, or brand-damaging outputs. Too many guardrails and the system refuse

When your AI vendor goes bankrupt — surviving platform lock-in
When your AI vendor goes bankrupt — surviving platform lock-in
23 Jun, 2026 | 05 Mins read

A healthcare analytics company received notice on a Tuesday afternoon that their primary AI infrastructure vendor was filing for Chapter 7 bankruptcy. The platform hosted their patient risk stratifica

CI/CD for ML: MLflow vs Weights & Biases vs Neptune
CI/CD for ML: MLflow vs Weights & Biases vs Neptune
25 Jun, 2026 | 05 Mins read

Machine learning teams face a version control problem that Git does not solve. Git tracks code changes, but ML experiments change more than code — they change hyperparameters, datasets, model architec

Real-time fraud detection: from proof-of-concept to production in 90 days
Real-time fraud detection: from proof-of-concept to production in 90 days
30 Jun, 2026 | 05 Mins read

A payment processor handling twelve million transactions per day had a fraud detection system that was accurate but slow. The system reviewed transactions in batch, four times per day. A fraudulent tr

The hidden environmental cost of your RAG pipeline
The hidden environmental cost of your RAG pipeline
04 Jul, 2026 | 03 Mins read

Retrieval-augmented generation is the default architecture for enterprise AI applications that need to ground model outputs in organizational data. The standard RAG pipeline ingests documents, chunks

Synthetic data tools: Gretel, Mostly AI, Tonic
Synthetic data tools: Gretel, Mostly AI, Tonic
09 Jul, 2026 | 05 Mins read

Real data is expensive, restricted, and often unusable. Privacy regulations block access to customer records. Data sharing agreements prevent using production data in development environments. Class i

LLM gateway comparison: LiteLLM, Portkey, Martian
LLM gateway comparison: LiteLLM, Portkey, Martian
29 Jun, 2026 | 07 Mins read

A production AI application calls multiple LLM providers. The primary model is GPT-4o for complex reasoning, but simple classification tasks use Claude Haiku for cost savings, and the fallback for rat

The Rise of GPU Databases for AI Workloads
The Rise of GPU Databases for AI Workloads
22 Jan, 2024 | 03 Mins read

Traditional relational database management systems were designed for an era of megabyte-scale datasets and batch reporting. AI workloads demand processing terabyte-scale datasets with complex analytic

Vector Databases: The Missing Piece in Your AI Infrastructure
Vector Databases: The Missing Piece in Your AI Infrastructure
12 Jan, 2024 | 02 Mins read

Vector databases index and query high-dimensional vector embeddings. Unlike traditional databases that excel at exact matches, vector databases enable similarity search: finding items conceptually clo

Automated Data Quality Gates with Great Expectations & Soda
Automated Data Quality Gates with Great Expectations & Soda
28 Apr, 2025 | 07 Mins read

Organizations often treat data quality as secondary—something to address after building pipelines and training models. This perspective misunderstands modern data systems. In a world where ML models m

AI Agent Orchestration Patterns: From Chaining to Multi-Agent Systems
AI Agent Orchestration Patterns: From Chaining to Multi-Agent Systems
27 Jan, 2026 | 13 Mins read

A software debugging agent receives a bug report. It needs to search code, understand the error, propose a fix, write tests, and summarize for the developer. None of these steps are independent. Each

AI Infrastructure for Legacy Systems: Modernizing 20-Year-Old ERPs with AI
AI Infrastructure for Legacy Systems: Modernizing 20-Year-Old ERPs with AI
18 Feb, 2026 | 13 Mins read

A manufacturing company runs their operations on an ERP system installed in 2004. The vendor still supports it. The team knows how to maintain it. The integrations are stable. It works. The problem i

Designing the Enterprise Knowledge Layer: Beyond RAG
Designing the Enterprise Knowledge Layer: Beyond RAG
16 Jan, 2026 | 14 Mins read

Most teams implement retrieval-augmented generation and call it a knowledge layer. Give the model access to a vector database, stuff in some documents, and ship. This approach works for demos. It fall

Feature Stores for AI: The Missing MLOps Component Reaching Maturity
Feature Stores for AI: The Missing MLOps Component Reaching Maturity
12 Mar, 2026 | 11 Mins read

A recommendation system team built their tenth model. Each model required feature engineering. Each feature engineering project started by copying code from the previous project, then modifying it for

Tool Calling and Function Calling: Connecting AI to Enterprise Systems
Tool Calling and Function Calling: Connecting AI to Enterprise Systems
28 Mar, 2026 | 14 Mins read

A language model that only generates text is not enough for most enterprise problems. The real value emerges when an AI system can look up your customer record, check inventory levels across warehouse

The AI Data Pipeline: Special Considerations for Unstructured and Structured Data
The AI Data Pipeline: Special Considerations for Unstructured and Structured Data
11 May, 2026 | 13 Mins read

Data pipelines for AI are not the same as data pipelines for traditional software systems. The outputs are different. The failure modes are different. The tolerance for data quality issues is differen

AI Observability: Monitoring Hallucinations, Latency, and Cost at Scale
AI Observability: Monitoring Hallucinations, Latency, and Cost at Scale
30 Apr, 2026 | 09 Mins read

Traditional software monitoring tracks CPU utilization, memory consumption, request rates, and error counts. These metrics tell you whether your service is running and whether it is handling load. The

Semantic Caching for AI: Reducing Latency and Cost with Meaning-Based Retrieval
Semantic Caching for AI: Reducing Latency and Cost with Meaning-Based Retrieval
19 May, 2026 | 07 Mins read

Every repeated question your AI system answers is money spent and latency incurred that you did not need to. If a thousand users ask the same question in a week, running it through the language model

Evaluating LLM Providers for Enterprise: A Framework Beyond Benchmark
Evaluating LLM Providers for Enterprise: A Framework Beyond Benchmark
08 Apr, 2026 | 10 Mins read

Benchmark scores tell you how a model performs on problems that someone else chose. Your enterprise systems present different problems: your proprietary terminology, your specific data distributions,