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

Add paraphrasing #33

Open
deadbits opened this issue Sep 17, 2023 · 0 comments
Open

Add paraphrasing #33

deadbits opened this issue Sep 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request scanners Scanner modules

Comments

@deadbits
Copy link
Owner

Update API so that users can submit prompts with the "paraphrase" flag. The submitted prompt will be paraphrased by an LLM and returned with the normal scan results.

Idea is that if the prompt contains an injection, paraphrasing while retaining the overall meaning may break injection strings.

Probably something like this
POST /analyze/prompt?paraphrase=true

  • Create paraphrasing prompt
  • Add paraphrase scanner module
  • Update API
@deadbits deadbits added enhancement New feature or request scanners Scanner modules labels Sep 17, 2023
@deadbits deadbits self-assigned this Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scanners Scanner modules
Projects
None yet
Development

No branches or pull requests

1 participant