Repository navigation
feat(mcqa): Add custom answer extraction via template_metadata to support STEM MCQA dataset - #128
Merged
Merged
Conversation
- Add template_metadata field to MCQARunRequest for custom output regex - Implement _parse_answer_with_custom_regex function for flexible answer extraction - Update verify function to prioritize template_metadata.output_regex over grading_mode - Maintain full backward compatibility with existing grading modes - Support both letter matching and option text matching with custom regex patterns Signed-off-by: Pritam Gundecha <[email protected]>
Signed-off-by: Pritam Gundecha <[email protected]>
Signed-off-by: Pritam Gundecha <[email protected]>
Add 6 test cases covering template_metadata feature including edge cases, priority handling, and fallback behavior. Update README with feature docs, examples, and fix incorrect input schema. Include example files with verified rollouts. Signed-off-by: Pritam Gundecha <[email protected]>
psgundecha-nv
requested review from
banghuaz-nvidia,
bxyu-nvidia and
soares-f
October 10, 2025 19:10
psgundecha-nv
force-pushed
the
psgundecha/rl-templates-mcqa
branch
from
October 10, 2025 19:15
7ff87b6 to
b0b6739
Compare
Signed-off-by: Pritam Gundecha <[email protected]>
psgundecha-nv
force-pushed
the
psgundecha/rl-templates-mcqa
branch
2 times, most recently
from
October 14, 2025 20:34
35c49e6 to
ab82c29
Compare
ertkonuk
added a commit
that referenced
this pull request
Oct 14, 2025
Signed-off-by: Pritam Gundecha <[email protected]>
psgundecha-nv
force-pushed
the
psgundecha/rl-templates-mcqa
branch
from
October 21, 2025 21:29
4205884 to
fdeccd6
Compare
banghuaz-nvidia
approved these changes
Oct 21, 2025
banghuaz-nvidia
left a comment
Contributor
There was a problem hiding this comment.
Can confirm this works and synced with Pritam offline on the remaining questions.
abubakaria56
pushed a commit
to abubakaria56/Gym
that referenced
this pull request
Mar 2, 2026
…port STEM MCQA dataset (NVIDIA-NeMo#128) Adds support for custom answer extraction in MCQA resources server via the optional `template_metadata.output_regex` field. This enables handling STEM datasets with custom prompt formats that don't match the standard grading modes. --------- Signed-off-by: Pritam Gundecha <[email protected]>
abubakaria56
pushed a commit
to abubakaria56/Gym
that referenced
this pull request
Mar 2, 2026
…port STEM MCQA dataset (NVIDIA-NeMo#128) Adds support for custom answer extraction in MCQA resources server via the optional `template_metadata.output_regex` field. This enables handling STEM datasets with custom prompt formats that don't match the standard grading modes. --------- Signed-off-by: Pritam Gundecha <[email protected]>
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.
Adds support for custom answer extraction in MCQA resources server via the optional
template_metadata.output_regexfield. This enables handling STEM datasets with custom prompt formats that don't match the standard grading modes.