mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 07:26:16 +00:00
0.2 is not a breaking release for core (but it is for langchain and community) To keep the core+langchain+community packages in sync at 0.2, we will relax deps throughout the ecosystem to tolerate `langchain-core` 0.2
langchain-pinecone
This package contains the LangChain integration with Pinecone.
Installation
pip install -U langchain-pinecone
And you should configure credentials by setting the following environment variables:
PINECONE_API_KEY
PINECONE_INDEX_NAME
Usage
The PineconeVectorStore
class exposes the connection to the Pinecone vector store.
from langchain_pinecone import PineconeVectorStore
embeddings = ... # use a LangChain Embeddings class
vectorstore = PineconeVectorStore(embeddings=embeddings)