Skip to content

fix regex bug in browsecomp#67

Open
tengyaolong2000 wants to merge 1 commit into
openai:mainfrom
tengyaolong2000:patch-1
Open

fix regex bug in browsecomp#67
tengyaolong2000 wants to merge 1 commit into
openai:mainfrom
tengyaolong2000:patch-1

Conversation

@tengyaolong2000

Copy link
Copy Markdown

match.group(0) captures "correct: yes/no" when we just want "yes" or "no" (without "correct:") , match.group(1) fixes this

match.group(0) captures "correct: yes/no" when we just want "yes" or "no" (without "correct:") , match.group(1) fixes this
@cmuyaol

cmuyaol commented Apr 22, 2025

Copy link
Copy Markdown

Great to see a PR to fix this issue

JoyboyBrian added a commit to Osmosis-AI/simple-evals that referenced this pull request Jul 14, 2026
grade_sample returned match.group(0) ("correct: yes"/"correct: no"),
which never equals the bare "yes"/"no" the aggregation compares
against, so is_correct and is_incorrect were always False and reported
accuracy was always 0. Return the captured group instead.

Same one-line fix as unmerged upstream PRs openai#67 and
openai#93.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
JoyboyBrian added a commit to Osmosis-AI/simple-evals that referenced this pull request Jul 14, 2026
* Add BrowseComp web-search wrapper for the Responses API

Upstream simple-evals cannot produce meaningful BrowseComp results:

1. grade_sample returns match.group(0) ("correct: yes"), while
   aggregation compares against the bare string "yes", so reported
   accuracy is always 0 (upstream PRs openai#67 / openai#93, still unmerged).
2. No sampler supports web search, so the official entrypoint runs
   this browsing benchmark closed-book; questions were explicitly
   filtered at construction time to be unanswerable without browsing
   (GPT-4o closed-book: 0.6%).

This wrapper adds a Responses API sampler with the hosted web_search
tool, accepts both grader output forms when aggregating, and provides
a deterministic oracle mode to validate the grading pipeline before
paying for search runs. Reference answers are never written in
plaintext to result files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Fix BrowseComp grader regex group extraction

grade_sample returned match.group(0) ("correct: yes"/"correct: no"),
which never equals the bare "yes"/"no" the aggregation compares
against, so is_correct and is_incorrect were always False and reported
accuracy was always 0. Return the captured group instead.

Same one-line fix as unmerged upstream PRs openai#67 and
openai#93.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants