Configure vector databases for embedding storage and semantic search in Cognee
.env
→ choose providers → handle pruning.Environment Variables
.env
file:VECTOR_DB_PROVIDER
— The vector store provider (lancedb, pgvector, chromadb, falkordb, neptune_analytics)VECTOR_DB_URL
— Database URL or connection stringVECTOR_DB_KEY
— Authentication key (provider-specific)VECTOR_DB_PORT
— Database port (for some providers)LanceDB (Default)
VECTOR_DB_URL
is empty.PGVector
CREATE EXTENSION IF NOT EXISTS vector;
is available in the target database.ChromaDB
FalkorDB
Neptune Analytics
neptune-graph://
and AWS credentials should be configured via environment variables or AWS SDK.Dimension Consistency
EMBEDDING_DIMENSIONS
matches your vector store collection/table schemas:Provider Comparison
Provider | Setup | Performance | Use Case |
---|---|---|---|
LanceDB | Zero setup | Good | Local development |
PGVector | Postgres required | Excellent | Production with Postgres |
ChromaDB | Server required | Good | Dedicated vector store |
FalkorDB | Server required | Good | Hybrid graph + vector |
Neptune Analytics | AWS required | Excellent | Cloud hybrid solution |
EMBEDDING_DIMENSIONS
consistent between embedding provider and vector store