Curation Input and Output Format#
Input#
curate/ingest reads Parquet or JSONL.
Every other curation step reads JSON Lines: each line is a JSON object, and the configured text_field must exist on each record.
{"id": "doc-001", "source": "c4_vi", "text": "The text to curate."}
By default, text_field is text.
curate/subset and curate/decontamination additionally require a unique document identifier in id_field.
A corpus without one should pass through curate/ingest, which mints a content-derived identifier.
Output of curate/nemo_curator#
The step writes JSONL shards under output_dir using NeMo Curator JsonlWriter.
The output contains text_field and the fields listed in metadata_fields; JsonlReader treats fields as a projection, so any field not listed is dropped at the first stage.
Typical output with no gates and no metadata fields:
{"text": "The text to curate."}
When language filtering is enabled, the pipeline adds a language score field used by the filter.
When domain classification is enabled, classifier output fields depend on the installed NeMo Curator classifier implementation.
When an approved policy is applied with mode: annotate or mode: both, each record carries one __<signal> column per policy signal.
Artifacts Exchanged Between Steps#
Artifact type |
File |
Producer |
Consumers |
|---|---|---|---|
|
|
|
|
|
|
|
A reviewer |
|
|
|
|
|
JSONL shards |
|
|
|
|
|
|
|
|
|
|
|
|
|
A reviewer |
|
|
|
|
|
|
|
A reviewer |
Refer to Curation Pipeline Artifacts for how these artifacts relate and Filter Policy File for the policy schema.
Downstream Use#
Use the output of curate/nemo_curator, curate/decontamination, or a curate/subset tier as filtered_jsonl.
Common downstream paths are:
Use
translate/nemo_curatorfor corpus translation.Use
data_prep/pretrain_prepfor pretraining data preparation.Use
data_prep/sft_packingwhen the curated records are already in the required supervised fine-tuning (SFT) format.
If a downstream step needs fields beyond text, verify that the curation reader/writer path preserves those fields before scaling the run.