Repository navigation
MAINT Refactor question answer orchestrator as prompt orchestrator - #894
Merged
Roman Lutz (romanlutz) merged 19 commits intoMay 2, 2025
Conversation
Bashir Partovi (bashirpartovi)
left a comment
Contributor
There was a problem hiding this comment.
Thanks for attempting the refactor, I have a few comments, please let me know if you have any questions about them
added 8 commits
April 24, 2025 17:50
…elpers to QA scorer
Adrian Gavrila (adrian-gavrila)
force-pushed
the
Refactor_Question_Answer_Orchestrator_As_Prompt_Orchestrator
branch
from
April 24, 2025 21:50
51d3d70 to
1da1dd4
Compare
Adrian Gavrila (adrian-gavrila)
requested review from
Bashir Partovi (bashirpartovi) and
Roman Lutz (romanlutz)
April 30, 2025 14:36
Roman Lutz (romanlutz)
approved these changes
Apr 30, 2025
Roman Lutz (romanlutz)
left a comment
Contributor
There was a problem hiding this comment.
I'm happy with this as is. Would love to see Bashir Partovi (@bashirpartovi) approve as well since he's thought about it in depth, too. I would also like a maintainer (I can do that) to run the notebook and add outputs.
Bashir Partovi (bashirpartovi)
left a comment
Contributor
There was a problem hiding this comment.
Looks good, thanks for adding all the feedback. I had a few more, nothing major
Bashir Partovi (bashirpartovi)
approved these changes
May 1, 2025
Bashir Partovi (bashirpartovi)
left a comment
Contributor
There was a problem hiding this comment.
Great work, lgtm!
Contributor
|
Excellent work @AdrGav941 ! This is so much better than the initial version. Thanks for your patience working through various options with us. |
Royce Moon (0xm00n)
added a commit
to 0xm00n/PyRIT
that referenced
this pull request
Nov 21, 2025
…cture Changed fetch_anthropic_evals_dataset() to return QuestionAnsweringDataset instead of SeedDataset, following the QA structure established in PR microsoft#894. - Added _parse_answer_choices() to convert answer behaviors into structured QuestionChoice objects with proper indexing - Preserved letter prefixes in choice text - Used answer_matching_behavior as correct_answer for consistency - Special handling for winogenerated datasets with pronoun_options - Removed redundant tests, added critical tests for choice parsing edge cases - Fixed docstrings to comply with ruff linting rules This makes the dataset compatible with QuestionAnsweringBenchmark orchestrator and follows the pattern where choices are structured objects rather than metadata strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Restructured Question Answer Benchmark Orchestrator to be a Prompt Sending Orchestrator
https://github.com/Azure/PyRIT/issues/656
Tests and Documentation
new test was added in test_question_answer_benchmark_orchestrator.py which test basic functionality. Testing is very similar to what is done for role play orchestrator
Ran jupytext to generate benchmark_orchestrator.ipynb