From 72befa2bd4dcdd71a39f0166ff79523e49acf471 Mon Sep 17 00:00:00 2001 From: iomgaa Date: Tue, 14 Jul 2026 10:34:28 -0400 Subject: [PATCH] feat(pools): add batch_correct_ratio field to PoolConfig Co-Authored-By: Claude Opus 4.6 (1M context) --- app/harness/pools.py | 1 + core/types.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/harness/pools.py b/app/harness/pools.py index 14e6970..ac98d27 100644 --- a/app/harness/pools.py +++ b/app/harness/pools.py @@ -361,6 +361,7 @@ def _to_pool_config(config: RunConfig, baseline_run_id: str) -> PoolConfig: eval_min_per_class=config.eval_min_per_class, train_ratio=config.train_ratio, test_questions_dir=test_questions_dir, + batch_correct_ratio=config.batch_correct_ratio, ) diff --git a/core/types.py b/core/types.py index 2a5ad54..b3608b1 100644 --- a/core/types.py +++ b/core/types.py @@ -45,6 +45,7 @@ class GeneratedQuestion: answer: 正确答案字母(如 "B")。 source_nodes: 来源节点 ID 元组。 difficulty: 难度等级。 + family: 问题家族名称(如 "RETRIEVAL",v2 出题管线使用,None 表示未指定)。 skill_target: 目标技能标识(v2 出题管线使用,None 表示未指定)。 difficulty_steps: 推理步数估计(v2 出题管线使用,None 表示未指定)。 """ @@ -57,6 +58,7 @@ class GeneratedQuestion: answer: str source_nodes: tuple[str, ...] difficulty: str + family: str | None = field(default=None) skill_target: str | None = field(default=None) difficulty_steps: int | None = field(default=None) @@ -92,3 +94,4 @@ class PoolConfig: eval_min_per_class: int train_ratio: float test_questions_dir: _Path | None + batch_correct_ratio: float | None = None