Dataset Viewer
Auto-converted to Parquet Duplicate
question
stringlengths
128k
128k
answer
stringlengths
2
8
needle
stringlengths
40
110
context_chars
int64
128k
128k
depth_percent
int64
0
100
source_article
stringlengths
7
24
source_url
stringlengths
61
78
haystack_articles
int64
18
36
"以下是一份關於台灣的長篇文件。\n\n<document>\n台灣鐵道史\n30 秒概覽: 1891 (...TRUNCATED)
57%
"「1864 年至 1894 年,淡水出口的貿易總額佔了全臺灣的 57%,出口大宗為茶、(...TRUNCATED)
128,053
0
Geography/新北市
https://github.com/frank890417/taiwan-md/blob/main/Geography/新北市.md
29
"以下是一份關於台灣的長篇文件。\n\n<document>\n30 秒概覽: 台灣皮影戲(俗(...TRUNCATED)
120億
"2020年,台積電宣布在亞利桑那州投資120億美元建設晶圓廠,作為其全球化(...TRUNCATED)
128,047
0
People/劉德音
https://github.com/frank890417/taiwan-md/blob/main/People/劉德音.md
25
"以下是一份關於台灣的長篇文件。\n\n<document>\n30 秒概覽:\n蘋果麵包是台灣(...TRUNCATED)
5 人
"樂團 2015 年重組後加入的 5 人編制,把管樂、合成器、薩克斯風都收進了原(...TRUNCATED)
128,056
0
Music/落日飛車
https://github.com/frank890417/taiwan-md/blob/main/Music/落日飛車.md
29
"以下是一份關於台灣的長篇文件。\n\n<document>\n四四南村:兵工廠的眷村,(...TRUNCATED)
770 億
"蘇巧慧上任後,不僅積極協調行政院核定總經費 770 億元,更在 2025 年底追(...TRUNCATED)
128,094
0
People/蘇巧慧
https://github.com/frank890417/taiwan-md/blob/main/People/蘇巧慧.md
30
"以下是一份關於台灣的長篇文件。\n\n<document>\n謝德慶:把 14 年非法身分活(...TRUNCATED)
5家
"2023年,蔡阿嘎因「日本5家連鎖店超難吃」影片引發外交與文化爭議,最終(...TRUNCATED)
128,045
0
Culture/台灣YouTuber產業與文化
https://github.com/frank890417/taiwan-md/blob/main/Culture/台灣YouTuber產業與文化.md
30
"以下是一份關於台灣的長篇文件。\n\n<document>\n開場:一個8分鐘的救命決定\(...TRUNCATED)
57.13%
"蔡英文在 2020 年大選取得 57.13% 選票,從地方選舉挫敗走到總統直選最高票(...TRUNCATED)
128,047
0
People/蔡英文
https://github.com/frank890417/taiwan-md/blob/main/People/蔡英文.md
33
"以下是一份關於台灣的長篇文件。\n\n<document>\n粽子\n30 秒概覽\n\n1920 年代日(...TRUNCATED)
15 萬
"1920 年代日治時期建設嘉南大圳,灌溉面積達 15 萬公頃,並推行「三年輪作(...TRUNCATED)
128,071
0
Geography/台灣農業地景與產業分布
https://github.com/frank890417/taiwan-md/blob/main/Geography/台灣農業地景與產業分布.md
33
"以下是一份關於台灣的長篇文件。\n\n<document>\n端午節:古人用來對抗死亡(...TRUNCATED)
18.18 公尺
"1934 年日月潭武界壩升起 18.18 公尺水位、淹掉邵族聖地拉魯島;1957 年中興(...TRUNCATED)
128,084
0
Geography/南投縣
https://github.com/frank890417/taiwan-md/blob/main/Geography/南投縣.md
25
"以下是一份關於台灣的長篇文件。\n\n<document>\n張艾嘉:嘉義出發,《童年(...TRUNCATED)
0.2 公尺
"日本 2020 年施行的健康增進法,早就對密閉喫煙室訂出出入口風速每秒 0.2 (...TRUNCATED)
128,071
0
Society/台北吸菸室
https://github.com/frank890417/taiwan-md/blob/main/Society/台北吸菸室.md
29
"以下是一份關於台灣的長篇文件。\n\n<document>\n30 秒概覽: 2014 年 3 月 17 日(...TRUNCATED)
37.7%
"然而 2026 年的今天,颱風來了,批發零售的員工還是在同一個颱風裡出門,(...TRUNCATED)
128,080
0
Society/颱風假
https://github.com/frank890417/taiwan-md/blob/main/Society/颱風假.md
30
End of preview. Expand in Data Studio

tw-niah-bench

Needle-in-a-haystack for Traditional Chinese, built from Taiwan.md.

420 cases across six context lengths (4k to 128k characters) and seven insertion depths (0% to 100%), ten needles per cell, drawn from 189 distinct source articles.

Part of OpenTWBench.

Why not the standard set

Standard NIAH uses English essays and an invented needle. Two things change here, and both matter.

The haystack is genuine Traditional Chinese prose. Long-context behaviour is not language-neutral: tokenisers split CJK very differently, and a model that retrieves reliably across 100k English tokens may not across the same number of Chinese characters. Almost nothing published measures this.

The needle is a real fact from a real article, not an invented sentence. An invented needle can only test retrieval. A real one also fails informatively: a model answering from its own knowledge of Taiwan rather than from the document is a different failure from one that cannot find the sentence.

Fields

Field Description
question The full prompt: the document, then the question
answer The figure to return, with its unit
needle The sentence inserted into the haystack
context_chars Length of the assembled document
depth_percent Where the needle sits, 0 = start, 100 = end
source_article Article the needle came from
source_url Link to that article
haystack_articles How many articles the haystack was assembled from

Correctness is a construction invariant

No model is used to build this, so there is nothing generated to validate — only the construction, which is deterministic. Every case satisfies all of:

  • the answer appears exactly once in the whole document, inside the needle
  • the needle is present verbatim
  • the answer does not appear in the question
  • the needle contains exactly one number besides the year

That last rule took three attempts, and each earlier version passed the other checks while producing wrong items:

  • 近一年均價約 96 萬一坪…2025 年 11 月有一筆成交來到每坪 105 萬 was keyed to 96 萬. The question asks for the figure given for 2025, which is 105 萬.
  • 2026 年 5 月 2 日,編輯部以「30 年、30 人、30 個觀點」之名刊出引言頁 matched the number pattern only once, because 年 and 個 are not units — and offers a reader five digit runs to choose between.

Checking afterwards cannot catch either: the keyed answer still appears exactly once in the document, so the invariant holds on an item that is wrong. Counting every digit run at selection time makes the ambiguity impossible.

Licence

CC BY-SA 4.0, inherited from Taiwan.md, which is ShareAlike.

Source: Taiwan.md, CC BY-SA 4.0.

Downloads last month
39