Machine_Learning_CTF_Challenges icon indicating copy to clipboard operation
Machine_Learning_CTF_Challenges copied to clipboard

Ads/fix dolos rebuff api errors

Open GangGreenTemperTatum opened this issue 1 year ago • 0 comments

currently debugging/attempting to fix #13, out of time atm but getting closer

INFO:app:Sending request to Rebuff SDK with user_input: ada
ERROR:app:Error occurred: init is no longer a top-level attribute of the pinecone package.

Please create an instance of the Pinecone class instead.

Example:

    import os
    from pinecone import Pinecone, ServerlessSpec

    pc = Pinecone(
        api_key=os.environ.get("PINECONE_API_KEY")
    )

    # Now do stuff
    if 'my_index' not in pc.list_indexes().names():
        pc.create_index(
            name='my_index', 
            dimension=1536, 
            metric='euclidean',
            spec=ServerlessSpec(
                cloud='aws',
                region='us-west-2'
            )
        )

GangGreenTemperTatum avatar Oct 01 '24 14:10 GangGreenTemperTatum