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

Create a first class python Rebuff SDK #52

Open
seanpmorgan opened this issue Oct 4, 2023 · 1 comment
Open

Create a first class python Rebuff SDK #52

seanpmorgan opened this issue Oct 4, 2023 · 1 comment

Comments

@seanpmorgan
Copy link
Member

seanpmorgan commented Oct 4, 2023

Today, rebuff SDK consists of :

  1. A first class TypeScript SDK which houses the code for all 4 layers of defense. 3 detection layers that occur prior to prompt submission (Heuristics, LLM-detection, VectorDB comparison) and 1 layer that uses canary tokens to validate if a prompt injection has occurred.

  2. A Python SDK that must interact with a RESTful server (e.g. Rebuff Playground using the JS SDK) to do the 3 layers of detection mentioned above. The current python SDK does has the ability to add canary tokens, and detect if they've been leaked without the need for an external API call.


Going forward we're going to create a first class python SDK that has feature parity with the JS/TS SDK. We will move majority of the current python REST client within the server directory which will ultimately become its own repo (issue on this will be coming).

@ristomcgehee
Copy link
Collaborator

I'm interested in working on this one. I have a couple questions to discuss:

  1. Since we'll be introducing quite a few more dependencies, do we want to start using Poetry instead of setup.py?
  2. From the start, do we want to make separate packages for the python REST client and the full-fledged python sdk?

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

Successfully merging a pull request may close this issue.

2 participants