Skip to main content

Pinecone

Pinecone is a vector database with broad functionality.

Installation and Setupโ€‹

Install the Python SDK:

pip install langchain-pinecone

Vector storeโ€‹

There exists a wrapper around Pinecone indexes, allowing you to use it as a vectorstore, whether for semantic search or example selection.

from langchain_pinecone import PineconeVectorStore
API Reference:PineconeVectorStore

For a more detailed walkthrough of the Pinecone vectorstore, see this notebook

Retrieversโ€‹

pip install pinecone-client pinecone-text
from langchain_community.retrievers import (
PineconeHybridSearchRetriever,
)

For more detailed information, see this notebook.

Self Query retrieverโ€‹

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

For more detailed information, see this notebook.


Was this page helpful?