Dataset Viewer
Auto-converted to Parquet Duplicate
track_id
stringlengths
22
22
context_id
stringlengths
14
14
original_track_id
stringlengths
13
19
original_context_id
stringlengths
14
14
source_batch
stringclasses
3 values
source_url
stringlengths
33
165
file_path
stringlengths
27
27
language
stringclasses
2 values
domain
stringclasses
6 values
document_type
stringlengths
6
61
context
stringlengths
17.5k
318k
token_length
int64
8.25k
151k
length_bucket
stringclasses
6 values
context_length_tier
stringclasses
2 values
question_type
stringclasses
3 values
question
stringlengths
119
1.21k
answer
listlengths
1
9
review_result
dict
difficulty_result
dict
question_generation
dict
task_labels
dict
answer_explanation
dict
longqa_delivery_000001
context_000001
longqa_final_000001
context_000002
batch_01_legacy15
https://github.com/zh-google-styleguide/zh-google-styleguide/blob/master/google-python-styleguide/python_language_rules.rst
contexts/context_000001.txt
Chinese
软件与工程
技术与软件文档
Python语言规范 ================================ Lint -------------------- .. tip:: 用 `pylintrc <https://google.github.io/styleguide/pylintrc>`_ 运行 pylint, 以检查你的代码. 定义: pylint 是在 Python 代码中寻找 bug 和格式问题的工具. 它寻找的问题就像 C 和 C++ 这些更静态的(译者注: 原文是less dynamic)语言中编译器捕捉的问题. 出于Python的动态特性, 部分警告可能有误. 不过, 误报应该不常见. 优点: ...
8,488
8k
次选_8k至16k
短答案题
在“导入”章节的“结论”局部范围内,筛选同时满足以下条件的导入规则:1)明确给出具体导入语法;2)明确规定该语法的适用场景或使用限制。按结论中的条目编号升序输出。请先输出[Answer],再逐行输出答案;每行格式为“条目编号:导入规则”。
[ "3:在以下情况使用 ``from x import y as z``: 如果有两个模块都叫 ``y``; 如果 ``y`` 和当前模块的某个全局名称冲突; 如果 ``y`` 是长度过长的名称。", "4:仅当缩写 ``z`` 是标准缩写时才能使用 ``import y as z``.(比如 ``np`` 代表 ``numpy``.)" ]
{ "status": "pass", "original_review_status": "pass", "review_method": "题目、答案、context依据与长上下文必要性综合review", "review_conclusion": "任务限定在“导入”章节“结论”的局部范围,两个条目都同时包含具体语法和适用条件,且条目编号给出了唯一排序依据。", "evidence_count": 2, "judge_process_file": "rollouts/longqa_delivery_000001/judge_process.json", "question_audit": { ...
{ "answering_model": "qwen3.5-35b-a3b", "rollout_config_id": "batch_01_legacy15", "rollout_count": 8, "scoring_method": "DeepSeek Reasoner semantic equivalence judge", "rollout_results": [ { "rollout_id": 1, "raw_output": "[Answer]\n1:用 ``import x`` 来导入包和模块.\n2:用 ``from x import y`` , 其中 x 是包前...
{ "model": "gpt-5.6-sol", "candidate_id": "C1" }
{ "primary_task": "检索与排序", "secondary_task": "关键片段检索", "context_requirement": "Partial" }
{ "design_rationale": "任务限定在“导入”章节“结论”的局部范围,两个条目都同时包含具体语法和适用条件,且条目编号给出了唯一排序依据。", "solution_steps": [ "定位“导入”章节下的“结论”列表。", "保留明确写出导入语法且说明适用场景或限制的条目。", "按条目编号3、4升序排列,并逐行输出。" ], "evidence": [ { "text": "#. 在以下情况使用 ``from x import y as z``: 如果有两个模块都叫 ``y``; 如果 ``y`` 和当前模块的某个全局名称冲突; 如果 ``y`` 是长...
longqa_delivery_000004
context_000004
longqa_final_000004
context_000009
batch_01_legacy15
https://journal.psych.ac.cn/xlxb/CN/article/downloadArticleFile.do?attachType=PDF&id=16445
contexts/context_000004.txt
Chinese
学术
中文学术论文
"心理学报 2026, V ol. 58, No. 9, 1795 1812 https://doi.org/10.3724/SP.J.\n1041.2026.1795\n\nA(...TRUNCATED)
27,400
32k
主选_不低于16k
短答案题
"以下摘要句概括了本文三个研究的核心方法与关键发现。请将摘要句的每个(...TRUNCATED)
[ "[Answer]", "2.1.3", "3.1.2", "4.2" ]
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_01_legacy15","rollout_count":8,"scor(...TRUNCATED)
{ "model": "gemini-2.5-pro", "candidate_id": "C1" }
{"primary_task":"引用归因与对齐","secondary_task":"全句引用对齐","context_requirement":(...TRUNCATED)
{"design_rationale":"此题要求将一个概括全文三个核心研究的摘要句,分解为三(...TRUNCATED)
longqa_delivery_000007
context_000007
longqa_final_000007
context_000012
batch_01_legacy15
https://www.cninfo.com.cn/new/fulltextSearch?notautosubmit=&keyWord=300777%20%E4%B8%AD%E7%AE%80%E7%A7%91%E6%8A%80%202025%E5%B9%B4%E5%B9%B4%E5%BA%A6%E6%8A%A5%E5%91%8A
contexts/context_000007.txt
Chinese
金融
上市公司定期财务报告
"中简科技股份有限公司\n\n2025 年年度报告\n\n公告编号:2026-007\n\n2026 年 4 月\n(...TRUNCATED)
107,829
128k
主选_不低于16k
短答案题
"请只依据第三节“四、主营业务分析”中“4、研发投入”下的“主要研发(...TRUNCATED)
["国产 T1100 级碳纤维材料制备技术研发","航空装备用高强高模碳纤维百吨级(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_01_legacy15","rollout_count":8,"scor(...TRUNCATED)
{ "model": "claude-opus-5", "candidate_id": "C2" }
{"primary_task":"聚合与聚类","secondary_task":"目标子集聚类识别","context_requirement":(...TRUNCATED)
{"design_rationale":"在研发项目表这一局部范围内,按“项目进展”的语义状态(...TRUNCATED)
longqa_delivery_000014
context_000014
longqa_final_000014
context_000021
batch_01_legacy15
https://docs.python.org/zh-cn/3.13/library/typing.html
contexts/context_000014.txt
Chinese
软件与工程
技术与软件文档
"# `typing` --- 对类型提示的支持\n\nAdded in version 3.5.\n\n**源代码:** Lib/typing.py\(...TRUNCATED)
33,123
32k
主选_不低于16k
短答案题
"仅依据“typing.NamedTuple”小节的弃用说明,为升级到 Python 3.15 的代码审查列(...TRUNCATED)
[ "NamedTuple(\"NT\", x=int)|3.15", "NamedTuple(\"NT\") 或 NamedTuple(\"NT\", None)|3.15" ]
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_01_legacy15","rollout_count":8,"scor(...TRUNCATED)
{ "model": "gpt-5.6-sol", "candidate_id": "C2" }
{"primary_task":"版本与代码差异分析","secondary_task":"局部接口变化检测","context_r(...TRUNCATED)
{"design_rationale":"范围限定于NamedTuple局部弃用说明,要求识别两类调用接口的(...TRUNCATED)
longqa_delivery_000016
context_000016
longqa_web_000001
context_000008
batch_02_web24
https://www.federalregister.gov/documents/2026/08/10/2026-16231/9-11-response-and-biometric-entry-exit-fee-for-h-1b-and-l-1-visas
contexts/context_000016.txt
English
法律
"美国《联邦公报》发布的国土安全部最终规则,包含立法沿革、公众意见答(...TRUNCATED)
"[文档 1/1]\n标题:9-11 Response and Biometric Entry-Exit Fee for H-1B and L-1 Visas\n发布日(...TRUNCATED)
34,307
64k
主选_不低于16k
短答案题
"你正在为同一团队制作这项最终规则的“法律实施与预算交接记录”。请仅(...TRUNCATED)
["[Answer]","适用窗口=自2026-09-09起适用于相关新提交申请,并适用于不晚于2027(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_02_web24","rollout_count":8,"scoring(...TRUNCATED)
{ "model": "gpt-5.6-sol", "candidate_id": "C1" }
{"primary_task":"检索与排序","secondary_task":"全局连贯检索","context_requirement":"Full"(...TRUNCATED)
{"design_rationale":"证据跨越文首DATES、第一章立法沿革、第二章规则制定必要(...TRUNCATED)
longqa_delivery_000017
context_000017
longqa_web_000002
context_000010
batch_02_web24
https://www.rfc-editor.org/rfc/rfc9964.txt
contexts/context_000017.txt
English
软件与工程
IETF标准轨道密码算法序列化与注册规范RFC
"[文档 1/1]\n标题:ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing(...TRUNCATED)
99,054
128k
主选_不低于16k
短答案题
"某实现要为同一组ML-DSA-65测试密钥同时提供JOSE/JWK与COSE_Key支持,并生成两(...TRUNCATED)
["[Answer] {\"jose_alg\":\"ML-DSA-65\",\"cose_alg\":-49,\"jwk_kty\":\"AKP\",\"cose_kty\":7,\"cose_pu(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_02_web24","rollout_count":8,"scoring(...TRUNCATED)
{ "model": "gpt-5.6-sol", "candidate_id": "C1" }
{"primary_task":"检索与排序","secondary_task":"全局连贯检索","context_requirement":"Full"(...TRUNCATED)
{"design_rationale":"证据分散在七个远距离位置:第3节规定AKP通用必需参数、JOS(...TRUNCATED)
longqa_delivery_000018
context_000018
longqa_web_000003
context_000040
batch_02_web24
https://www.federalregister.gov/documents/2026/08/10/2026-16256/safety-zone-lake-st-clair-grosse-pointe-farms-mi
contexts/context_000018.txt
English
法律
美国《联邦公报》跨机构规章、规章执行通知与行政程序公告汇编
"[文档 1/5]\n标题:Safety Zone; Lake St. Clair; Grosse Pointe Farms, MI\n发布日期:2026-08(...TRUNCATED)
42,407
64k
主选_不低于16k
短答案题
"下列十个节点来自五份文件,但编号顺序已被打乱。请以各节点描述所指的(...TRUNCATED)
["[Answer] R(1981-08-13)→K(2025-08-04)→N(2026-05-11)→M(2026-07-17)→D(2026-(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_02_web24","rollout_count":8,"scoring(...TRUNCATED)
{ "model": "gpt-5.6-sol", "candidate_id": "C1" }
{"primary_task":"时序与结构重建","secondary_task":"全局时间线重建","context_requiremen(...TRUNCATED)
{"design_rationale":"十个节点横跨全部五份文件,证据分别位于铁路退休规则的(...TRUNCATED)
longqa_delivery_000019
context_000019
longqa_web_000004
context_000060
batch_02_web24
https://www.gov.uk/government/news/equal-pay-system-to-be-improved-as-government-launches-consultation-process
contexts/context_000019.txt
English
新闻
英国政府竞争监管机构调查新闻发布稿
"[文档 1/6]\n标题:Equal pay system to be improved as government launches consultation process\(...TRUNCATED)
8,840
16k
次选_8k至16k
短答案题
"根据文档6回答。事件定义如下:A. 微软停止向新订阅者提供不含新功能的Pe(...TRUNCATED)
["1. C与B:前者更早;A与D:文档无法确定;E与F:文档无法确定;A与E:前者(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_02_web24","rollout_count":8,"scoring(...TRUNCATED)
{ "model": "claude-sonnet-4-6", "candidate_id": "C2" }
{"primary_task":"时序与结构重建","secondary_task":"局部因果链排序","context_requiremen(...TRUNCATED)
{"design_rationale":"原题的主要缺陷不是推理难度不足,而是把部分时序错误地(...TRUNCATED)
longqa_delivery_000020
context_000020
longqa_web_000005
context_000066
batch_02_web24
http://arxiv.org/abs/2608.07450v1
contexts/context_000020.txt
English
学术
数值分析与活性Cahn–Hilliard方程研究论文
"[文档 1/1]\n标题:Numerical analysis and coarsening dynamics of the Active Cahn-Hilliard equat(...TRUNCATED)
49,833
64k
主选_不低于16k
短答案题
"论文第5节的测试概述与具体Test Case 3对活性参数的陈述并不一致。请以Test C(...TRUNCATED)
["[Answer] λ=2;表列饱和半径≈3.65;数值配置=20次独立试验,t≈5×10^5,h=2,(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_02_web24","rollout_count":8,"scoring(...TRUNCATED)
{ "model": "gpt-5.6-sol", "candidate_id": "C1" }
{"primary_task":"结构化与数值推理","secondary_task":"结构化多源一致性验证","contex(...TRUNCATED)
{"design_rationale":"题目利用论文内部的真实参数冲突作为干扰项,并要求跨越(...TRUNCATED)
longqa_delivery_000021
context_000021
longqa_web_000006
context_000068
batch_02_web24
https://www.sec.gov/Archives/edgar/data/890926/0001193125-26-340290.txt
contexts/context_000021.txt
English
金融
"美国上市保险集团Form 10-Q季度财务报告(含未经审计合并财务报表、附注及(...TRUNCATED)
"[文档 1/1]\n标题:RADIAN GROUP INC Form 10-Q\n发布日期:2026-08-07\n来源:U.S. SEC EDG(...TRUNCATED)
84,372
128k
主选_不低于16k
短答案题
"请核对Inigo收购在不同报表口径下的资金勾稽关系,并回答以下问题:①以N(...TRUNCATED)
["[Answer] 对价净额差异=79,919千美元;取得现金及受限现金=16,945+62,973=79,918千(...TRUNCATED)
{"status":"pass","original_review_status":"pass","review_method":"题目、答案、context依据与(...TRUNCATED)
{"answering_model":"qwen3.5-35b-a3b","rollout_config_id":"batch_02_web24","rollout_count":8,"scoring(...TRUNCATED)
{ "model": "gpt-5.6-sol", "candidate_id": "C1" }
{"primary_task":"结构化与数值推理","secondary_task":"结构化多源一致性验证","contex(...TRUNCATED)
{"design_rationale":"证据横跨主现金流量表、Note 3企业合并、Note 12借款、Note 5及(...TRUNCATED)
End of preview. Expand in Data Studio

Dataset Card / 数据集卡

Dataset Description / 数据集简介

This public release contains 20 curated samples selected from a 10,000-record long-context QA collection. It targets retrieval over long documents, cross-section evidence synthesis, numerical reasoning, timeline reconstruction, and structured answer evaluation. The public subset contains 15 short-answer questions and 5 multiple-choice questions, balanced across Chinese and English.

本公开版本从 10,000 条长上下文问答数据中精选 20 条,用于长文档检索、跨段证据整合、数值推理、时序重建和结构化回答评测;其中简答题 15 道、选择题 5 道,中英文各 10 道。

  • Task: long-context question answering and LLM evaluation
  • Languages: Chinese (zh) and English (en)
  • Public size: 20 QA rows, 160 associated rollout records
  • Full collection: 10,000 records
  • Context range: approximately 8k–256k length buckets
  • Source repository: GitHub

Dataset Structure and Splits / 数据结构与划分

Config Viewer split Rows File
default train 20 data/long_context_qa_curated_20.jsonl

train is used as the Viewer container split. The 20-row public release is an evaluation sample rather than a prescribed model-training partition. Context documents, rollout traces, scores, and validation artifacts remain as individual files in the repository.

Data Fields / 字段说明

Field Description
question_id, context_id Stable question and context identifiers
language, domain, document_type Language and content taxonomy
context, question, answer Long source context, prompt, and reference answer
question_type, choices Short-answer or multiple-choice type and options
evidence, answer_explanation Supporting evidence and answer rationale
context_length_tier, length_bucket Context-length grouping
rollouts, difficulty_result Independent model attempts and aggregated grading
source_url, file_path, rollout_path Provenance and repository paths

Loading / 加载方式

from datasets import load_dataset

ds = load_dataset("LianeMarilin/long-context-qa-curated-20")
print(ds["train"][0])

The JSONL is also directly readable with any line-oriented JSON parser; no archive extraction step is required.

Curation, Intended Uses, and Limitations / 筛选、用途与局限

Samples were selected for bilingual balance, answerability, evidence traceability, question-type coverage, and difficulty. Suitable uses include long-context QA evaluation, retrieval analysis, judge calibration, and error analysis. Report results separately by language, question type, domain, and context-length bucket. The public subset is small and intentionally difficult, so it should not be treated as a population-level estimate or as a complete training corpus. Source-page availability and licensing may vary; users should review each record's provenance fields before redistribution.

License and Citation / 许可与引用

Dataset metadata uses license: other: benchmark-authored annotations and scripts may be reused with attribution, while linked source material remains governed by its original terms. Cite the dataset repository and preserve record-level provenance.

@misc{long_context_qa_curated_20_2026,
  title  = {Long Context QA: Curated 20},
  author = {Liane Marilin},
  year   = {2026},
  url    = {https://huggingface.co/datasets/LianeMarilin/long-context-qa-curated-20}
}

Long Context QA Curated 20 banner

Long Context QA · Curated 20

面向长文档检索、跨段证据整合与结构化推理的精选问答数据集
A compact, inspectable benchmark for long-context question answering.

records rollouts languages validated jsonl


✨ 数据集亮点

特性 说明
🧠 真实长上下文 8k—256k长度桶,覆盖局部检索、跨章节聚合、时序重建与数值推理
🎯 精选20题 15道简答题 + 5道选择题,纳入源数据中全部有效选择题
🌏 双语均衡 中文10题、英文10题
🧪 可复核难度 每题保留8次独立rollout、原始回答、评分与裁判过程
🔗 证据可追溯 每条记录关联独立context文件、来源链接与答案证据
机器可验证 提供零依赖校验脚本,检查JSONL、文件映射、ID、题型与rollout

📊 数据概览

指标 数值
精选题目 20
简答 / 选择 15 / 5
中文 / 英文 10 / 10
独立rollout 160
整体平均正确率 14.37%
长度桶 8k · 16k · 32k · 64k · 128k · 256k
覆盖领域 软件工程、金融、学术、法律、政府事务、新闻
查看领域分布
领域 题数
软件与工程 6
金融 5
法律 3
政府事务 3
学术 2
新闻 1

🧭 评测链路

flowchart LR
    A[Long Context] --> B[Question]
    B --> C[8 Independent Rollouts]
    C --> D[Semantic Judge]
    D --> E[Per-run Scores]
    E --> F[Average Accuracy]
    A --> G[Evidence]
    G --> D

🗂️ 仓库结构

.
├── assets/                         # README视觉素材
├── configs/                        # 三批rollout配置
├── contexts/                       # 20份长上下文原文
├── data/
│   ├── long_context_qa_curated_20.jsonl
│   ├── dataset_card.json
│   └── index.csv
├── docs/
│   └── selection-report.md         # 逐题精选清单
├── rollouts/                       # 每题8轮回答、评分与裁判
├── scripts/
│   └── validate_dataset.py
└── README.md

🚀 快速开始

读取数据

import json
from pathlib import Path

path = Path("data/long_context_qa_curated_20.jsonl")
records = [json.loads(line) for line in path.read_text(encoding="utf-8").splitlines()]

print(f"records: {{len(records)}}")
print(records[0]["question"])
print(records[0]["answer"])

运行完整校验

python3 scripts/validate_dataset.py

成功时输出:

PASS · 20 records · 20 contexts · 160 rollouts

🧩 核心字段

字段 类型 含义
track_id string 稳定题目ID
context_id string 长上下文ID
context string 完整上下文文本
question_type string 短答案题、选择题或多项选择题
question string 问题及输出约束
answer array 标准答案
answer_explanation object 解题步骤与证据
review_result object 内容质量审查
difficulty_result object 8轮回答、逐轮评分与平均结果
task_labels object 主任务、次任务、上下文需求等级

🏅 精选策略

  • 排除源包中已明确标记为证据不足答案不唯一的题目。
  • 相同context只保留一道题,降低重复度。
  • 纳入源数据中全部5道有效选择题。
  • 在剩余题目中平衡语言、领域、长度桶与任务类型。
  • 保留原track_idcontext_id,便于回溯。
  • 修正000026的JSON标准答案和000037的题型元数据。

完整记录见 精选题清单

🔍 单条记录示例

{{
  "track_id": "longqa_delivery_000001",
  "context_id": "context_000001",
  "question_type": "短答案题",
  "language": "Chinese",
  "domain": "软件与工程",
  "token_length": 8488,
  "file_path": "contexts/context_000001.txt",
  "question": "...",
  "answer": ["..."],
  "review_result": {{"status": "pass"}},
  "difficulty_result": {{"rollout_count": 8}}
}}

🛠️ 已修订记录

ID 修订内容
000026 标准答案改成题干指定的[Answer] + JSON数组结构
000037 question_type由“短答案题”修正为“选择题”

📌 使用说明

完整数据集共 10,000条,本仓库从中精选 20条高质量样例,用于展示数据格式、任务类型、长上下文推理难度及完整评测流程。


Built for inspectable long-context evaluation.
Context → Evidence → Reasoning → Answer

Downloads last month
360