Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
pack_id: string
name: string
version: string
language: string
domain: string
scope: struct<includes: list<item: string>, excludes: list<item: string>>
  child 0, includes: list<item: string>
      child 0, item: string
  child 1, excludes: list<item: string>
      child 0, item: string
created_at: timestamp[s]
reviewed_at: null
fact_count: int64
fact_count_by_topic: struct<wiki.ja: int64>
  child 0, wiki.ja: int64
fact_count_by_layer: struct<sourced: int64, lead: int64>
  child 0, sourced: int64
  child 1, lead: int64
source_count: int64
stages: struct<stage1: struct<bytes: int64, files: list<item: string>, sha256_files: struct<stage1/catalog.j (... 181 chars omitted)
  child 0, stage1: struct<bytes: int64, files: list<item: string>, sha256_files: struct<stage1/catalog.jsonl: string, s (... 28 chars omitted)
      child 0, bytes: int64
      child 1, files: list<item: string>
          child 0, item: string
      child 2, sha256_files: struct<stage1/catalog.jsonl: string, stage1/index.sqlite: string>
          child 0, stage1/catalog.jsonl: string
          child 1, stage1/index.sqlite: string
  child 1, stage2: struct<bytes: int64, files: list<item: string>, sha256_files: struct<stage2/facts.jsonl: string, sta (... 27 chars omitted)
      child 0, bytes: int64
      child 1, files: list<item: string>
          child 0, item: string
      child 2, sha256_files: struct<stage2/facts.jsonl: string, stage2/sources.jsonl: string>
          child 0, stage2/facts.jsonl: string
          child 1, stage2/sources.jsonl: string
base_compatibility: struct<base_model_id: string, base_model_sha256: null, adapter_format: null>
  child 0, base_model_id: string
  child 1, base_model_sha256: null
  child 2, adapter_format: null
verification: struct<policy_version: string, verified_fact_ratio: double, notes: string>
  child 0, policy_version: string
  child 1, verified_fact_ratio: double
  child 2, notes: string
license: struct<facts_license: string, attribution_required: bool>
  child 0, facts_license: string
  child 1, attribution_required: bool
fts5_tokenizer: string
provenance: struct<dump_file: string, dump_last_modified: timestamp[s], pipeline: string>
  child 0, dump_file: string
  child 1, dump_last_modified: timestamp[s]
  child 2, pipeline: string
layer: string
article_count: int64
plain_bytes_total: int64
base_pack: struct<pack_id: string, version: string, note: string>
  child 0, pack_id: string
  child 1, version: string
  child 2, note: string
to
{'pack_id': Value('string'), 'name': Value('string'), 'version': Value('string'), 'language': Value('string'), 'domain': Value('string'), 'base_pack': {'pack_id': Value('string'), 'version': Value('string'), 'note': Value('string')}, 'layer': Value('string'), 'scope': {'includes': List(Value('string')), 'excludes': List(Value('string'))}, 'created_at': Value('timestamp[s]'), 'article_count': Value('int64'), 'plain_bytes_total': Value('int64'), 'stages': {'stage3': {'bytes': Value('int64'), 'files': List(Value('string')), 'sha256_files': {'stage3/locator.sqlite': Value('string'), 'stage3/shards/shard-0000.sqlite': Value('string'), 'stage3/shards/shard-0001.sqlite': Value('string'), 'stage3/shards/shard-0002.sqlite': Value('string'), 'stage3/shards/shard-0003.sqlite': Value('string'), 'stage3/shards/shard-0004.sqlite': Value('string'), 'stage3/shards/shard-0005.sqlite': Value('string'), 'stage3/shards/shard-0006.sqlite': Value('string'), 'stage3/shards/shard-0007.sqlite': Value('string'), 'stage3/shards/shard-0008.sqlite': Value('string'), 'stage3/shards/shard-0009.sqlite': Value('string'), 'stage3/shards/shard-0010.sqlite': Value('string'), 'stage3/shards/shard-0011.sqlite': Value('string'), 'stage3/shards/shard-0012.sqlite': Value('string'), 'stage3/shards/shard-0013.sqlite': Value('string'), 'stage3/shards/shard-0014.sqlite': Value('string'), 'stage3/shards/shard-0015.sqlite': Value('string'), 'stage3/shards/shard-0016.sqlite': Value('string'), 'stage3/shards/shard-0017.sqli
...
1.sqlite': Value('string'), 'stage3/shards/shard-0292.sqlite': Value('string'), 'stage3/shards/shard-0293.sqlite': Value('string'), 'stage3/shards/shard-0294.sqlite': Value('string'), 'stage3/shards/shard-0295.sqlite': Value('string'), 'stage3/shards/shard-0296.sqlite': Value('string'), 'stage3/shards/shard-0297.sqlite': Value('string'), 'stage3/shards/shard-0298.sqlite': Value('string'), 'stage3/shards/shard-0299.sqlite': Value('string'), 'stage3/shards/shard-0300.sqlite': Value('string'), 'stage3/shards/shard-0301.sqlite': Value('string'), 'stage3/shards/shard-0302.sqlite': Value('string'), 'stage3/shards/shard-0303.sqlite': Value('string'), 'stage3/shards/shard-0304.sqlite': Value('string'), 'stage3/shards/shard-0305.sqlite': Value('string'), 'stage3/shards/shard-0306.sqlite': Value('string'), 'stage3/shards/shard-0307.sqlite': Value('string'), 'stage3/shards/shard-0308.sqlite': Value('string'), 'stage3/shards/shard-0309.sqlite': Value('string'), 'stage3/shards/shard-0310.sqlite': Value('string'), 'stage3/shards/shard-0311.sqlite': Value('string'), 'stage3/shards/shard-0312.sqlite': Value('string'), 'stage3/title_shortidx.sqlite': Value('string')}}}, 'verification': {'policy_version': Value('string'), 'verified_article_ratio': Value('float64'), 'notes': Value('string')}, 'license': {'facts_license': Value('string'), 'attribution_required': Value('bool')}, 'provenance': {'dump_file': Value('string'), 'dump_last_modified': Value('timestamp[s]'), 'pipeline': Value('string')}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              pack_id: string
              name: string
              version: string
              language: string
              domain: string
              scope: struct<includes: list<item: string>, excludes: list<item: string>>
                child 0, includes: list<item: string>
                    child 0, item: string
                child 1, excludes: list<item: string>
                    child 0, item: string
              created_at: timestamp[s]
              reviewed_at: null
              fact_count: int64
              fact_count_by_topic: struct<wiki.ja: int64>
                child 0, wiki.ja: int64
              fact_count_by_layer: struct<sourced: int64, lead: int64>
                child 0, sourced: int64
                child 1, lead: int64
              source_count: int64
              stages: struct<stage1: struct<bytes: int64, files: list<item: string>, sha256_files: struct<stage1/catalog.j (... 181 chars omitted)
                child 0, stage1: struct<bytes: int64, files: list<item: string>, sha256_files: struct<stage1/catalog.jsonl: string, s (... 28 chars omitted)
                    child 0, bytes: int64
                    child 1, files: list<item: string>
                        child 0, item: string
                    child 2, sha256_files: struct<stage1/catalog.jsonl: string, stage1/index.sqlite: string>
                        child 0, stage1/catalog.jsonl: string
                        child 1, stage1/index.sqlite: string
                child 1, stage2: struct<bytes: int64, files: list<item: string>, sha256_files: struct<stage2/facts.jsonl: string, sta (... 27 chars omitted)
                    child 0, bytes: int64
                    child 1, files: list<item: string>
                        child 0, item: string
                    child 2, sha256_files: struct<stage2/facts.jsonl: string, stage2/sources.jsonl: string>
                        child 0, stage2/facts.jsonl: string
                        child 1, stage2/sources.jsonl: string
              base_compatibility: struct<base_model_id: string, base_model_sha256: null, adapter_format: null>
                child 0, base_model_id: string
                child 1, base_model_sha256: null
                child 2, adapter_format: null
              verification: struct<policy_version: string, verified_fact_ratio: double, notes: string>
                child 0, policy_version: string
                child 1, verified_fact_ratio: double
                child 2, notes: string
              license: struct<facts_license: string, attribution_required: bool>
                child 0, facts_license: string
                child 1, attribution_required: bool
              fts5_tokenizer: string
              provenance: struct<dump_file: string, dump_last_modified: timestamp[s], pipeline: string>
                child 0, dump_file: string
                child 1, dump_last_modified: timestamp[s]
                child 2, pipeline: string
              layer: string
              article_count: int64
              plain_bytes_total: int64
              base_pack: struct<pack_id: string, version: string, note: string>
                child 0, pack_id: string
                child 1, version: string
                child 2, note: string
              to
              {'pack_id': Value('string'), 'name': Value('string'), 'version': Value('string'), 'language': Value('string'), 'domain': Value('string'), 'base_pack': {'pack_id': Value('string'), 'version': Value('string'), 'note': Value('string')}, 'layer': Value('string'), 'scope': {'includes': List(Value('string')), 'excludes': List(Value('string'))}, 'created_at': Value('timestamp[s]'), 'article_count': Value('int64'), 'plain_bytes_total': Value('int64'), 'stages': {'stage3': {'bytes': Value('int64'), 'files': List(Value('string')), 'sha256_files': {'stage3/locator.sqlite': Value('string'), 'stage3/shards/shard-0000.sqlite': Value('string'), 'stage3/shards/shard-0001.sqlite': Value('string'), 'stage3/shards/shard-0002.sqlite': Value('string'), 'stage3/shards/shard-0003.sqlite': Value('string'), 'stage3/shards/shard-0004.sqlite': Value('string'), 'stage3/shards/shard-0005.sqlite': Value('string'), 'stage3/shards/shard-0006.sqlite': Value('string'), 'stage3/shards/shard-0007.sqlite': Value('string'), 'stage3/shards/shard-0008.sqlite': Value('string'), 'stage3/shards/shard-0009.sqlite': Value('string'), 'stage3/shards/shard-0010.sqlite': Value('string'), 'stage3/shards/shard-0011.sqlite': Value('string'), 'stage3/shards/shard-0012.sqlite': Value('string'), 'stage3/shards/shard-0013.sqlite': Value('string'), 'stage3/shards/shard-0014.sqlite': Value('string'), 'stage3/shards/shard-0015.sqlite': Value('string'), 'stage3/shards/shard-0016.sqlite': Value('string'), 'stage3/shards/shard-0017.sqli
              ...
              1.sqlite': Value('string'), 'stage3/shards/shard-0292.sqlite': Value('string'), 'stage3/shards/shard-0293.sqlite': Value('string'), 'stage3/shards/shard-0294.sqlite': Value('string'), 'stage3/shards/shard-0295.sqlite': Value('string'), 'stage3/shards/shard-0296.sqlite': Value('string'), 'stage3/shards/shard-0297.sqlite': Value('string'), 'stage3/shards/shard-0298.sqlite': Value('string'), 'stage3/shards/shard-0299.sqlite': Value('string'), 'stage3/shards/shard-0300.sqlite': Value('string'), 'stage3/shards/shard-0301.sqlite': Value('string'), 'stage3/shards/shard-0302.sqlite': Value('string'), 'stage3/shards/shard-0303.sqlite': Value('string'), 'stage3/shards/shard-0304.sqlite': Value('string'), 'stage3/shards/shard-0305.sqlite': Value('string'), 'stage3/shards/shard-0306.sqlite': Value('string'), 'stage3/shards/shard-0307.sqlite': Value('string'), 'stage3/shards/shard-0308.sqlite': Value('string'), 'stage3/shards/shard-0309.sqlite': Value('string'), 'stage3/shards/shard-0310.sqlite': Value('string'), 'stage3/shards/shard-0311.sqlite': Value('string'), 'stage3/shards/shard-0312.sqlite': Value('string'), 'stage3/title_shortidx.sqlite': Value('string')}}}, 'verification': {'policy_version': Value('string'), 'verified_article_ratio': Value('float64'), 'notes': Value('string')}, 'license': {'facts_license': Value('string'), 'attribution_required': Value('bool')}, 'provenance': {'dump_file': Value('string'), 'dump_last_modified': Value('timestamp[s]'), 'pipeline': Value('string')}}
              because column names don't match

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.

日本語版Wikipedia知識パック(jp.wiki.server v2)

日本語版Wikipediaのダンプ(2026-11-01時点、全1,525,534記事)から機械的に構築した、 LLMへ外付けするための知識パックです。モデルの重みは含みません(モデル非依存)。

A knowledge pack built from the Japanese Wikipedia dump (2026-11-01, 1,525,534 articles): a fact layer of citation-bearing sentences plus article lead sentences, with sources, an FTS5 search index, and a full-text layer of all articles. All facts are unverified against external sources (see Limitations). License: CC BY-SA 4.0.

公開状況

  • 事実層(v2)と全文層のファイルは全てアップロード済みです(2026-12-01)。
  • 全文層は独立コンポーネント jp.wiki.server.fulltext v1.0.0 として、 このリポジトリの fulltext/ 以下に格納しています。

構成

パック全体は manifest.json(件数・容量・sha256・ライセンス・検証方針の宣言)を正本とし、 以下のファイルで構成されます。事実層 v2 の合計は 9,964,997,388 バイト(約10.0GB、 stage1+stage2。manifest.json と署名ファイルを含む全ファイルでは 9,965,000,718 バイト)、 全文層の合計は 4,516,742,615 バイト(約4.52GB)です。

ファイル 内容 容量(バイト)
manifest.json パックの宣言(pack_id jp.wiki.server、version 2.0.0) 2,985
stage2/facts.jsonl 事実層の正本(下記スキーマ) 3,038,838,779
stage2/sources.jsonl 出典層(記事ごとの版ID・URL) 370,212,089
stage1/catalog.jsonl 索引層カタログ(事実の要約・キーワード・タイトル) 2,089,516,568
stage1/index.sqlite FTS5(trigram)全文検索索引(記事タイトル列つき) 4,466,429,952
signatures/files.sha256 上記ファイルの sha256 345
fulltext/manifest.json 全文層の宣言(pack_id jp.wiki.server.fulltext、version 1.0.0) 48,462
fulltext/stage3/locator.sqlite 全文層のタイトル索引(記事メタ+タイトル trigram FTS) 233,353,216
fulltext/stage3/title_shortidx.sqlite タイトル短クエリ補助索引(タイトルの1〜2文字部分文字列→page_id の転置索引) 120,336,384
fulltext/stage3/shards/shard-0000.sqlite 〜 shard-0312.sqlite 全文層の実体(313シャード、記事単位で zlib 圧縮した全文) 4,162,973,696(313ファイル合計)
fulltext/signatures/files.sha256 全文層ファイルの sha256 30,857

事実層(stage2/facts.jsonl)

1行1事実の JSONL。全 5,005,142 件、2つの層に分かれます。

  • sourced 層:3,716,542 件 出典(脚注)つきの文だけを抽出した層。記事あたり最大10件、品質ゲート (完結した文であること、清掃済み本文への逐語実在チェック)を通過した文のみ収録。
  • lead 層:1,288,600 件 各記事のリード部(冒頭)の文を最大3件/記事で収録した別層。 定義・基本事実を補うための層で、出典脚注のない文を含みます。 試作段階の人手分類(無作為100件)では約12%が記事メタ文・断片などのノイズでした。

スキーマ(実例は先頭行):

{"fact_id": "jawiki-5.01", "topic": "wiki.ja", "heading": "語源",
"statement": "(事実の文)", "explanation": "", "conditions": [], "caveats": [],
"examples": [], "keywords": ["…"], "aliases": [], "source_refs": ["jawiki-5"],
"article_title": "アンパサンド", "layer": "sourced",
"verification": {"status": "unverified", "method": [], "reviewed_at": null}}

出典層(stage2/sources.jsonl)

事実の source_refs が指す出典の実体。記事ごとに、取得した版のIDと日時、URLを保持します。

{"source_id": "jawiki-5", "name": "日本語版Wikipedia『アンパサンド』",
"role": "rev111519275(2026-10-25T18:14:51Z)の版から出典つき文を抽出",
"url": "https://ja.wikipedia.org/wiki/アンパサンド"}

索引層(stage1/)

catalog.jsonl は事実ごとの要約・キーワード・記事タイトル・層を持つカタログで、 index.sqlite はそれに対する SQLite FTS5(trigram)索引です。 事実層の検索に使います(検索方式自体は利用側の実装に委ねられます)。

全文層(fulltext/)

全1,525,534記事の全文テキストを含む層です。事実層とは別の独立コンポーネント (pack_id jp.wiki.server.fulltext、version 1.0.0、fulltext/manifest.json が正本)で、 事実層 v2 を base_pack として参照します(事実層のファイルとは分離して格納)。

  • 収録範囲は事実層と同一選別(名前空間0・非リダイレクト)で、記事の集合 (source_id)は事実層の stage2/sources.jsonl と完全一致します。
  • 全文は清掃済みプレーンテキスト(合計 8,318,340,832 バイト)を記事単位で zlib 圧縮し(圧縮後合計 3,405,961,115 バイト)、SQLite シャード313個 (fulltext/stage3/shards/)に格納しています。表とテンプレートの展開内容は含みません。
  • fulltext/stage3/locator.sqlite は記事メタとタイトル索引(trigram FTS)です。
  • fulltext/stage3/title_shortidx.sqlite は短いタイトル検索用の補助索引 (全タイトルの1〜2文字の部分文字列→page_id の転置索引)です。trigram は 仕様上3文字未満のクエリが引けないため、1〜2文字のクエリはこの補助索引側で 引く想定です(検証済み:「パリ」1,434件・「東京」5,460件・「水」12,458件、 いずれも先頭は完全一致タイトル。全件走査との件数一致も確認)。
  • 検証:ランダムに選んだ20記事について、元ダンプからの再抽出とバイト単位で 一致することを確認しました。署名(fulltext/signatures/files.sha256)は 315ファイル分を収録し、実ファイルとの一致を確認済みです。
  • 位置づけは「読むための素材」であり、全件 unverified です。出典つきの基本文が 事実層に入らない穴(例:「フランスの首都はパリ」級の文)を補うための層で、 事実の主張に使う場合は sourced 層で裏付けることを想定しています。
  • 既知の制限:タイトル索引(trigram)は仕様上2文字以下のクエリでは部分一致が 0件になります。これについては補助索引(title_shortidx.sqlite)を用意し、 1〜2文字のクエリはそちらで引くことで対応しています(3文字以上は trigram 側)。 どちらの経路でも、記事自体はタイトル完全一致や page_id で取得できます。

出典とライセンス

  • 内容の出典は 日本語版Wikipedia(https://ja.wikipedia.org)およびその投稿者です。 事実ごとに、出典記事・版ID・URLを stage2/sources.jsonl に保持しています。
  • Wikipediaの文章は CC BY-SA 4.0(表示-継承)で提供されています。 本データセットも同一ライセンス CC BY-SA 4.0 で公開します。 利用時は、日本語版Wikipediaとその投稿者への帰属表示と、 同一ライセンスでの共有(継承)が必要です。
  • 元ダンプ:jawiki-latest-pages-articles-multistream.xml.bz2 (2026-11-01時点、4,903,627,624 バイト、取得時に md5 照合済み)。

制限(正直な明記)

  • 未照合:このデータセットに含まれる事実は全て verification.status = "unverified" です (manifest の verified_fact_ratio: 0.0 のとおり、パック内で照合済みの事実は 0件 です)。 Wikidata等との照合は別工程として進めていますが、その結果はこのデータセットには 含まれていません(検証済みとは主張しません)。 sourced 層は「出典つきの文を逐語のまま収録した」ことは保証しますが、 内容の正しさ自体は出典元の記述に依存します。
  • 時点:データは 2026-11-01 時点のダンプに基づきます。以後の編集は反映されません。
  • lead 層の位置づけ:lead 層は出典脚注のない文を含む別層です。 sourced 層と混同せず、回答生成等では sourced を優先し、lead は補完に使うことを想定しています。
  • 収録範囲:対象は通常記事(名前空間0・非リダイレクト)のみで、 リダイレクトや記事以外のページは含みません。sourced 層は出典つき文のみが対象のため、 出典のない基本的な文は sourced 層には入りません(lead 層と全文層がその補完です)。
  • 索引の状態:v2の索引は当初増分マージで構築しましたが、2026-12-01 に 再構築した索引へ差し替え済みです(署名検証OK、検索の当たりは差し替え前と 完全一致=後退なし。同一条件のスポットチェックで検索速度は約13倍に改善)。
  • 全文層タイトル索引の制限:trigram 方式のため2文字以下のクエリは trigram 側では部分一致が効きませんが、同梱の補助索引 (fulltext/stage3/title_shortidx.sqlite)で1〜2文字クエリに対応しています (詳細は「全文層」の節)。

参考測定値(構築側の内部ベンチ)

構築側で凍結した実質問ベンチ150問(生成130問+手書き20問)に対する検索の当たり (combined@5:正解の事実か答えの文字列が上位5件に入る率)は、事実層 v2 で全体 93.3% (生成問題 98.5%、手書き問題 60.0%)でした。自己確認クエリ200件での Recall@5 は 74.0% です。 これは検索実装(候補生成+順位付け)込みの数字であり、パック単体の保証値ではありません。

由来

このパックは、自作AI「Cube」のサーバー側モデル(Ultra)へ知識を外付けするために 構築されました(設計思想:知識はモデルの重みではなく外付けパックに置く)。 構築パイプラインと測定の記録は、構築側の報告書(FULL_BUILD_REPORT.md / OVERNIGHT_REPORT.md)に残しています。

Downloads last month
59