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