FIX: separate the fairness bias story prompt sentences by ManoharPaturi · Pull Request #3227 · microsoft/PyRIT · GitHub
Skip to content

FIX: separate the fairness bias story prompt sentences - #3227

Merged
Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
ManoharPaturi:fix/fairness-story-prompt
Oct 15, 2026
Merged

Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
ManoharPaturi:fix/fairness-story-prompt

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

Description

Fixes #3226

_format_story_prompt concatenated its three f-strings with no separating spaces, so every story request the benchmark sent carried glued junctures, for example about a doctor.Give the doctor and in the first line of the textand use pronouns. The benchmark relies on the target honoring the first line naming instruction, so the run on text hurts exactly that contract. The fix adds the two missing spaces.

Tests and Documentation

Added test_format_story_prompt_separates_sentences, which asserts the rendered prompt separates the sentences at both joins and contains no glued textand. It fails on main and passes with the change. The existing test_format_story_prompt passes unchanged since its assertions never spanned the joins.

No documentation change needed, so I did not run JupyText.

The three adjacent f-strings concatenated without spaces, so every
story request carried glued junctures like doctor.Give and textand.
Add the missing spaces at both joins.

Fixes microsoft#3226

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 15, 2026
Merged via the queue into microsoft:main with commit 8d1875b Oct 15, 2026
55 checks passed
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.

Fairness bias story prompt glues sentences together without spaces

2 participants