ok I recall now why; I backed out the upgrade because I could not get past this error…I have -U’d everything including langchain_community OpenAi and pinecone-client now but stuck here:
pc = Pinecone(api_key=pinecone_api_key)
TypeError: Pinecone.init() got an unexpected keyword argument ‘api_key’.
When I remove it and call the plain class without an api argument I get:
Pinecone.init() missing 3 required positional arguments: ‘index’, ‘embedding’, and ‘text_key’ which does not match at all the new specs I find for creating a new Pinecone client… confirmed pinecone version running after upgrade “pip show” is:
Name: pinecone-client
Version: 3.0.1
Summary: Pinecone client and SDK
EDIT:
Narrowed this to being a conflict between the Pinecone and Langchain imports:
from langchain_community.vectorstores import Pinecone and appears to be a gap between the pinecone-client update and the langchain dev catching up. Still leaves me stuck however or else in a spot to ditch langchain… hoping someone else has upgraded Pinecone and dealt with this ?
versions are as follows:
pinecone-client 3.0.1
langchain-community 0.0.14
langchain-core 0.1.15
EDIT: Solved here but just FYI for anyone else this requires a work around for langchain - post on reddit got me past from langchain_community.vectorstores import Pinecone as pcvs and that was followed by a retrofitting of both openAi and langchain code changes to match new api calls…tooks me the better part of a day to upgrade all libraries then change openai completion messages to match new completion calls