-
Notifications
You must be signed in to change notification settings - Fork 3k
Allow user to view conversation group id for all the strategies in a red team scan #40662
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
base: main
Are you sure you want to change the base?
Conversation
…ere the convertors are called
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 pull request updates the red team scan functionality to allow users to view the conversation group ID for all strategies. It introduces a mapping utility for risk categories and adds a new parameter, prompt_id, to the AttackDetails type for improved tracking of conversation prompts.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_utils/metric_mapping.py | Added mapping utility and helper function to associate risk categories with evaluation metrics. |
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_red_team_result.py | Updated the AttackDetails type to include the new prompt_id parameter. |
API change check API changes are not detected in this pull request. |
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 extends the red team scan functionality so that users can view conversation group IDs (prompt IDs) for all strategies. Key changes include:
- Adding a new prompt_id field to the AttackDetails TypedDict.
- Updating orchestration logic to send normalizer requests with conversation IDs.
- Modifying file write operations to include conversation IDs when outputting conversations.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_red_team_result.py | Added prompt_id to AttackDetails documentation and data structure. |
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_red_team.py | Updated orchestration and file write logic to support prompt_id extraction and output. |
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_red_team.py
Outdated
Show resolved
Hide resolved
…m/_red_team.py Co-authored-by: Copilot <[email protected]>
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