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

FEAT: Generalize Colloquial Wordswap Attack Converter #418

Open
eugeniavkim opened this issue Oct 2, 2024 · 0 comments
Open

FEAT: Generalize Colloquial Wordswap Attack Converter #418

eugeniavkim opened this issue Oct 2, 2024 · 0 comments
Labels
converters Related to PyRIT converters enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@eugeniavkim
Copy link
Contributor

Is your feature request related to a problem? Please describe.

The converter in colloquial_wordswap_converter.py needs to be generalized to use different versions of colloquial word swaps. Currently, it is only implemented to allow for custom dictionary inputs and defaults to Singaporean colloquial context.

Describe the solution you'd like

  1. Create a YAML file in datasets\prompts_converters or a directory for ColloquialWordSwap
  2. Add the dictionary of words (the default one that is currently in the converter) as a YAML file that can be passed into the constructor. The default can be Singaporean.
  3. Create additional versions of word swaps as an example of other word swap contexts this converter can be used for!

Additional context

The attack module is originally adapted from Project Moonshot, referenced in #376.

@eugeniavkim eugeniavkim added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed converters Related to PyRIT converters labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
converters Related to PyRIT converters enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant