Configure graph databases for knowledge graph storage and relationship reasoning in Cognee
.env
→ choose providers → handle pruning.Environment Variables
.env
file:GRAPH_DATABASE_PROVIDER
— The graph store provider (kuzu, kuzu-remote, neo4j, neptune, neptune_analytics)GRAPH_DATABASE_URL
— Database URL or connection stringGRAPH_DATABASE_USERNAME
— Database username (optional)GRAPH_DATABASE_PASSWORD
— Database password (optional)GRAPH_DATABASE_NAME
— Database name (optional)Kuzu (Default)
Kuzu (Remote API)
Neo4j
Neptune (Graph-only)
Neptune Analytics (Hybrid)
Backend Access Control
Graph Store Comparison
Provider | Setup | Performance | Use Case |
---|---|---|---|
Kuzu | Zero setup | Good | Local development |
Kuzu-remote | Server required | Good | Remote access |
Neo4j | Server required | Excellent | Production |
Neptune | AWS required | Excellent | Cloud solution |
Neptune Analytics | AWS required | Excellent | Hybrid cloud solution |
Data Location
SYSTEM_ROOT_DIRECTORY
Performance Notes