A deterministic quality eval as a run type next to BetterBench: tool calling (12 requests), coding (8 Python functions checked by unit tests in a locked-down sandbox container) and long-context retrieval (needle at 3 depths in 3 lengths up to the context). Versioned eval set in src/evals/v1, score stored per run, shown on the run page, in compare views, the benchmark list and sweep tables (optional eval per variant); API kind "eval", quality in run/sweep/compare answers; skill updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
716bd8f2f0
commit
6b67c653b5
33 files changed
+3822
-79
No files matched your search
@@ -5,11 +5,11 @@ import { v1Catch, v1Error, v1Json } from "@/lib/api-v1";
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
/** ?ids=a,b,c (2–16 runs): headline numbers side by side, the setup values that differ, and the shared ones. */
|
||||
export const GET = withToken("benchmarks:read", async (req, { token }) => {
|
||||
export const GET = withToken("benchmarks:read", async (req) => {
|
||||
try {
|
||||
const ids = (new URL(req.url).searchParams.get("ids") ?? "").split(",").map((s) => s.trim()).filter(Boolean).slice(0, 16);
|
||||
if (ids.length < 2) return v1Error(400, "invalid_request", "Pass at least two run ids: ?ids=<id>,<id>");
|
||||
return v1Json(await compareRuns(ids, token));
|
||||
return v1Json(await compareRuns(ids));
|
||||
} catch (err) {
|
||||
return v1Catch(err);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export const GET = withToken("benchmarks:read", async (req, { token }) => {
|
||||
}
|
||||
});
|
||||
|
||||
/** Queue a benchmark run (kind "run") or a paired A/B (kind "ab") on the token's own running deployment(s). */
|
||||
/** Queue a speed run (kind "run"), a paired A/B ("ab") or the quality eval ("eval") on the token's own running deployment(s). */
|
||||
export const POST = withToken("benchmarks:run", async (req, { token }) => {
|
||||
try {
|
||||
const body = AgentRunBody.parse(await req.json());
|
||||
|
||||
Reference in new issue
Block a user