Cognee can use Pinecone as a vector store backend through this community-maintained adapter.
Installation
This adapter is a separate package from core Cognee. Before installing, complete the Cognee installation and ensure your environment is configured with LLM and embedding providers. After that, install the adapter package:Registration
Unlike built-in providers, community adapters must be explicitly registered at the start of your script before calling any Cognee functions. This registers Pinecone in Cognee’s list of known vector database providers:pinecone as a valid provider and will raise a runtime error even if the package is installed.
Configuration
Get your API key from the Pinecone console and configure Cognee to use it.- Python (Programmatic)
- Environment Variables
Important Notes
Community adapter required
Community adapter required
Pinecone is not bundled with the default Cognee package. You must install and register the community adapter before configuring
VECTOR_DB_PROVIDER=pinecone.Registration is required every run
Registration is required every run
The
register() call must happen before any Cognee vector operations in each process. It is not persisted — you cannot register once and skip it on subsequent runs. Add it at the top of your entry-point script or application startup code.Unsupported provider error
Unsupported provider error
If you set Complete the installation and registration steps above before configuring Pinecone.
VECTOR_DB_PROVIDER=pinecone before installing and registering the adapter, Cognee will raise this runtime error:Embedding Dimensions
Embedding Dimensions
Ensure
EMBEDDING_DIMENSIONS matches the dimensions configured in your Pinecone index. A mismatch will cause errors when upserting vectors.See Embedding Providers for configuration details.Resources
Adapter Source
GitHub repository
Pinecone Docs
Official Pinecone documentation
Vector Stores
Official vector providers
Community Overview
All community integrations
Setup Overview
Configuration guide