langchain-pinecone
An integration package connecting Pinecone and LangChain
What it is and what it does
langchain-pinecone is a bridge between LangChain's vector store abstraction and Pinecone's managed vector database service. It wraps Pinecone's Python SDK to provide a standardized interface for storing embeddings, managing documents, and performing semantic similarity searches within LangChain workflows.
The package handles the mechanics of connecting to Pinecone indexes, adding and deleting documents with metadata, executing similarity searches with optional filtering, and converting vector stores into retrievers for use in LangChain chains and agents. It depends on langchain-core for document types, pinecone for the underlying vector database client, and optionally langchain-openai for embedding generation. The integration supports both synchronous and asynchronous operations, and can dynamically list supported embedding and reranking models available in Pinecone.
Use it for:
- Build retrieval-augmented generation (RAG) pipelines where documents are stored in Pinecone and retrieved by semantic similarity to answer user queries
- Implement semantic search over a corpus of documents by embedding them and querying with natural language
- Create LangChain agents that retrieve relevant context from a Pinecone index before generating responses
- Store and manage document embeddings with metadata filtering for multi-tenant or categorized knowledge bases
- Convert a vector store into a retriever for use in LangChain chains with configurable similarity thresholds
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Connects LangChain applications to Pinecone vector databases for semantic search, document storage, and retrieval-augmented generation workflows.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is widely used (top 5000 downloads). Install it if you are building a LangChain application that needs persistent semantic search over documents via Pinecone. Skip it if you are not using LangChain or prefer direct Pinecone SDK calls without the abstraction layer.
Install
langchain-pinecone on PyPI
pip
pip install langchain-pineconeuv
uv add langchain-pineconepoetry
poetry add langchain-pineconeInstalling langchain-pinecone
Before you install
Low friction install with a pure-Python wheel. The package is actively maintained with a recent commit history and sits in the top 5000 PyPI packages by download volume, suggesting stable ongoing support.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial contexts with minimal obligations.
Quickstart
pip install langchain-pinecone
from langchain_pinecone import PineconeVectorStore
from langchain_openai import OpenAIEmbeddings
from pinecone import ServerlessSpec
embeddings = OpenAIEmbeddings(model="text-embedding-3-small")
vector_store = PineconeVectorStore(index=index, embedding=embeddings)
vector_store.add_documents(documents=docs, ids=ids)
results = vector_store.similarity_search("query text", k=2)
Requires PINECONE_API_KEY environment variable set; OPENAI_API_KEY needed for OpenAI embeddings. Python 3.9 or later.
Verify before relying
- Whether the package supports sparse vector embeddings or only dense vectors by default
- Performance characteristics when working with large-scale indexes (millions of documents)
- Latency overhead introduced by the LangChain abstraction layer versus direct Pinecone SDK calls
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.14,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — langchain-core, pinecone, numpy, langchain-openai, httpx, simsimd, pydantic |
| Maintenance | actively maintained — 285 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,037,408/month — #4,460 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: langchain_pinecone-0.2.13-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
llama-index-vector-stores-pineconeIntegrates Pinecone vector database with…
permissive · top 15,000 on PyPI
pinecone-textProvides sparse and dense text encoders for…
unclear · top 15,000 on PyPI
pinecone-plugin-inferenceProvides embedding generation through…
permissive · top 15,000 on PyPI
langchain-mongodbConnects MongoDB Atlas Vector Search to…
unclear · top 5,000 on PyPI
pineconePinecone Python SDK provides a client for…
permissive · top 5,000 on PyPI
langchain-postgresProvides LangChain abstractions for vector…
permissive · top 5,000 on PyPI
langchain-milvusIntegrates LangChain with Milvus vector…
permissive · top 15,000 on PyPI
langchain-elasticsearchIntegrates Elasticsearch with LangChain to…
permissive · top 15,000 on PyPI
pinecone-plugin-assistantProvides Python bindings to Pinecone's…
permissive · top 5,000 on PyPI
langchain-qdrantConnects LangChain applications to Qdrant…
permissive · top 5,000 on PyPI