langchain/libs/partners/pinecone
2024-05-15 19:31:43 -07:00
..
langchain_pinecone (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
scripts
tests
.gitignore
LICENSE
Makefile
poetry.lock pinecone: bump min core version (#21742) 2024-05-15 19:31:43 -07:00
pyproject.toml pinecone: bump min core version (#21742) 2024-05-15 19:31:43 -07:00
README.md

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)