ERROR:
ValueError Traceback (most recent call last) in <cell line: 0>() 28 29 ---> 30 docsearch = PineconeLangchain.from_existing_index(index_name, embeddings) 31 32
2 frames /usr/local/lib/python3.11/dist-packages/langchain_community/vectorstores/pinecone.py in init(self, index, embedding, text_key, namespace, distance_strategy) 71 ) 72 if not isinstance(index, pinecone.Index)Error: ---> 73 raise ValueError( 74 f"client should be an instance of pinecone.Index, " f"got {type(index)}" 75 )
ValueError: client should be an instance of pinecone.Index, got <class 'pinecone.data.index.Index'>
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-33-f1e2e49d4e0a> in <cell line: 0>()
28
29
---> 30 docsearch = PineconeLangchain.from_existing_index(index_name, embeddings)
31
32
2 frames
/usr/local/lib/python3.11/dist-packages/langchain_community/vectorstores/pinecone.py in __init__(self, index, embedding, text_key, namespace, distance_strategy)
71 )
72 if not isinstance(index, pinecone.Index):
---> 73 raise ValueError(
74 f"client should be an instance of pinecone.Index, " f"got {type(index)}"
75 )
ValueError: client should be an instance of pinecone.Index, got <class 'pinecone.data.index.Index'>
The code was working correctly 2~3 weeks ago, but I checked today and this error was persistently coming up. I can see the problem is in these bits:
But idk what'sWhat's the problem, bcs it was working fine before.?