Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    KeyError
Message:      'feature'
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
                  config_names = get_dataset_config_names(
                      path=dataset,
                      token=hf_token,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                      path,
                  ...<4 lines>...
                      **download_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1182, in dataset_module_factory
                  raise e1 from None
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1157, in dataset_module_factory
                  ).get_module()
                    ~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 614, in get_module
                  dataset_infos = DatasetInfosDict.from_dataset_card_data(dataset_card_data)
                File "/usr/local/lib/python3.14/site-packages/datasets/info.py", line 399, in from_dataset_card_data
                  dataset_info = DatasetInfo._from_yaml_dict(dataset_card_data["dataset_info"])
                File "/usr/local/lib/python3.14/site-packages/datasets/info.py", line 317, in _from_yaml_dict
                  yaml_data["features"] = Features._from_yaml_list(yaml_data["features"])
                                          ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2230, in _from_yaml_list
                  return cls.from_dict(from_yaml_inner(yaml_data))
                         ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2075, in from_dict
                  obj = generate_from_dict(dic)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1648, in generate_from_dict
                  return {key: generate_from_dict(value) for key, value in obj.items()}
                               ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1663, in generate_from_dict
                  feature = obj.pop("feature")
              KeyError: 'feature'

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Thai Wikipedia QA v1

A Thai question-answering dataset generated from 5,355 verified Q/A pairs extracted from Thai Wikipedia articles. Each question is answered with a short extractive span directly from its source article, validated by two independent LLM passes.

Built for evaluating Retrieval-Augmented Generation (RAG) pipelines in Thai, specifically designed to avoid the provenance gap of its predecessors (MKQA-Thai mapping): every question knows its exact source article, enabling honest retrieval and generation metrics from day one.

Quick Use

from datasets import load_dataset

ds = load_dataset("siamaids/thai-wiki-qa-v1", split="train")
print(ds[0])
# {
#   'id': '1470390__1',
#   'content': 'เซนนะรินเกิดวันที่เท่าไร',
#   'label': ['23 กันยายน พ.ศ. 2544'],
#   'ranking_label': [['1470390']]
# }

Columns:

  • id — unique question identifier ({article_id}__{counter} per source article)
  • content — question (Thai)
  • label — list of gold answers (short extractive spans, usually 2-10 words)
  • ranking_label — [[article_id]] reference for retrieval evaluation (matches your corpus curids)

Suite

Stage Count
Source articles sampled 3,000
Candidate Q/A generated 5,723
Judge verified (YES) 5,355 (98.5%)
Final dataset 5,355

Answer length distribution:

  • 2-5 tokens: 72% of answers (typical extractive)
  • 5-10 tokens: 17%
  • Other: 11%

Generation method

  1. Generate: DeepSeek-V4.1F reads Thai Wikipedia articles (PyThaiNLP v4 source) and produces short extractive Q/A pairs (2-10 words).
  2. Validate: extraction check (answer must be literal substring of article text) + Thai token-count filter (≥200 tokens).
  3. Judge: KIMI-K3 independently reviews each candidate (YES/NO), eliminating hallucinations and mismatches.
  4. Build: Converts surviving candidates to this parquet format.

Articles sampled from the ThaiWiki (153k articles) subset of pythainlp/thai-wiki-dataset-v4. Filtered to ≥200 pythainlp tokens.

Provenance guarantee

Every question has exactly one verified source article (via ranking_label):

  • ✅ Retrieval evaluation works: P@1, recall@k
  • ✅ Generation metrics are fair: honest EM, F1, Recall vs. gold
  • ✅ No alignment gaps: question-answer-context triples are aligned by design

Prior Thai RAG benchmarks (e.g., MKQA-Thai mapping) had ~27% coverage because their questions came from English-first data sources — many questions had no Thai Wikipedia answer page. This dataset generates from Thai corpus directly, achieving 100% provenance.

Citation

If you use this dataset, cite:

@misc{siamaids2025thaiwikiqa,
  title={Thai Wikipedia QA v1: Verified Question-Answering Dataset},
  author={Thai RAG Benchmark Contributors},
  year={2025},
  publisher={Hugging Face},
  howpublished={\url{https://huggingface.co/datasets/siamaids/thai-wiki-qa-v1}}
}

And credit the source corpus:

@misc{phatthiyaphaibun2023pythainlp,
  title={PyThaiNLP: Thai Natural Language Processing in Python},
  author={Wannaphong Phatthiyaphaibun and Korakot Chaovavanich and Charin Polpanumas
    and Arthit Suriyawongkul and Lalita Lowphansirikul and Pattarawat Chormai},
  year={2023}
}

License

CC BY-NC-SA 4.0 — same as the underlying Thai-heritage QA framework.

Contact

Built with the BERGEN-TH (Thai-focused fork of BERGEN) framework for Thai RAG benchmarking.

Downloads last month
8