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 Language Translation Converter #106

Merged
merged 22 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
681b7a3
Basics are working
rlundeen2 Mar 17, 2024
6eccd22
Making it multi-language
rlundeen2 Mar 17, 2024
f86abe9
adding tests and fixing build
rlundeen2 Mar 18, 2024
c5b44ff
adding test file
rlundeen2 Mar 18, 2024
37b8833
typo
rlundeen2 Mar 18, 2024
5f4ba66
updating ipynb
rlundeen2 Mar 18, 2024
ee0e3b6
fixing return bug
rlundeen2 Mar 18, 2024
b214399
Merge branch 'main' into users/rlundeen/3_15_language
rlundeen2 Mar 18, 2024
3998bbf
Update doc/demo/4_using_prompt_converters.py
rlundeen2 Mar 19, 2024
68a3113
Update pyrit/datasets/prompt_converters/variation_converter.yaml
rlundeen2 Mar 19, 2024
5ba6fe8
pr feedback
rlundeen2 Mar 19, 2024
2d5ffd2
Merge branch 'users/rlundeen/3_15_language' of https://github.com/rlu…
rlundeen2 Mar 19, 2024
76746b8
Update pyrit/prompt_converter/translation_converter.py
rlundeen2 Mar 19, 2024
3b54f6c
Update pyrit/prompt_converter/translation_converter.py
rlundeen2 Mar 19, 2024
d10d3e4
Merge branch 'users/rlundeen/3_15_language' of https://github.com/rlu…
rlundeen2 Mar 19, 2024
f1cf13a
Update pyrit/prompt_converter/variation_converter.py
rlundeen2 Mar 19, 2024
0ce8955
Update pyrit/prompt_converter/translation_converter.py
rlundeen2 Mar 19, 2024
339eebe
Update pyrit/prompt_converter/translation_converter.py
rlundeen2 Mar 19, 2024
6b1d445
Merge branch 'users/rlundeen/3_15_language' of https://github.com/rlu…
rlundeen2 Mar 19, 2024
ea3a13b
Update pyrit/prompt_converter/translation_converter.py
rlundeen2 Mar 19, 2024
0bbe5b3
Merge branch 'users/rlundeen/3_15_language' of https://github.com/rlu…
rlundeen2 Mar 19, 2024
ed0baac
pr feedback
rlundeen2 Mar 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/code/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# ### Converters
#
# Converters are used to transform prompts before sending them to the target.
# This can be useful for a variety of reasons, such as encoding the prompt in a different format, or adding additional information to the prompt.
# For example, you might want to convert a prompt to base64 before sending it to the target, or add a prefix to the prompt to indicate that it is a question.

#
# This can be useful for a variety of reasons, such as encoding the prompt in a different format, or adding additional information to the prompt. For example, you might want to convert a prompt to base64 before sending it to the target, or add a prefix to the prompt to indicate that it is a question.
#
# Converters can be used to perform these types of transformations. Here is a simple program that uses Rot13Converter converter and AsciiArtConverter
# %%

Expand All @@ -20,7 +20,7 @@

# %% [markdown]
# Converters should be thought of as a piece in the pipeine. They can use external infrastrucutre like attacker LLMs.
# `VariationConverter` is a converter that does this.
# `VariationConverter` is a converter that does this. However, converters like this are significantly slower to run.
#
# An orchestrator will typically initialize these requests, and they are sent to a target.
# Converters can also stack, so a converter is used one after another.
Expand Down
223 changes: 0 additions & 223 deletions doc/demo/4_prompt_variation.ipynb

This file was deleted.

61 changes: 0 additions & 61 deletions doc/demo/4_prompt_variation.py

This file was deleted.

Loading
Loading