You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/pinecone
Harry Jiang 1ee208541c
langchain: fix pinecone upsert when async_req is set to False (#19793)
Issue: 
When async_req is the default value True, pinecone client return the
multiprocessing AsyncResult object.
When async_req is set to False, pinecone client return the result
directly. `[{'upserted_count': 1}]` . Calling get() method will throw an
error in this case.
6 months ago
..
langchain_pinecone langchain: fix pinecone upsert when async_req is set to False (#19793) 6 months ago
scripts infra: add print rule to ruff (#16221) 8 months ago
tests pinecone[patch]: integration test debug (#17960) 7 months ago
.gitignore pinecone: init pkg (#16556) 8 months ago
LICENSE pinecone: init pkg (#16556) 8 months ago
Makefile pinecone[patch], docs: PineconeVectorStore, release 0.0.3 (#17896) 7 months ago
README.md docs: update pinecone README to use PineconeVectorStore (#18170) 7 months ago
poetry.lock pinecone[patch]: source tag (#19739) 6 months ago
pyproject.toml pinecone[patch]: release 0.1.0 (#20109) 6 months ago

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)