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:    ArrowInvalid
Message:      Float value 0.700000 was truncated converting to int64
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2281, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2233, in cast_table_to_schema
                  cast_array_to_feature(
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1804, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2011, in cast_array_to_feature
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1806, in wrapper
                  return func(array, *args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2011, in cast_array_to_feature
                  _c(array.field(name) if name in array_fields else null_array, subfeature)
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1806, in wrapper
                  return func(array, *args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2095, in cast_array_to_feature
                  return array_cast(
                         ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1806, in wrapper
                  return func(array, *args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1958, in array_cast
                  return array.cast(pa_type)
                         ^^^^^^^^^^^^^^^^^^^
                File "pyarrow/array.pxi", line 1135, in pyarrow.lib.Array.cast
                File "/usr/local/lib/python3.12/site-packages/pyarrow/compute.py", line 412, in cast
                  return call_function("cast", [arr], options, memory_pool)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "pyarrow/_compute.pyx", line 604, in pyarrow._compute.call_function
                File "pyarrow/_compute.pyx", line 399, in pyarrow._compute.Function.call
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: Float value 0.700000 was truncated converting to int64

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.

nom-vn benchmarks

Reproducible benchmark fixtures and baseline results for the nom-vn Vietnamese AI toolkit. Covers retrieval / RAG and Vietnamese OCR; more components arriving in follow-up commits.

Layout

fixtures/                  — input corpora (JSON) and tiny image sets
baselines/                 — bench result JSONs (small, version-controlled)
fixture_builder.py         — Zalo Legal QA sampler (regenerates fixtures)

Why this exists

Per CLAUDE.md principle 12: every metric we publish must come from a committed-and-runnable script with a baseline JSON we can re-measure on every change. This repo holds those baselines and the fixtures that produce them, so anyone can re-run, audit, and compare.


Component 1 — Vietnamese RAG retrieval

Source dataset: sampled from GreenNode/zalo-ai-legal-text-retrieval-vn (MIT), itself a HuggingFace mirror of the Zalo AI Challenge 2021 Legal Text Retrieval public corpus (60,701 articles + 788 queries with qrels).

Fixtures

File Articles Questions
fixtures/vn_legal_tiny.json 12 12
fixtures/vn_legal_zalo_2k.json ~1.5k 50
fixtures/vn_legal_zalo_5k.json ~5k 80
fixtures/vn_legal_zalo_full.json ~61k 788

(The _full fixture is large; regenerate via fixture_builder.py if the JSON isn't committed in your clone.)

Reproducing the bench

git clone https://github.com/nrl-ai/nom-vn
cd nom-vn
pip install -e ".[chat,otel]" datasets

# Rebuild a fixture:
python benchmarks/rag/fixtures/_build_zalo_legal.py \
    --n-questions 80 --n-distractors 5000 --seed 42 \
    --out benchmarks/rag/fixtures/vn_legal_zalo_5k.json

# Real-models bench, GPU auto-pick:
python benchmarks/rag/bench_rag_vn.py \
    --fixture benchmarks/rag/fixtures/vn_legal_zalo_5k.json \
    --embedder vietnamese \
    --reranker BAAI/bge-reranker-v2-m3 \
    --retrievers bm25,dense,hybrid,hybrid+rerank \
    --device auto \
    --json benchmarks/rag/baselines/zalo_5k__dangvantuan__bge_v2_m3.json

# Whole grid:
bash benchmarks/rag/run_grid.sh

See per-baseline JSON for exact config + metrics.


Component 2 — Vietnamese OCR

Source dataset: vn_ocr_subset — 478 image samples deterministically drawn (seed=42) from ducto489/ocr_datasets shard 0 (Apache-2.0), filtered to rows containing Vietnamese diacritics and at least 8 characters of ground-truth text.

The synthetic pencil-rendered fixture (benchmarks/data/synthetic_ocr_vi/, 20 + 20 images) stays in the main repo as a CI smoke test — Tesseract gets ~100% on it which makes it useless for ranking engines.

Reproducing the bench

# Rebuild the VN-only OCR subset (downloads one parquet shard ~150 MB):
python benchmarks/data/vn_ocr_subset/_build.py --n 500 --seed 42

# Run engines:
python benchmarks/accuracy/bench_ocr_real.py \
    --corpus benchmarks/data/vn_ocr_subset \
    --variant none \
    --engines tesseract,easyocr \
    --device cpu \
    --json benchmarks/results/ocr_vn_subset__tesseract_easyocr.json

Engines benchmarked so far:

  • Tesseract 5 (vie traineddata, system-installed; Apache-2.0).
  • EasyOCR 1.7+ (Apache-2.0; pip-installable).

Engines in the survey but not yet benched:

  • VietOCR (Apache-2.0; install broken on Python 3.13 — pinned for follow-up).
  • PaddleOCR PP-OCRv5 (Apache-2.0; lightweight detection + recognition).
  • Qwen2-VL-2B (Apache-2.0; ~4 GB, GPU-recommended; deferred).
  • Surya OCR — GPL-3.0 code + open-RAIL-M models, license-incompatible with our Apache-2.0 default surface, can only bench for comparison.

Licenses

This dataset repo: MIT.

Per-corpus licenses:

Bench result JSONs reference embedder / reranker model IDs; consult each upstream model card for license. We standardise on Apache-2.0

  • safetensors per CLAUDE.md file-format trust ladder.
Downloads last month
134