I'm developing a medical chatbot that uses Pinecone for vector storage and SentenceTransformer for generating embeddings. The issue in your code arises from attempting to use a deprecated method from_existing_index.
I'm trying to build a medical chatbot that can respond to user queries by leveraging vector embeddings stored in Pinecone. The chatbot aims to understand user questions, like "What are Allergies," and retrieve relevant information by performing similarity searches on an existing index of medical knowledge.
Pinecone.from_existing_indexis not a valid function in Pinecone. Previously,from_existing_indexwas a method in both the PineconeIndexclass andPineconeVectorStoreclass, used to initialize a vector store.However, these methods are deprecated in the latest version."