protectai / rebuff

LLM Prompt Injection Detector
https://playground.rebuff.ai
Apache License 2.0
1.09k stars 78 forks source link

Update usage of pinecone #106

Closed mehrinkiani closed 8 months ago

mehrinkiani commented 8 months ago

This PR updates the usage of pinecone-client since we upgraded to v 3.0. The main change includes the initialization of Pinecone without the environment variable:

from pinecone import Pinecone

pc = Pinecone(api_key='XXX')

Closes #105

Reference: The migration guide for Pinecone Python SDK v3.0.0