Skip to main content
Learn vector representations from text pairs. This task is self-supervised (contrastive): there is no label column — the pairing is the supervision. Each sample is one .txt file with one tab-separated record:
  • a pair anchor<TAB>positive — two texts that should embed close together, or
  • a triplet anchor<TAB>positive<TAB>negative — with a hard negative that should embed far from the anchor.
Pairs and triplets may be mixed in one dataset.

Folder layout

Example pair:
  • The folder is named texts and sits next to the manifest CSV.
  • Exactly one tab between fields, all fields non-empty, one record per file on a single line. Unlike the other self-supervised text tasks, this structure is enforced.
  • UTF-8 encoded; one extension across the dataset (.txt by default).

Manifest CSV

There is no label column. Setting label: in ingest.yaml is rejected.

ingest.yaml

What the ingestor checks

Plus the checks every ingest runs, except label diversity (no label).

Sample dataset

The template ships three pairs and two triplets with a five-row manifest. The ingest.yaml above ingests it with no overrides.

Next steps