All guides

Guide

Datasets

A dataset repo holds the documents a Thread learned from, by hash. It gives a Thread’s citations somewhere to land.

What one holds

A dataset is the folder Braid trains on, kept byte for byte. A pulled dataset trains a Thread with no change to Braid.

Beside it travel the sources it was built from. One is the node its documents came from. The others are the passes made over that node, such as a reconstruction pass that writes questions and answers from it, each with its spec.

A dataset states the terms its documents were filed under. A document filed without leave to train is refused.

Its page

  • Nodes: the source and its passes, with their documents and subjects.
  • Specs: how each pass made its items, and how they were checked.
  • Documents: each one’s partitions, shaded by how they trained, never the text.
  • Trained into: the Thread versions built from it.

A partition is context, trained, or trained at double weight. Context shapes what follows it and is never trained on.

Open swift-snippets to see one.

Publishing one

Choose its folder in New repo. Your browser takes its texts out first, so the Mill keeps only names, ids, hashes, addresses and weights.

Linen & Sole then recomputes what it can reach: each document’s hashes, the corpus hash and the dataset hash. One that does not recompute is refused.

Older builds without sources are read too. Their node tree comes from their manifest, and the page says what they leave out.

Training from one

Arrives later

Braid will pull a dataset repo by its address, check every hash, and train a Thread on it:

braid dataset pull linen:<owner>/<name>@v<N>

That command is designed, and Braid has not built it yet.

For model engineers

The format is linen-dataset/1. Braid’s view stays as it is: manifest.json, crosslinks.jsonl and nodes/<node>/ with its documents.

Each source sits in sources/<node>/ with node.json and documents.jsonl. A pass adds spec.json, its items and its knowledge base.

A tree hash covers every document file, so names, kinds and addresses are protected as well as texts. The schemas stay with Linen & Sole until they are final.