Author: @Jen Hamon

Changes overview

Importing and Initialization

Some challenges with initialization in pinecone-client ≤2.2.4

In the old client, you had to call the init method to setup some configuration state as global variables before invoking any data plane or control plane methods. There were a few problems with this:

# Legacy initialization
import pinecone

pinecone.init(
	api_key='XXX', 
	environment='us-east1-gcp'
)