You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2025. It is now read-only.
in v0.1.1, pinecone_environment was added as an arg for rebuff, which was later passed to the pinecone.init function. When using the latest pinecone version, this breaks with teh following error:
E AttributeError: init is no longer a top-level attribute of the pinecone package.
E
E Please create an instance of the Pinecone class instead.
E
E Example:
E
E import os
E from pinecone import Pinecone, ServerlessSpec
E
E pc = Pinecone(
E api_key=os.environ.get("PINECONE_API_KEY")
E )
E
E # Now do stuff
E if 'my_index' not in pc.list_indexes().names():
E pc.create_index(
E name='my_index',
E dimension=1536,
E metric='euclidean',
E spec=ServerlessSpec(
E cloud='aws',
E region='us-west-2'
E )
E )
in v0.1.1,
pinecone_environmentwas added as an arg for rebuff, which was later passed to thepinecone.initfunction. When using the latest pinecone version, this breaks with teh following error: