From fad8147d7128b2f39589ec1d4850542e49e4a4cb Mon Sep 17 00:00:00 2001 From: iomgaa Date: Thu, 9 Jul 2026 05:49:05 -0400 Subject: [PATCH] =?UTF-8?q?refactor(question=5Fgen):=20=5F=5Finit=5F=5F.py?= =?UTF-8?q?=20=E8=BF=BD=E5=8A=A0=20synthesizer=20re-export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- app/question_gen/__init__.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/app/question_gen/__init__.py b/app/question_gen/__init__.py index 9867a7d..6dab48e 100644 --- a/app/question_gen/__init__.py +++ b/app/question_gen/__init__.py @@ -1,5 +1,18 @@ -"""出题模块 — benchmark 加载与分层采样。""" +"""出题模块 — benchmark 加载、分层采样与赛题合成。""" from app.question_gen.loader import load_benchmark, stratified_sample +from app.question_gen.synthesizer import ( + TASK_TYPE_LEVEL_MAP, + AnchorContext, + generate_one, + sample_anchor, +) -__all__ = ["load_benchmark", "stratified_sample"] +__all__ = [ + "load_benchmark", + "stratified_sample", + "TASK_TYPE_LEVEL_MAP", + "AnchorContext", + "generate_one", + "sample_anchor", +]