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
Pinecone Hybrid Search
pip install pinecone pinecone-text
from langchain_community.retrievers import (
PineconeHybridSearchRetriever,
)
API Reference: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.