Синтаксическая ошибка сосновой шишки, пожалуйста, предоставьте решение [закрыто] ⇐ Python
-
Anonymous
Синтаксическая ошибка сосновой шишки, пожалуйста, предоставьте решение [закрыто]
pinecone.init(api_key=PINECONE_API_KEY, environment=PINECONE_API_ENV) index_name="medicalchatbot" #Creating Embeddings for Each of The Text Chunks & storing docsearch= Pinecone.from_texts([t.page_content for t in text_chunks], embeddings, index_name=index_name) AttributeError: init is no longer a top-level attribute of the pinecone package. ... region='us-west-2' ) ) Can anyone please answer this??
Источник: https://stackoverflow.com/questions/781 ... e-solution
pinecone.init(api_key=PINECONE_API_KEY, environment=PINECONE_API_ENV) index_name="medicalchatbot" #Creating Embeddings for Each of The Text Chunks & storing docsearch= Pinecone.from_texts([t.page_content for t in text_chunks], embeddings, index_name=index_name) AttributeError: init is no longer a top-level attribute of the pinecone package. ... region='us-west-2' ) ) Can anyone please answer this??
Источник: https://stackoverflow.com/questions/781 ... e-solution