You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to use embedchain app using pinecone as vectordb as it is not allowing to save data.
Below the code that can be run on collab notebook to reproduce the error,
WARNING:embedchain.embedchain:Starting from version v0.0.40, Embedchain can automatically detect the data type. So, in the `add` method, the argument order has changed. You no longer need to specify 'web_page' for the `source` argument. So the code snippet will be `.add("https://en.wikipedia.org/wiki/Elon_Musk", "web_page")`
WARNING:embedchain.embedchain:Embedchain is swapping the arguments for you. This functionality might be deprecated in the future, so please adjust your code.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-29-8019c35f7ee9>](https://localhost:8080/#) in <cell line: 0>()
----> 1 elon_bot.add("web_page", "https://en.wikipedia.org/wiki/Elon_Musk")
2 frames
[/usr/local/lib/python3.11/dist-packages/embedchain/vectordb/pinecone.py](https://localhost:8080/#) in get(self, ids, where, limit)
106 for i in range(0, len(ids), self.batch_size):
107 result = self.pinecone_index.fetch(ids=ids[i : i + self.batch_size])
--> 108 vectors = result.get("vectors")
109 batch_existing_ids = list(vectors.keys())
110 existing_ids.extend(batch_existing_ids)
AttributeError: 'FetchResponse' object has no attribute 'get'
The text was updated successfully, but these errors were encountered:
I am unable to use embedchain app using pinecone as vectordb as it is not allowing to save data.
Below the code that can be run on collab notebook to reproduce the error,
It gives following error message,
The text was updated successfully, but these errors were encountered: