Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

PineconeAttribute errors with LangChain

Resolve PineconeAttribute errors in LangChain caused by outdated packages by upgrading langchain-pinecone and the Pinecone Python SDK to current releases.

When using an outdated version of LangChain, you may encounter errors like the following:

console
Pinecone has no attribute 'from_texts'
console
Pinecone has no attribute `from_documents'

Previously, the Python classes for both LangChain and Pinecone had objects named Pinecone, but this is no longer an issue in the latest LangChain version. To resolve these errors, upgrade LangChain to >=0.0.3:

Shell
pip install --upgrade langchain-pinecone

Depending on which version of LangChain you are upgrading from, you may need to update your code. You can find more information about using LangChain with Pinecone in our documentation.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu