Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.1 has broken interaction with the pinecone sdk #111

Open
zsimjee opened this issue Mar 6, 2024 · 2 comments
Open

v0.1.1 has broken interaction with the pinecone sdk #111

zsimjee opened this issue Mar 6, 2024 · 2 comments

Comments

@zsimjee
Copy link

zsimjee commented Mar 6, 2024

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               )

@zsimjee
Copy link
Author

zsimjee commented Mar 6, 2024

I pulled down the code, it looks like this will be resovled once a new version is created in pypi. Please create that version!!

@marpontes
Copy link

I pulled down the code, it looks like this will be resovled once a new version is created in pypi. Please create that version!!

Before the release comes:

pip install https://github.com/protectai/rebuff/archive/main.zip#subdirectory=python-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants