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

Jailbreak detection with embeddings #6

Closed
dllewellyn opened this issue Oct 16, 2023 · 0 comments
Closed

Jailbreak detection with embeddings #6

dllewellyn opened this issue Oct 16, 2023 · 0 comments

Comments

@dllewellyn
Copy link
Collaborator

Intermediate jailbreak detection

will use AI to detect if the prompt is attempting to jailbreak the app using keywords and then similar keywords.

To do this, we will

  • create a starting database of keywords used for jailbreak detection
  • build that database into an embeddings dB which can be used to look for similar words
  • add a configurable threshold for how similar words need to be
  • convert all prompt requests to embeddings
  • compare to bad words database
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

1 participant