Battam's picture
portal: data page of repository commit b5cfa73a7d4d
8168b6b verified
|
Raw History Blame Contribute Delete
3.98 kB
metadata
title: Training Data Foundation
emoji: 🧭
colorFrom: gray
colorTo: blue
sdk: static
app_file: index.html
pinned: false
short_description: Real public data for pre-, mid- and post-training
datasets:
  - Battam/training-data-foundation

Training Data Foundation

The data page of Battam/training-data-foundation, the public index of real public data for pre-training, mid-training and post-training. It shows every source of the index, sorted by recognized standards, and gives the one command, or the one sentence for an AI agent, that fetches what you select.

What the page shows

  • A story told by scrolling: one picture of the sources, a cluster of points each, which regroups at every step: the sources, their subjects, their resource types, their training use, how far the labels reach and the training stages.
  • The explorer: three linked charts by recognized standards (subject: OECD Fields of Science and Technology 2007; industry: ISIC Rev. 5 divisions, named as NACE Rev. 2.1 names them; resource type: DataCite's resourceTypeGeneral) and training use, each class one click to select or clear, several at once; a table of the sources with a box to tick each.
  • Get the data: for the selection, a sentence for an AI agent, which reads llms.txt, or the commands of tools/fetch.py that take every unit of it.
  • Notes: how the size and the labels are made and what they do not cover, and the terms.

Words: the notes give every term the page uses with its sentence, and each training stage's rule, from terms.json.

Files

File What it is
index.html The page: styles and script in one file (three.js for the picture, Observable Plot for the charts); its words are the keys page.story.*, page.figure.*, page.explorer.*, page.get.*, page.notes.* and page.lang.* of locales/.
sources.json Written at each deploy, not kept here: one row a source, already summed, from the index commit the page shows.
terms.json Written at each deploy, not kept here: the terms and the training stages' rules of the index's meta/vocabulary.json, which the same deploy makes from the code repository's catalog/terms.yaml and catalog/stages.yaml.
names.json The page's own names: the Chinese names of the standards' classes, short English labels of long NACE titles, the four training uses, and the publisher and sentence of the sources whose catalog text says too little.
manual.html, manual.js, manual/ The user manual, a page of its own (manual.html?lng=en or ?lng=zh, #manual/<part> for one part); its numbers and command outputs are filled at deploy.
i18n.js, locales/, style.css, fonts/ The words of the data page and of the manual in English and in Chinese (by i18next), the manual page's styles and the faces.
llms.txt, llms.zh.txt Written at each deploy, not kept here: for AI agents, in English and in Chinese, the page's title and sentence of locales/, a link to each section of the manual, and the address of the index's meta/vocabulary.json.
demo/ A recorded run of an agent fetching from one sentence.

Deploy

03_data_line/steps/portal.py of the code repository deploys this folder to the Space after each release (the job portal_job): it writes sources.json (sources_screen), terms.json (vocabulary_files, which also makes the index's meta/vocabulary.json, sent with the dataset card), first.json, funnel.json and portal.json from the index commit it reads, makes llms.txt and llms.zh.txt from the page's words and the manual's headings, fills the manual, and commits the result on top of the Space's main through the Hub's upload API, after the exit gate's scan. With the dataset card it renders the index's one field reference, docs/fields.md and docs/fields.zh.md, from the files of the same commit, and sends both to the index's main.