New to configuration?See the Setup Configuration Overview for the complete workflow:install extras → create
.env → choose providers → handle pruning.Supported Providers
Cognee supports multiple vector store options:- LanceDB — File-based vector store, works out of the box (default)
- PGVector — Postgres-backed vector storage with pgvector extension
- Qdrant — High-performance vector database and similarity search engine
- Redis — Fast vector similarity search via Redis Search module
- ChromaDB — HTTP server-based vector database
- FalkorDB — Hybrid graph + vector database
- Neptune Analytics — Amazon Neptune Analytics hybrid solution
Configuration
Environment Variables
Environment Variables
Set these environment variables in your
.env file:VECTOR_DB_PROVIDER— The vector store provider (lancedb, pgvector, qdrant, redis, 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)
Setup Guides
LanceDB (Default)
LanceDB (Default)
LanceDB is file-based and requires no additional setup. It’s perfect for local development and single-user scenarios.Installation: LanceDB is included by default with Cognee. No additional installation required.Data Location: Vectors are stored in a local directory. Defaults under the Cognee system path if
VECTOR_DB_URL is empty.PGVector
PGVector
PGVector stores vectors inside your Postgres database using the pgvector extension.Installation: Install the Postgres extras:Docker Setup: Use the built-in Postgres with pgvector:Note: If using your own Postgres, ensure
CREATE EXTENSION IF NOT EXISTS vector; is available in the target database.Qdrant
Qdrant
Qdrant requires a running instance of the Qdrant server.Installation: Since Qdrant is a community adapter, you have to install the community package:Configuration: To make sure Cognee uses Qdrant, you have to register it beforehand with the following line:For more details on setting up Qdrant, visit the more detailed description of this adapter.Docker Setup: Start the Qdrant service:Access: Default port is 6333 for the database, and you can access the Qdrant dashboard at “localhost:6333/dashboard”.
Redis
Redis
Redis can be used as a vector store through the Redis Search module, providing fast vector similarity search capabilities.Installation: Since Redis is a community adapter, you have to install the community package:Configuration: To make sure Cognee uses Redis, you have to register it beforehand with the following line:You can also configure Redis programmatically:For more details on setting up Redis, visit the more detailed description of this adapter.Docker Setup: Start a Redis instance with Search module enabled:Or use Redis Cloud with the Search module enabled: Redis CloudConnection URL Examples:
- Local:
redis://localhost:6379 - With authentication:
redis://user:password@localhost:6379 - With SSL:
rediss://localhost:6380
ChromaDB
ChromaDB
ChromaDB requires a running Chroma server and authentication token.Installation: Install ChromaDB extras:Docker Setup: Start the bundled ChromaDB server:
FalkorDB
FalkorDB
FalkorDB can serve as both graph and vector store, providing a hybrid solution.Installation: Since FalkorDB is a community adapter, you have to install the community package:Configuration: To make sure Cognee uses FalkorDB, you have to register it beforehand with the following line:For more details on setting up FalkorDB, visit the more detailed description of this adapter.Docker Setup: Start the FalkorDB service:Access: Default ports are 6379 (DB) and 3000 (UI).
Neptune Analytics
Neptune Analytics
Use Amazon Neptune Analytics as a hybrid vector + graph backend.Installation: Install Neptune extras:Note: URL must start with
neptune-graph:// and AWS credentials should be configured via environment variables or AWS SDK.Important Considerations
Dimension Consistency
Dimension Consistency
Ensure
EMBEDDING_DIMENSIONS matches your vector store collection/table schemas:- PGVector column size
- LanceDB Vector size
- ChromaDB collection schema
Provider Comparison
Provider Comparison
| Provider | Setup | Performance | Use Case |
|---|---|---|---|
| LanceDB | Zero setup | Good | Local development |
| PGVector | Postgres required | Excellent | Production with Postgres |
| Qdrant | Server required | Excellent | High-performance vector search |
| Redis | Server required | Excellent | Low-latency in-memory search |
| ChromaDB | Server required | Good | Dedicated vector store |
| FalkorDB | Server required | Good | Hybrid graph + vector |
| Neptune Analytics | AWS required | Excellent | Cloud hybrid solution |
Community-Maintained Providers
Additional vector stores are available through community-maintained adapters:- Qdrant — Vector search engine with cloud and self-hosted options
- Redis — Fast vector similarity search
- FalkorDB — Hybrid vector and graph store
- Milvus, Pinecone, Weaviate, and more — See all community adapters
Notes
- Embedding Integration: Vector stores use your embedding engine from the Embeddings section
- Dimension Matching: Keep
EMBEDDING_DIMENSIONSconsistent between embedding provider and vector store - Performance: Local providers (LanceDB) are simpler but cloud providers offer better scalability
Embedding Providers
Configure embedding providers for vector generation
Graph Stores
Set up graph databases for knowledge graphs
Overview
Return to setup configuration overview