I am unable to perform the vector embeddings with the help of pinecone and python

28 Views Asked by At

I have done chunking of the data prior to this and intend to do embeddings and store in pinecone. I have reffered youtube on this as well and found this code and its not working.

docsearch = pc.from_documents([t.page_content for t in text_chunks], embeddings, index_name= 'mcahtbot')

I get this error.

AttributeError: 'Pinecone' object has no attribute 'from_documents'

Reffered to pinecone, youtube and searched other platforms for answers to similar problem

0

There are 0 best solutions below