Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'source'}) and 5 missing columns ({'enriched_path', 'parquet_id', 'py_version', 'vector_store', 'signal'}).

This happened while the json dataset builder was generating data using

hf://datasets/lilacai/nature-of-code-local-noc-book-github/local/noc-book-github/manifest.json (at revision eeaee52cceefe9718ef08bf5446f5fc9805364d4)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              files: list<item: string>
                child 0, item: string
              data_schema: struct<fields: struct<file_path: struct<dtype: string>, file_name: struct<dtype: string>, url: struct<dtype: string>, content: struct<dtype: string>>>
                child 0, fields: struct<file_path: struct<dtype: string>, file_name: struct<dtype: string>, url: struct<dtype: string>, content: struct<dtype: string>>
                    child 0, file_path: struct<dtype: string>
                        child 0, dtype: string
                    child 1, file_name: struct<dtype: string>
                        child 0, dtype: string
                    child 2, url: struct<dtype: string>
                        child 0, dtype: string
                    child 3, content: struct<dtype: string>
                        child 0, dtype: string
              source: struct<repo: string, ignore_directories: list<item: string>, ignore_file_extensions: list<item: string>, github_token: string, source_name: string>
                child 0, repo: string
                child 1, ignore_directories: list<item: string>
                    child 0, item: string
                child 2, ignore_file_extensions: list<item: string>
                    child 0, item: string
                child 3, github_token: string
                child 4, source_name: string
              to
              {'files': Sequence(feature=Value(dtype='null', id=None), length=-1, id=None), 'parquet_id': Value(dtype='string', id=None), 'data_schema': {'fields': {'content': {'fields': {'gte-small': {'repeated_field': {'fields': {'embedding': {'dtype': Value(dtype='string', id=None)}}, 'dtype': Value(dtype='string', id=None)}, 'signal': {'signal_name': Value(dtype='string', id=None)}}}}}}, 'signal': {'signal_name': Value(dtype='string', id=None)}, 'enriched_path': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'vector_store': Value(dtype='string', id=None), 'py_version': Value(dtype='string', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'source'}) and 5 missing columns ({'enriched_path', 'parquet_id', 'py_version', 'vector_store', 'signal'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/lilacai/nature-of-code-local-noc-book-github/local/noc-book-github/manifest.json (at revision eeaee52cceefe9718ef08bf5446f5fc9805364d4)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

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.

files
sequence
parquet_id
string
data_schema
dict
signal
dict
enriched_path
sequence
vector_store
string
py_version
string
source
dict
[]
content.gte-small
{ "fields": { "content": { "fields": { "gte-small": { "repeated_field": { "fields": { "embedding": { "dtype": "embedding" } }, "dtype": "string_span" }, "signal": { "signal_name"...
{ "signal_name": "gte-small" }
[ "content" ]
hnsw
0.1.4
null
[ "data-00000-of-00001.parquet" ]
null
{ "fields": { "file_path": { "dtype": "string" }, "file_name": { "dtype": "string" }, "url": { "dtype": "string" }, "content": { "dtype": "string" } } }
null
null
null
null
{ "repo": "nature-of-code/noc-book-2023", "ignore_directories": [ "docs", "gatsby", "magicbook", "src" ], "ignore_file_extensions": [ ".png" ], "github_token": "", "source_name": "github" }

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

This dataset is generated by Lilac for a HuggingFace Space: huggingface.co/spaces/lilacai/nature-of-code.

Lilac dataset config:

name: noc-book-github
source:
  repo: nature-of-code/noc-book-2023
  ignore_directories:
    - docs
    - gatsby
    - magicbook
    - src
  ignore_file_extensions:
    - .png
  github_token: ''
  source_name: github
embeddings:
  - path: content
    embedding: gte-small
settings:
  ui:
    media_paths:
      - content
    markdown_paths: []
Downloads last month
4