Pull Dataset From Hub
Pull a dataset from HuggingFace Hub and save it locally.
User-authenticated requests require hf_token. Sandbox run keys omit it and import public repos anonymously. Gated or private repos must be imported in the Pioneer UI with a user token. Optionally accepts session_id for SSE log streaming.
Request body
HuggingFace repo ID to pull from
HuggingFace dataset configuration, distinct from the local Pioneer name
Specific revision/branch to pull
Name for the local dataset (defaults to repo name)
HuggingFace API token. Required for user-authenticated imports. Sandbox run keys must omit this field and can only import public repos. Gated or private repos must be imported in the Pioneer UI.
Session ID for SSE log streaming
Column mapping from source to standard names
Dataset type (ner, classification, custom)
Dataset purpose: 'training' (trainable), 'evaluation' (not trainable), 'benchmark' (system-managed, evaluation-only; cannot be created via this endpoint). This model is also bound to POST /felix/datasets/preview-from-hub, which ignores this field entirely -- nothing is persisted on a preview.
Response
Successful Response
Train split ratio for this dataset version. Left-to-right split with no shuffle; validation is the tail.
Dataset status: initialized/uploading/converting/validating/ready/failed/generating/queued
Error message if status is failed
Dataset purpose tag: 'training', 'evaluation', or 'benchmark'
Dataset visibility: 'private' or 'public'
Whether this dataset is a competition benchmark
Label names (entity types for NER, class labels for classification)
Canonical operation that created this dataset version.
Whether this dataset is a seed dataset (small set for review before full expansion)
UUID of the synthesis log session for this dataset, used to restore creation workflow on resume
Column mapping from original to standard names