Skip to content

feat: implement benchmark datasets loading - #1056

Merged
AmitoVrito merged 5 commits into
SynapseKit:mainfrom
ramashishmaurya:feat/implement-benchmark-datasets
Oct 2, 2026
Merged

AmitoVrito merged 5 commits into
SynapseKit:mainfrom
ramashishmaurya:feat/implement-benchmark-datasets

Conversation

@ramashishmaurya

Copy link
Copy Markdown
Contributor

Summary

This PR implements dataset loading and basic evaluation logic for several benchmark classes (AgentBench, WebArena, GAIA, SWE-bench) using the HuggingFace datasets library.

Closes #

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / internal improvement
  • Dependency / tooling update

Changes

  • Added datasets>=2.16.0 to the huggingface optional dependency group in pyproject.toml and updated the uv.lock file.
  • Implemented get_dataset in AgentBenchBenchmark, WebArenaBenchmark, GaiaBenchmark, and SWEBenchBenchmark to fetch data via datasets.load_dataset().
  • Updated the evaluate methods across these benchmarks to capture the agent's return value and accurately increment the success counter when the task completes successfully.

Testing

  • All existing tests pass (uv run pytest tests/ -q)
  • New tests added for new behaviour
  • No API keys or secrets in the code

Documentation

  • Docstrings updated (if public API changed)
  • synapsekit-docs updated (if new feature)
  • CHANGELOG.md updated

Notes for reviewer

Users will now need to install the library with the huggingface extra (e.g., pip install synapsekit[huggingface]) in order to load these benchmarks.

ramashishmaurya and others added 4 commits September 26, 2026 22:17
…hmarks

GAIA's success check was `(expected_match) or (non_null_result)`, so the
second clause always short-circuited the expected-answer comparison -
GAIA scoring was identical to the other benchmarks' dummy pass-if-truthy
logic. Now expected_answer is actually required to match when present.

Also reverts an unrelated trailing-newline removal in cli/agent.py and
replaces stale "Currently a stub implementation" docstrings/comments
across the benchmark classes with notes on what real grading still needs
(patch+test execution, task-completion evaluators, etc).

Co-authored-by: ramashishmaurya <[email protected]>
PR SynapseKit#1056 switched benchmarks from stub `return []` to real
`datasets.load_dataset()` calls, but `datasets` isn't in the dev
dependency group (only the optional `huggingface` extra), so the
existing GAIA tests broke with ImportError when run in a standard dev
env. Fake the `datasets` module in sys.modules instead of installing
the real (heavy, network-calling) package, and add coverage for the new
expected-answer matching and the other placeholder benchmarks including
HumanEval.

Co-authored-by: ramashishmaurya <[email protected]>
@AmitoVrito
AmitoVrito merged commit f79f200 into SynapseKit:main Oct 2, 2026
19 checks passed
@AmitoVrito

Copy link
Copy Markdown
Collaborator

Thanks for this, @ramashishmaurya! Merged. Fixed a grading-logic bug in GAIABenchmark's success check and a couple of existing tests that broke under the new real dataset loading — details in the merge commit.

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