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
+31
-2
@@ -703,9 +703,34 @@ export type BenchmarkSettings = {
|
||||
/** A/B: target minimum detectable effect in % (BetterBench --mde, default 1) and pair ceiling. */
|
||||
mdePct?: number | null;
|
||||
maxPairs?: number | null;
|
||||
/** eval: which sections (empty: all). Sweeps: also run the quality eval for each variant. */
|
||||
evalSections?: QualitySection[];
|
||||
quality?: boolean;
|
||||
};
|
||||
|
||||
export const BENCHMARK_KINDS = ["run", "ab"] as const;
|
||||
export const QUALITY_SECTIONS = ["tools", "coding", "retrieval"] as const;
|
||||
export type QualitySection = (typeof QUALITY_SECTIONS)[number];
|
||||
|
||||
/** A quality eval's result: pass rates per section and the overall score (their mean), 0–100. */
|
||||
export type QualityResult = {
|
||||
/** The eval set's version; only results of the same version are comparable. */
|
||||
evalSet: string;
|
||||
score: number | null;
|
||||
sections: {
|
||||
section: QualitySection;
|
||||
passed: number;
|
||||
total: number;
|
||||
score: number | null;
|
||||
/** Why the section couldn't run (e.g. the server doesn't do tool calls); then it doesn't count. */
|
||||
unsupported?: string | null;
|
||||
seconds: number;
|
||||
}[];
|
||||
items: { section: QualitySection; id: string; pass: boolean; detail?: string | null }[];
|
||||
config: { temperature: number; seed: number; thinking: boolean; contextTokens: number | null };
|
||||
};
|
||||
|
||||
/** run: BetterBench; ab: paired A/B; eval: Kaname's quality eval (tool calling, coding, retrieval). */
|
||||
export const BENCHMARK_KINDS = ["run", "ab", "eval"] as const;
|
||||
export type BenchmarkKind = (typeof BENCHMARK_KINDS)[number];
|
||||
|
||||
/** One side of a paired comparison, as BetterBench's paired_compare reports it. */
|
||||
@@ -945,6 +970,8 @@ export const benchmarkRuns = sqliteTable(
|
||||
snapshotB: text("snapshot_b", { mode: "json" }).$type<BenchmarkSnapshot>(),
|
||||
ab: text("ab", { mode: "json" }).$type<AbSummary>(),
|
||||
resources: text("resources", { mode: "json" }).$type<ResourceStats>(),
|
||||
/** kind "eval": the quality eval's result. */
|
||||
quality: text("quality", { mode: "json" }).$type<QualityResult>(),
|
||||
/** Run of a sweep variant. */
|
||||
sweepId: text("sweep_id"),
|
||||
/** Requested through the API: the token and its name at the time. */
|
||||
@@ -1026,9 +1053,11 @@ export type SweepVariant = {
|
||||
/** Option overrides for this variant, e.g. { contextSize: 8192, cacheTypeK: "q8_0", cacheTypeV: "q8_0" }. */
|
||||
overrides: Record<string, unknown>;
|
||||
label: string;
|
||||
state: "pending" | "deploying" | "benchmarking" | "done" | "failed" | "skipped";
|
||||
state: "pending" | "deploying" | "benchmarking" | "evaluating" | "done" | "failed" | "skipped";
|
||||
deploymentId?: string | null;
|
||||
runId?: string | null;
|
||||
/** The quality eval run of this variant (sweeps with quality: true). */
|
||||
evalRunId?: string | null;
|
||||
error?: string | null;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user