Installation
Install Pinecone:Setup
Set your Pinecone API key as an environment variable:Usage
Pinecone supports both sync and async operations:Configuration Options
- collection - Name of your Pinecone collection/index
- embedder - Embedder instance for generating embeddings
- dimension - Dimension of the embeddings (e.g., 1536 for text-embedding-3-small)
- metric - Distance metric for similarity search (e.g., “cosine”, “euclidean”, “dotproduct”)
- api_key - Your Pinecone API key
For more details, see the Pinecone documentation.