Changes made and several apps crash. Very frustrating. This was working and now I’m getting an unnecessary error. Anyone Know what changed so I can fix this? Thank you.
89 configKwarg = config or kwargs.get("config")
90 if not isinstance(configKwarg, Config):
---> 91 raise TypeError("config must be of type pinecone.config.Config")
92 else:
93 self.config = configKwarg
TypeError: config must be of type pinecone.config.Config
Hi @LarryStewart2022. This is an error in the __init__() method of the Pinecone class. Can you share the part of your code where you instantiate your Pinecone object? Be sure not to include the API key value if that’s present. I suspect there’s something incorrect in how you’re creating that object and that’s what the error is about.
File "/usr/local/lib/python3.11/site-packages/pinecone/control/pinecone.py", line 91, in __init__
raise TypeError("config must be of type pinecone.config.Config")
The simple issue with your code is that first Pinecone is constructor from pinecone library and other function is from langchain.vectorstores so just add from langchain.vectorstores import Pinecone your before the Initialize the Langchain Pinecone vector store step and this should solve it