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: Add shorten/expand converters #246

Merged
merged 10 commits into from
Jun 21, 2024

Conversation

jl8771
Copy link
Contributor

@jl8771 jl8771 commented Jun 17, 2024

Description

Add one converter to shorten prompts and one converter to expand prompts, each using a LLM chat target.

Based on GPTFuzzer paper by Yu et al. Intended for use with FuzzerOrchestrator (#226 )

Tests and Documentation

One test added for each converter for system prompt.

pyrit/prompt_converter/expand_converter.py Show resolved Hide resolved
pyrit/prompt_converter/expand_converter.py Outdated Show resolved Hide resolved
pyrit/prompt_converter/expand_converter.py Outdated Show resolved Hide resolved
pyrit/prompt_converter/expand_converter.py Show resolved Hide resolved
pyrit/prompt_converter/shorten_converter.py Show resolved Hide resolved
Copy link
Contributor

@romanlutz romanlutz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for incorporating the retries!

pyrit/prompt_converter/expand_converter.py Outdated Show resolved Hide resolved
@rlundeen2 rlundeen2 merged commit 2c6994c into Azure:main Jun 21, 2024
5 checks passed
@jl8771 jl8771 deleted the converters/shortenexpand branch July 1, 2024 18:23
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.

None yet

3 participants