# Data Loading

> Prepare, validate, load, download, and persist BEIR-format datasets and result files.

- Skill: `vectorspacelab/data-loading` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx get-skill add vectorspacelab/data-loading`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vectorspacelab/data-loading/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache 2.0
- Author: VectorSpaceLab (https://skillmd.com/u/vectorspacelab)
- Updated: 2026-11-18
- Page: https://skillmd.com/skills/vectorspacelab/data-loading

---


# Data Loading

Use this sub-skill when the task is about preparing BEIR corpus/query/qrels files, loading local or Hugging Face datasets, validating custom datasets, downloading packaged BEIR data, or saving/loading BEIR runfiles and metric JSON.

## Route

- For file schemas and return shapes, read [references/data-formats.md](references/data-formats.md).
- For local dataset creation, validation, prefixed datasets, downloads, Hugging Face loading, and persistence workflows, read [references/workflows.md](references/workflows.md).
- For exact loader and utility APIs, read [references/api-reference.md](references/api-reference.md).
- For common failures and repair advice, read [references/troubleshooting.md](references/troubleshooting.md).

## Bundled Helpers

- Create a tiny offline fixture: `python scripts/make_tiny_beir_dataset.py ./tiny-beir`
- Validate a BEIR-format dataset: `python scripts/validate_beir_dataset.py ./tiny-beir --split test`
- Validate prefixed query/qrels files: `python scripts/validate_beir_dataset.py ./tiny-beir --split test --prefix my-prefix`

The helpers are self-contained and do not import BEIR. Use them before routing a dataset into retrieval or evaluation.

## Boundaries

- This sub-skill owns `GenericDataLoader`, `HFDataLoader`, `util.download_and_unzip`, `util.save_runfile`, `util.load_runfile`, `util.save_results`, BEIR JSONL/TSV schema checks, prefixed local datasets, and local validation helpers.
- Route retrieval and metric execution to [../retrieval-evaluation/SKILL.md](../retrieval-evaluation/SKILL.md).
- Route reranking to [../reranking/SKILL.md](../reranking/SKILL.md).
- Route query generation or passage expansion to [../generation/SKILL.md](../generation/SKILL.md).
- Route model training data loops to [../training/SKILL.md](../training/SKILL.md).

