A few months ago, I made a working prototype of a RAG Agent using LangChain and Pinecone. It’s now been a few months and I’m returning to build it out more, but the Pinecone SDK changed and my prototype is broken.
I’m pretty sure the langchain_community packages was obsolete so I updated langchain and pinecone like the documentation instructs, and I also got rid of pinecone-client.
I am also importing it according to the new documentation, as follows:
from pinecone import Pinecone, ServerlessSpec, CloudProvider, AwsRegion
from langchain_pinecone import PineconeVectorStore
index = pc.Index(my-index-name)
YET, I’m still currently getting this error message:
Exception: The official Pinecone python package has been renamed from \
pinecone-clientto
pinecone. Please remove
pinecone-clientfrom your project dependencies and add
pineconeinstead. See the README at
https://github.com/pinecone-io/pinecone-python-client
for more information on using the python SDK
pip list | grep pinecone
shows that pinecone-client is gone and that i’m using these versions of pinecone/langchain:
langchain-pinecone 0.2.8
pinecone 7.0.2
pinecone-plugin-assistant 1.6.1
pinecone-plugin-interface 0.0.7
Am I missing something?
I’ve followed the documentation for updating and I’ve looked through the Pinecone Search feature, I’ve read the github README, I’ve gone through Langchain forums, and I’ve used ChatGPT. There doesn’t seem to be any clear directions.
Why does it raise this exception and say that I’m still using pinecone-client when I’m clearly not. I’ve removed Pinecone-client explicitly and i’ve uninstalled and reinstalled pinecone several times and I’m following the new import names.I’ve cleared cache as well.
Any help would be appreciated, thank you.