From_existing _index not working with Pinecone serverless

docsearch = pc.from_existing_index(index_name, embeddings)
AttributeError: ‘Pinecone’ object has no attribute ‘from_existing_index’

Hi @garimasrivastava0104, welcome to the Pinecone forums and thanks for your question!

Could you please share:

  1. What documentation or tutorial you’re following?
  2. What version of the Pinecone and LangChain you’re using?

Please see our up-to-date LangChain guide here, and let me know if you have issues following it.