﻿# Dolma taggers and mixer: align document rows before applying attributes

Understand Dolma's separate document and attribute files, source-scoped identifiers and mixer transformations before composing a curated corpus.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/data-guide-dolma-attribute-mixer-lineage/
Language: en

## Documents and derived signals are separate

The Dolma toolkit format separates document records from attributes produced by taggers and deduplication. This allows a signal to be recomputed without duplicating every original text payload. The separation also creates a join contract that the pipeline must preserve.

A document has source-scoped identity. The same local identifier in different sources need not refer to the same record. Keep both source and identifier when tracing a document through curated versions, rather than treating a bare local identifier as globally unique.

## Row alignment matters alongside identifiers

The format documentation requires corresponding attribute files to line up with document files in row count and order. Stable identifiers help investigate provenance, but do not justify shuffling one sidecar file independently or pairing it with a changed document revision.

Treat a rewritten document shard and its attributes as a coordinated artifact set. A proposed validation can compare identifiers, row counts and selected text spans before mixing. The article does not claim that an untested pipeline automatically detects every mismatch.

## Tagger experiments name derived evidence

Dolma's tag command runs selected taggers and writes attribute outputs associated with document paths. Experiment naming helps distinguish runs. Custom tagger modules can extend the available signals, so an attribute's name alone is insufficient to describe its exact computation.

Record the tagger implementation, input revision and experiment configuration. A newer toxicity or language score may require a new attribute revision even when its semantic label sounds unchanged. Keeping that distinction allows later thresholds to be reconsidered without confusing old and new evidence.

## The mixer applies a declared transformation

The documented mixer merges named attributes, applies include/exclude filters and can substitute configured spans. Matching include conditions and avoiding exclude conditions define retention; span replacement changes text rather than simply choosing records.

Inspect output field-discard settings as well. Removing provenance fields can make a smaller output easier to consume while weakening its traceability. Decide which identifiers must survive in the published derivative or in a separately governed manifest before running that transformation.

## Reusable signals do not establish universal quality

Cached attributes make it possible to compare curation policies against the same source revision. That is useful for controlled experiments, but a score and threshold do not establish factual reliability or suitability for an unrelated domain.

A reproducible release should associate original documents, attribute experiments, mixer configuration and retained identifiers. Review changed records and text substitutions separately from source-level mixture changes. This makes Dolma's curation flexibility inspectable instead of hiding it behind one final dataset name.

## Primary references

[Dolma data format](https://raw.githubusercontent.com/allenai/dolma/main/docs/data-format.md).

[Dolma tagger documentation](https://raw.githubusercontent.com/allenai/dolma/main/docs/taggers.md).

[Dolma mixer documentation](https://raw.githubusercontent.com/allenai/dolma/main/docs/mixer.md).

Related explanations: [Dataset split leakage](/journal/document-level-data-split-leakage/); [Data provenance](/journal/document-markdown-json-provenance/).
