-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Update redteam complexity mapping #40321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the red team complexity mapping logic by modifying how attack strategies are flattened in the formatting utility.
- Changes the mapping for moderate attack strategies by replacing the composed combination with a single strategy.
- Updates the difficult attack strategies mapping by removing one composed combination in favor of a unified strategy.
Comments suppressed due to low confidence (2)
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_red_team/_utils/formatting_utils.py:67
- The moderate block now only adds AttackStrategy.Tense instead of the previously composed combination. Please verify that this change accurately reflects the intended mapping for moderate attack strategies.
AttackStrategy.Tense],
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_red_team/_utils/formatting_utils.py:73
- In the difficult block, removal of AttackStrategy.Morse and merging the Base64 strategy into a single Compose call changes the behavior. Please confirm that this modification aligns with the intended design for difficult attack strategies.
AttackStrategy.Base64
API change check APIView has identified API level changes in this PR and created following API reviews. |
…-sdk-for-python into fix-complexity
* Update complexity mapping * remove unused debug_mode param * update strategy converter mapping * get base64 tense working properly * Add api version if its available in model config * fix printing errors * make red_team separate sub-package and fix unit tests * update sample * Update setup.py to pin pyrit and termcolor * Update setup.py * fix unit tests --------- Co-authored-by: Nagkumar Arkalgud <nagkumar@naarkalg-work-mac.local> Co-authored-by: Nagkumar Arkalgud <nagkumar91@users.noreply.github.com>
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines