Skip to main content
Pinecone is a vector database with broad functionality.

Installation and setup

Install the Python SDK:

Vector store

There exists a wrapper around Pinecone indexes, allowing you to use it as a vectorstore, whether for semantic search or example selection.
For a more detailed walkthrough of the Pinecone vectorstore, see this notebook

Sparse vector store

LangChain’s PineconeSparseVectorStore enables sparse retrieval using Pinecone’s sparse English model. It maps text to sparse vectors and supports adding documents and similarity search.
For a more detailed walkthrough, see the Pinecone Sparse Vector Store notebook.

Sparse embedding

LangChain’s PineconeSparseEmbeddings provides sparse embedding generation using Pinecone’s pinecone-sparse-english-v0 model.
For more detailed usage, see the Pinecone Sparse Embeddings notebook.

Retrievers

Self query retriever

Pinecone vector store can be used as a retriever for self-querying.