Skip to content

[重构] 合并 LongBench 问答适配器的 test split 投影逻辑 #700

Open

Description

@Libotry

需求背景 / 当前现状

8 个 LongBench 问答适配器(2wikim_qa、dureader、hotpot_qa、multifieldqa_en/zh、musique、narrative_qa、qasper)各自复制了完全相同的 test split 字段投影代码,新增字段或修复时容易漏改其中一个适配器。

期望实现的功能内容

  • 在 ais_bench/benchmark/datasets/longbench/_qa.py 提供共享的 _project_qa_test_split()。
  • 8 个适配器改为调用共享实现,保持 split 身份、字段顺序与 loader 参数不变。
  • 不修改核心评测代码(runner/inferencer 等)。

测试方案

  • 新增回归测试,覆盖真实 HF DatasetDict 输出、split 身份与字段顺序、loader kwargs、空 split 与缺列场景。
  • 执行 LongBench 适配器测试(24 个用例)与 python -m compileall。

该 Issue 对应一个纯重构 PR([refactor][datasets]),不改变数据集内容。

Activity

  1. github-actions commented on Nov 23, 2026

    @github-actions

    🌟欢迎给AISBench benchmark测评工具提issue,我们会尽快处理您的诉求~

  2. github-actions commented on Nov 23, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    [FAIL]

    详细检查

    • 问题/痛点描述: [COMPLETE]
      • 内容:`##

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  3. added
    content_check_failed
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    content_check_failedfeaturerefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions