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
article_count: int64
builder_schema_version: string
category: string
chunk_count: int64
files: struct<content.sqlite: struct<sha256: string, size_bytes: int64>, vectors.usearch: struct<sha256: st (... 25 chars omitted)
  child 0, content.sqlite: struct<sha256: string, size_bytes: int64>
      child 0, sha256: string
      child 1, size_bytes: int64
  child 1, vectors.usearch: struct<sha256: string, size_bytes: int64>
      child 0, sha256: string
      child 1, size_bytes: int64
license_id: string
license_url: string
mirrors: list<item: null>
  child 0, item: null
non_affiliation_notice: string
pack_id: string
quant: string
requires_medical_disclaimer: bool
schema_version: int64
snapshot_date: timestamp[s]
source: string
generated_at: timestamp[s]
models: list<item: struct<default_temp: double, default_top_k: int64, default_top_p: double, display_name: s (... 476 chars omitted)
  child 0, item: struct<default_temp: double, default_top_k: int64, default_top_p: double, display_name: string, effe (... 464 chars omitted)
      child 0, default_temp: double
      child 1, default_top_k: int64
      child 2, default_top_p: double
      child 3, display_name: string
      child 4, effective_params_label: string
      child 5, file_name: string
      child 6, generation: string
      child 7, min_ram_gb: int64
      child 8, mirrors: list<item: string>
          child 0, item: string
      child 9, mmproj_file_name: string
      child 10, mmproj_mirrors: list<item: string>
          child 0, item: string
      child 11, mmproj_sha256: string
      child 12, mmproj_size_bytes: int64
      child 13, model_id: string
      child 14, provider: string
      child 15, recommended: bool
      child 16, required_sku: string
      child 17, sha256: string
      child 18, size_bytes: int64
      child 19, supports_audio: bool
      child 20, supports_thinking: bool
      child 21, supports_vision: bool
      child 22, total_params_label: string
      child 23, vision_required_sku: string
packs: list<item: struct<article_count: int64, base_mirrors: list<item: string>, category_id: string, descr (... 266 chars omitted)
  child 0, item: struct<article_count: int64, base_mirrors: list<item: string>, category_id: string, description: str (... 254 chars omitted)
      child 0, article_count: int64
      child 1, base_mirrors: list<item: string>
          child 0, item: string
      child 2, category_id: string
      child 3, description: string
      child 4, license_id: string
      child 5, license_url: string
      child 6, manifest_mirrors: list<item: string>
          child 0, item: string
      child 7, pack_id: string
      child 8, requires_medical_disclaimer: bool
      child 9, signature_mirrors: list<item: string>
          child 0, item: string
      child 10, snapshot_date: timestamp[s]
      child 11, source: string
      child 12, title: string
      child 13, total_bytes: int64
runtime_assets: list<item: null>
  child 0, item: null
to
{'generated_at': Value('timestamp[s]'), 'models': List({'default_temp': Value('float64'), 'default_top_k': Value('int64'), 'default_top_p': Value('float64'), 'display_name': Value('string'), 'effective_params_label': Value('string'), 'file_name': Value('string'), 'generation': Value('string'), 'min_ram_gb': Value('int64'), 'mirrors': List(Value('string')), 'mmproj_file_name': Value('string'), 'mmproj_mirrors': List(Value('string')), 'mmproj_sha256': Value('string'), 'mmproj_size_bytes': Value('int64'), 'model_id': Value('string'), 'provider': Value('string'), 'recommended': Value('bool'), 'required_sku': Value('string'), 'sha256': Value('string'), 'size_bytes': Value('int64'), 'supports_audio': Value('bool'), 'supports_thinking': Value('bool'), 'supports_vision': Value('bool'), 'total_params_label': Value('string'), 'vision_required_sku': Value('string')}), 'non_affiliation_notice': Value('string'), 'packs': List({'article_count': Value('int64'), 'base_mirrors': List(Value('string')), 'category_id': Value('string'), 'description': Value('string'), 'license_id': Value('string'), 'license_url': Value('string'), 'manifest_mirrors': List(Value('string')), 'pack_id': Value('string'), 'requires_medical_disclaimer': Value('bool'), 'signature_mirrors': List(Value('string')), 'snapshot_date': Value('timestamp[s]'), 'source': Value('string'), 'title': Value('string'), 'total_bytes': Value('int64')}), 'runtime_assets': List(Value('null')), 'schema_version': Value('int64')}
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
              article_count: int64
              builder_schema_version: string
              category: string
              chunk_count: int64
              files: struct<content.sqlite: struct<sha256: string, size_bytes: int64>, vectors.usearch: struct<sha256: st (... 25 chars omitted)
                child 0, content.sqlite: struct<sha256: string, size_bytes: int64>
                    child 0, sha256: string
                    child 1, size_bytes: int64
                child 1, vectors.usearch: struct<sha256: string, size_bytes: int64>
                    child 0, sha256: string
                    child 1, size_bytes: int64
              license_id: string
              license_url: string
              mirrors: list<item: null>
                child 0, item: null
              non_affiliation_notice: string
              pack_id: string
              quant: string
              requires_medical_disclaimer: bool
              schema_version: int64
              snapshot_date: timestamp[s]
              source: string
              generated_at: timestamp[s]
              models: list<item: struct<default_temp: double, default_top_k: int64, default_top_p: double, display_name: s (... 476 chars omitted)
                child 0, item: struct<default_temp: double, default_top_k: int64, default_top_p: double, display_name: string, effe (... 464 chars omitted)
                    child 0, default_temp: double
                    child 1, default_top_k: int64
                    child 2, default_top_p: double
                    child 3, display_name: string
                    child 4, effective_params_label: string
                    child 5, file_name: string
                    child 6, generation: string
                    child 7, min_ram_gb: int64
                    child 8, mirrors: list<item: string>
                        child 0, item: string
                    child 9, mmproj_file_name: string
                    child 10, mmproj_mirrors: list<item: string>
                        child 0, item: string
                    child 11, mmproj_sha256: string
                    child 12, mmproj_size_bytes: int64
                    child 13, model_id: string
                    child 14, provider: string
                    child 15, recommended: bool
                    child 16, required_sku: string
                    child 17, sha256: string
                    child 18, size_bytes: int64
                    child 19, supports_audio: bool
                    child 20, supports_thinking: bool
                    child 21, supports_vision: bool
                    child 22, total_params_label: string
                    child 23, vision_required_sku: string
              packs: list<item: struct<article_count: int64, base_mirrors: list<item: string>, category_id: string, descr (... 266 chars omitted)
                child 0, item: struct<article_count: int64, base_mirrors: list<item: string>, category_id: string, description: str (... 254 chars omitted)
                    child 0, article_count: int64
                    child 1, base_mirrors: list<item: string>
                        child 0, item: string
                    child 2, category_id: string
                    child 3, description: string
                    child 4, license_id: string
                    child 5, license_url: string
                    child 6, manifest_mirrors: list<item: string>
                        child 0, item: string
                    child 7, pack_id: string
                    child 8, requires_medical_disclaimer: bool
                    child 9, signature_mirrors: list<item: string>
                        child 0, item: string
                    child 10, snapshot_date: timestamp[s]
                    child 11, source: string
                    child 12, title: string
                    child 13, total_bytes: int64
              runtime_assets: list<item: null>
                child 0, item: null
              to
              {'generated_at': Value('timestamp[s]'), 'models': List({'default_temp': Value('float64'), 'default_top_k': Value('int64'), 'default_top_p': Value('float64'), 'display_name': Value('string'), 'effective_params_label': Value('string'), 'file_name': Value('string'), 'generation': Value('string'), 'min_ram_gb': Value('int64'), 'mirrors': List(Value('string')), 'mmproj_file_name': Value('string'), 'mmproj_mirrors': List(Value('string')), 'mmproj_sha256': Value('string'), 'mmproj_size_bytes': Value('int64'), 'model_id': Value('string'), 'provider': Value('string'), 'recommended': Value('bool'), 'required_sku': Value('string'), 'sha256': Value('string'), 'size_bytes': Value('int64'), 'supports_audio': Value('bool'), 'supports_thinking': Value('bool'), 'supports_vision': Value('bool'), 'total_params_label': Value('string'), 'vision_required_sku': Value('string')}), 'non_affiliation_notice': Value('string'), 'packs': List({'article_count': Value('int64'), 'base_mirrors': List(Value('string')), 'category_id': Value('string'), 'description': Value('string'), 'license_id': Value('string'), 'license_url': Value('string'), 'manifest_mirrors': List(Value('string')), 'pack_id': Value('string'), 'requires_medical_disclaimer': Value('bool'), 'signature_mirrors': List(Value('string')), 'snapshot_date': Value('timestamp[s]'), 'source': Value('string'), 'title': Value('string'), 'total_bytes': Value('int64')}), 'runtime_assets': List(Value('null')), 'schema_version': Value('int64')}
              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.

Citari Offline Knowledge Catalog

Public mirror and Ed25519-signed catalog for Citari offline knowledge packs (the Citari Android app is coming soon!).

Citari packs are text-only, unencrypted, and openly inspectable bundles built from commercially permissive open-knowledge sources (starting with Wikimedia projects under CC BY-SA 4.0). Every pack is cryptographically signed offline so the Citari Android app—and anyone using these files independently—can verify integrity before opening them.

Mirrors (Active & Planned)

Priority Mirror Status Location
1 (Planned) Cloudflare R2 CDN Planned post-launch Dedicated global CDN primary mirror
1 (Current) Hugging Face Datasets Active (Primary) M4VRX/citari-catalog
2 (Current) GitHub Releases Active (Backup, <= 2 GiB/file) M4VRX/citari-catalog/releases

Philosophy & Open Access

  • Zero DRM / Open Format: Every pack is a standard SQLite 3 database (content.sqlite) paired with a USearch HNSW vector index (vectors.usearch). You do not need the Citari app to read, query, or redistribute these packs under their upstream licenses.
  • Text-Only & Compact: Articles are stored as clean UTF-8 Markdown compressed with a per-pack trained Zstd dictionary (pack_blobs), keeping downloads fast and storage lightweight on mobile devices.
  • Commercial-Safe Sanitization: Every build runs a fail-closed license gate and Pass 1 sanitizer that strips non-free/Fair Use blocks (<poem>, <score>, lengthy verbatim quotes) and rejects articles flagged for copyright issues before indexing.
  • Per-Article Attribution: Every article preserves its upstream source_url and revision_id inside content.sqlite, along with license_id, license_url, snapshot_date, and modifications_notice in pack_meta.

Currently Published Packs

The live signed catalog index (catalog.json + catalog.sig) lives at the root of this dataset repository.

Pack ID Title Upstream Source Articles Chunks Total Size License Path in Dataset
en-wiki-top50k Simple English Encyclopedia Simple English Wikipedia 36,937 132,704 310.9 MB CC BY-SA 4.0 packs/en-wiki-top50k/
en-wikibooks-guides Wikibooks Complete Library English Wikibooks 73,615 555,723 1.47 GB CC BY-SA 4.0 packs/en-wikibooks-guides/
en-wikiversity-cs Wikiversity Complete Courses English Wikiversity 37,810 320,468 794.4 MB CC BY-SA 4.0 packs/en-wikiversity-cs/

Future Packs: Additional open-licensed packs (such as Wikivoyage, Appropedia, sharded English Wikipedia, MDN Web Docs, and U.S. Federal Public Domain manuals) will be added under packs/<pack_id>/ and registered in catalog.json over time. Always check a pack's manifest.json and pack_meta table for its exact license_id, license_url, snapshot_date, and disclaimer flags.


Repository Layout (Hugging Face Dataset Tree)

M4VRX/citari-catalog/
├── catalog.json                     # Signed index of all live packs and model metadata
├── catalog.sig                      # 64-byte detached Ed25519 signature over catalog.json
├── LICENSE                          # Multi-source licensing, attribution & non-affiliation terms
├── README.md                        # This Dataset Card
└── packs/
    └── <pack_id>/
        ├── content.sqlite           # Read-only SQLite 3 DB (Zstd articles, UTF-16 chunks, FTS5, links)
        ├── vectors.usearch          # USearch HNSW index (BAAI/bge-small-en-v1.5, 384-dim)
        ├── manifest.json            # Canonical metadata, file sizes & SHA-256 digests
        └── manifest.sig             # 64-byte detached Ed25519 signature over manifest.json

How to Use These Files

1. In the Citari Android App (Coming Soon)

Once Citari launches on Android, you won't need to download anything manually. The app automatically fetches catalog.json and catalog.sig, verifies the Ed25519 signature against the pinned public key, and downloads packs from the fastest available mirror with automatic SHA-256 verification.

2. Standalone Download (Hugging Face Hub)

Download any pack using the Hugging Face CLI (pip install huggingface_hub):

hf download M4VRX/citari-catalog --repo-type dataset --include "packs/en-wiki-top50k/*" --local-dir ./citari-data

Or fetch individual files directly via https://huggingface.co/datasets/M4VRX/citari-catalog/resolve/main/packs/<pack_id>/<filename>.

3. Verify Ed25519 Signature & SHA-256 Digests

Every catalog.json and manifest.json is signed with Citari's offline production Ed25519 key:

  • Ed25519 Public Key (hex): 70521d8b226199d5ea8f4c770f233369c1a03199f8a0d4cda0467ba6189298b3
  • Public Key SHA-256 Fingerprint: 7ef85bdab74d002a14abce50b0a3ccc6965e8d1e4d94327db715fafa72fa884b

Verify a downloaded pack folder in Python (pip install pynacl):

import hashlib, json
from pathlib import Path
from nacl.signing import VerifyKey

PUBKEY_HEX = "70521d8b226199d5ea8f4c770f233369c1a03199f8a0d4cda0467ba6189298b3"
pack_dir = Path("citari-data/packs/en-wiki-top50k")

manifest_bytes = (pack_dir / "manifest.json").read_bytes()
sig_bytes = (pack_dir / "manifest.sig").read_bytes()

# 1. Verify Ed25519 signature
VerifyKey(bytes.fromhex(PUBKEY_HEX)).verify(manifest_bytes, sig_bytes)

# 2. Verify SHA-256 digests for content.sqlite and vectors.usearch
manifest = json.loads(manifest_bytes.decode("utf-8"))
for fname, info in manifest["files"].items():
    digest = hashlib.sha256((pack_dir / fname).read_bytes()).hexdigest()
    assert digest == info["sha256"], f"SHA-256 mismatch for {fname}"

print(f"Verified {manifest['pack_id']} ({manifest['article_count']:,} articles)")

4. Reading & Searching content.sqlite

Article bodies in articles.body_zstd are compressed with the Zstd dictionary stored in pack_blobs (key = 'zstd_dict'). Full-text search works directly via SQLite FTS5 (chunks_fts).

Example in Python (pip install zstandard):

import sqlite3
import zstandard as zstd

conn = sqlite3.connect("file:citari-data/packs/en-wiki-top50k/content.sqlite?mode=ro", uri=True)

# Load pack metadata and Zstd dictionary
meta = dict(conn.execute("SELECT key, value FROM pack_meta").fetchall())
zdict = zstd.ZstdCompressionDict(
    conn.execute("SELECT data FROM pack_blobs WHERE key = 'zstd_dict'").fetchone()[0]
)
dctx = zstd.ZstdDecompressor(dict_data=zdict)

# Full-text search using FTS5
rows = conn.execute(
    """
    SELECT c.article_id, a.title, a.source_url, c.section_heading, c.chunk_text
    FROM chunks_fts f
    JOIN chunks c ON c.chunk_id = f.rowid
    JOIN articles a ON a.article_id = c.article_id
    WHERE chunks_fts MATCH ?
    LIMIT 3
    """,
    ("photosynthesis",),
).fetchall()

for art_id, title, url, section, snippet in rows:
    print(f"[{title} — {section}] ({url})\n{snippet[:240]}...\n")

# Decompress a full article body
body_zstd = conn.execute(
    "SELECT body_zstd FROM articles WHERE article_id = ?", (rows[0][0],)
).fetchone()[0]
full_markdown = dctx.decompress(body_zstd).decode("utf-8")

5. Querying vectors.usearch

vectors.usearch is a standard USearch index (384 dimensions, MetricKind.Cos + ScalarKind.I8 for starter packs, or MetricKind.Hamming + ScalarKind.B1 for large shards). Embed your query with BAAI/bge-small-en-v1.5 (CLS pooling, L2 normalized, empty query prefix), open the index in zero-copy mode via usearch.index.Index.restore("vectors.usearch", view=True), and look up the returned keys directly in chunks.chunk_id.


Modifications & Licensing

All packs in this repository are derived from open-licensed upstream dumps (see LICENSE for full terms).

  • Summary of Modifications: Source wikitext/documents are converted to plain UTF-8 Markdown; infoboxes, tables, galleries, images, reference footnotes, stub articles below the pack's character threshold, and non-free/Fair Use blocks (<poem>, <score>, lengthy verbatim quotes) are removed; text is segmented into UTF-16 citation chunks and compressed with Zstd for offline search.
  • Non-Affiliation: Independent offline knowledge pack built by Citari. Not affiliated with, sponsored by, or endorsed by the Wikimedia Foundation, the U.S. Government, or any listed source. All trademarks remain the property of their respective owners.
  • Licensing & Takedown Inquiries: If you spot a licensing, attribution, or copyright concern in any published pack, please open a discussion on this dataset or an issue on GitHub (or contact the maintainer via the legal contact listed in the Citari app's Settings → Licenses screen) with the pack_id and article title so it can be audited and removed promptly.
Downloads last month
122