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

Adding Support for 1:N PromptConverters #75

Merged
merged 11 commits into from
Mar 2, 2024

Conversation

rlundeen2
Copy link
Contributor

@rlundeen2 rlundeen2 commented Feb 29, 2024

Description

Before this, converters could only convert a prompt from one thing to another, 1:1.

This PR allows us to convert prompts 1:N. This is needed if we want a single prompt Converter to translate to N different prompt variations.

I also added a include_original flag to the orchestrator that allows the converter to keep the original version.

Tests

  • no new tests required
  • new tests added
  • existing tests adjusted

Documentation

  • no documentation changes needed
  • documentation added or edited
  • example notebook added or updated

pyrit/prompt_converter/base64_converter.py Outdated Show resolved Hide resolved
pyrit/prompt_converter/base64_converter.py Show resolved Hide resolved
pyrit/prompt_converter/string_join_converter.py Outdated Show resolved Hide resolved
pyrit/prompt_converter/string_join_converter.py Outdated Show resolved Hide resolved
pyrit/prompt_converter/string_join_converter.py Outdated Show resolved Hide resolved
tests/test_prompt_converter.py Show resolved Hide resolved
rlundeen2 and others added 3 commits February 29, 2024 16:42
Co-authored-by: Roman Lutz <romanlutz13@gmail.com>
Co-authored-by: Roman Lutz <romanlutz13@gmail.com>
pyrit/prompt_converter/prompt_converter.py Outdated Show resolved Hide resolved
@rlundeen2 rlundeen2 dismissed nina-msft’s stale review March 1, 2024 19:32

made the change but she's out today :)

@rlundeen2 rlundeen2 merged commit 91523b8 into Azure:main Mar 2, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

5 participants