Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
schema_version: int64
name: string
built_at: timestamp[s]
build_seconds: double
config_path: string
config: struct<name: string, corpora: list<item: struct<path: string, collection_id: string>>, chunking: str (... 866 chars omitted)
child 0, name: string
child 1, corpora: list<item: struct<path: string, collection_id: string>>
child 0, item: struct<path: string, collection_id: string>
child 0, path: string
child 1, collection_id: string
child 2, chunking: struct<max_tokens: int64, overlap_tokens: int64, max_chars: int64, overlap_chars: int64, contextual_ (... 82 chars omitted)
child 0, max_tokens: int64
child 1, overlap_tokens: int64
child 2, max_chars: int64
child 3, overlap_chars: int64
child 4, contextual_title: bool
child 5, special_tokens: int64
child 6, title_token_cap: int64
child 7, title_char_cap: int64
child 3, retrieval: struct<embedding: struct<provider: string, model: string, device: string, batch_size: int64, max_seq (... 520 chars omitted)
child 0, embedding: struct<provider: string, model: string, device: string, batch_size: int64, max_seq_length: int64, dt (... 181 chars omitted)
child 0, provider: string
child 1, model: string
child 2, device: string
child 3, batch_size: int64
child 4, max_seq_length: int64
child 5, dtype: string
child 6, truncate_dim: int64
child 7, normalize: bool
...
child 3, build_seconds: double
child 4, texts_per_second: double
child 5, stores: struct<numpy: struct<backend: string, size_kb: double, write_seconds: double>, faiss: struct<backend (... 200 chars omitted)
child 0, numpy: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
child 1, faiss: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
child 2, faiss_hnsw: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
child 3, qdrant: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
pipeline_and_ui_verification: struct<retriever_class: string, search_law_top_articles: list<item: string>, read_law_resolved: bool (... 33 chars omitted)
child 0, retriever_class: string
child 1, search_law_top_articles: list<item: string>
child 0, item: string
child 2, read_law_resolved: bool
child 3, alias_resolution_Dieu_25: bool
to
{'pipeline_and_ui_verification': {'retriever_class': Value('string'), 'search_law_top_articles': List(Value('string')), 'read_law_resolved': Value('bool'), 'alias_resolution_Dieu_25': Value('bool')}, 'benchmarks': {'bll2019_v1': {'benchmark': Value('string'), 'queries_evaluated': Value('int64'), 'methods': {'1_LuatCheck_BM25_TFIDF_RRF (current)': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64'), 'build_seconds': Value('float64')}, '2_LuatCheck_BM25_only': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64')}, '3_SQLite_FTS5_Keyword': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64')}, '4_EmbeddingGemma2_128d_Vector_NumPy': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'search_only_ms_per_query': Value('float64'), 'latency_ms_per_quer
...
e('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'search_only_ms_per_query': Value('float64'), 'latency_ms_per_query': Value('float64'), 'dimension': Value('int64')}, '9_EmbeddingGemma2_768d_Vector_FAISS_HNSW_768d': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'search_only_ms_per_query': Value('float64'), 'latency_ms_per_query': Value('float64'), 'dimension': Value('int64')}, '0_SQLite_FTS5_Full_61425_Corpus (reference)': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64'), 'corpus_size': Value('int64')}}, 'index_summary': {'index_dir': Value('string'), 'records': Value('int64'), 'chunks': Value('int64'), 'build_seconds': Value('float64'), 'texts_per_second': Value('float64'), 'stores': {'numpy': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}, 'faiss': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}, 'faiss_hnsw': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}, 'qdrant': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}}}}}}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, 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 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, 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 544, 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 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, 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 558, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, 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 361, 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 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
schema_version: int64
name: string
built_at: timestamp[s]
build_seconds: double
config_path: string
config: struct<name: string, corpora: list<item: struct<path: string, collection_id: string>>, chunking: str (... 866 chars omitted)
child 0, name: string
child 1, corpora: list<item: struct<path: string, collection_id: string>>
child 0, item: struct<path: string, collection_id: string>
child 0, path: string
child 1, collection_id: string
child 2, chunking: struct<max_tokens: int64, overlap_tokens: int64, max_chars: int64, overlap_chars: int64, contextual_ (... 82 chars omitted)
child 0, max_tokens: int64
child 1, overlap_tokens: int64
child 2, max_chars: int64
child 3, overlap_chars: int64
child 4, contextual_title: bool
child 5, special_tokens: int64
child 6, title_token_cap: int64
child 7, title_char_cap: int64
child 3, retrieval: struct<embedding: struct<provider: string, model: string, device: string, batch_size: int64, max_seq (... 520 chars omitted)
child 0, embedding: struct<provider: string, model: string, device: string, batch_size: int64, max_seq_length: int64, dt (... 181 chars omitted)
child 0, provider: string
child 1, model: string
child 2, device: string
child 3, batch_size: int64
child 4, max_seq_length: int64
child 5, dtype: string
child 6, truncate_dim: int64
child 7, normalize: bool
...
child 3, build_seconds: double
child 4, texts_per_second: double
child 5, stores: struct<numpy: struct<backend: string, size_kb: double, write_seconds: double>, faiss: struct<backend (... 200 chars omitted)
child 0, numpy: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
child 1, faiss: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
child 2, faiss_hnsw: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
child 3, qdrant: struct<backend: string, size_kb: double, write_seconds: double>
child 0, backend: string
child 1, size_kb: double
child 2, write_seconds: double
pipeline_and_ui_verification: struct<retriever_class: string, search_law_top_articles: list<item: string>, read_law_resolved: bool (... 33 chars omitted)
child 0, retriever_class: string
child 1, search_law_top_articles: list<item: string>
child 0, item: string
child 2, read_law_resolved: bool
child 3, alias_resolution_Dieu_25: bool
to
{'pipeline_and_ui_verification': {'retriever_class': Value('string'), 'search_law_top_articles': List(Value('string')), 'read_law_resolved': Value('bool'), 'alias_resolution_Dieu_25': Value('bool')}, 'benchmarks': {'bll2019_v1': {'benchmark': Value('string'), 'queries_evaluated': Value('int64'), 'methods': {'1_LuatCheck_BM25_TFIDF_RRF (current)': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64'), 'build_seconds': Value('float64')}, '2_LuatCheck_BM25_only': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64')}, '3_SQLite_FTS5_Keyword': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64')}, '4_EmbeddingGemma2_128d_Vector_NumPy': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'search_only_ms_per_query': Value('float64'), 'latency_ms_per_quer
...
e('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'search_only_ms_per_query': Value('float64'), 'latency_ms_per_query': Value('float64'), 'dimension': Value('int64')}, '9_EmbeddingGemma2_768d_Vector_FAISS_HNSW_768d': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'search_only_ms_per_query': Value('float64'), 'latency_ms_per_query': Value('float64'), 'dimension': Value('int64')}, '0_SQLite_FTS5_Full_61425_Corpus (reference)': {'Recall@1': Value('float64'), 'Recall@5': Value('float64'), 'Recall@10': Value('float64'), 'Recall@20': Value('float64'), 'MRR@10': Value('float64'), 'NDCG@10': Value('float64'), 'MAP@10': Value('float64'), 'latency_ms_per_query': Value('float64'), 'corpus_size': Value('int64')}}, 'index_summary': {'index_dir': Value('string'), 'records': Value('int64'), 'chunks': Value('int64'), 'build_seconds': Value('float64'), 'texts_per_second': Value('float64'), 'stores': {'numpy': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}, 'faiss': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}, 'faiss_hnsw': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}, 'qdrant': {'backend': Value('string'), 'size_kb': Value('float64'), 'write_seconds': Value('float64')}}}}}}
because column names don't match