Skip to content

feat: add prbench benchmark - #207

Open
abhinav-pola wants to merge 5 commits into
mainfrom
devin/1796321686-prbench
Open

abhinav-pola wants to merge 5 commits into
mainfrom
devin/1796321686-prbench

Conversation

@abhinav-pola

@abhinav-pola abhinav-pola commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR

Adds prbench, Scale AI's PRBench, as a Kepler benchmark. The model answers expert finance and legal conversations, and a grader model scores each answer against weighted expert rubric criteria.

What changed?

  • src/benchmarks/prbench/
    • The dataset loader streams ScaleAI/PRBench from Hugging Face and validates every row.
    • It rebuilds the conversation, prepending reference texts to their prompt as upstream does, and resolves each criterion's weight from its weight_class.
    • The solver replays the conversation as chat messages.
    • The scorer makes one grader call per criterion, using the upstream grader prompt verbatim.
    • Run-level scores report mean_clipped and mean_normalized, broken down by split, field, topic and criteria category.
  • New options:
    • graderModel, default openai/gpt-6.2-sol at high reasoning effort.
    • subset: all (finance + legal, 1,100 tasks), finance, legal, finance_hard or legal_hard.
  • Config schema, metadata, registry and CLI wiring.
  • README with provenance and licenses: data is CC BY 4.0 (Scale AI), and the ported code is MIT (Copyright (c) 2026 Scale).

Why?

Adds a professional-reasoning (finance and legal) benchmark with expert rubrics.

How to test

bun run bench --benchmark prbench --model openai/gpt-4.1 --limit 5

The run should report a prbench run-level score block, and each sample's explanation should contain per-criterion grades.

Benchmark impact

This adds a new benchmark; no existing benchmark changes. Upstream grades with openai/o4-mini, which OpenRouter no longer serves, so scores are not directly comparable with the paper. Upstream counts an unparseable grade as "not met". Here, after 3 invalid attempts the whole sample is skipped instead.

Reviewer focus

  • The scoring formulas in benchmark.ts against upstream's get_clipped_points and get_normalized_points.
  • How the all subset joins the finance and legal splits in dataset.ts.

Checklist

  • Tests cover changed behavior
  • Public API or configuration changes are backward compatible, or the break is documented
  • Benchmark changes document dataset provenance and licensing
  • No credentials, private results, or restricted dataset contents are included
  • Documentation is updated where needed

🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

@devin-ai-integration

devin-ai-integration Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review December 3, 2026 18:22
@devin-ai-integration
devin-ai-integration Bot requested a review from a team as a code owner December 3, 2026 18:22

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

devin-ai-integration Bot and others added 3 commits December 4, 2026 00:15
# Conflicts:
#	src/benchmarks/benchmark-config.ts
#	src/benchmarks/benchmark-meta.ts
#	src/benchmarks/registry.ts
#	src/cli/index.ts
# Conflicts:
#	src/benchmarks/benchmark-config.ts
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.

1 participant