The from_existing_index
has deprecated and you can perform the same by using
pc = Pinecone(api_key=api_key)
index = pc.Index(index_name)
index.describe_index_stats() ## For verification
You can refer to the Pinecone official Notebook langchain-retrieval-augmentation.ipynb