Fuseau - a small model and engine that speak SliTaz
====================================================

Fuseau is the AI engine of Wove, the SliTaz assistant: it reads what a user
typed and names the action meant, among the ones Wove knows, or says it does
not know. One forward pass of a tiny model, in C99, on the user's machine.

It is work in progress. So far: the bench, a character n-gram baseline in C,
the training corpus (Echeveau) written by local teacher models, a first
transformer of 1.3 MB with its engine in 600 lines of C, and their measures on
phrasings written by people. Nothing is released yet.

Read doc/DECISIONS.md first: it is the design log, and every choice a new
reader could not guess is there.

    doc/DECISIONS.md   what Fuseau is, constraints, bench rules, phases
    doc/FORMAT.md      model v1: what the engine computes, the weight file
    doc/BASELINE.md    rules and baseline on the dev benches (generated)
    doc/MODEL.md       model v1 on the dev benches, alone and as arbiter (generated)
    doc/TEACHERS.md    teacher models and what their corpus brings (generated)
    bench/             labeling guide, phrasing sheets, split and scoring
    echeveau/          corpus generation: templates, teachers, measures
    grammar/           intents and their risk, generated from Wove and trame
    src/               C code: the n-gram baseline, then the engine
    train/             training code (PyTorch), never shipped
    MANIFEST           checksums: which inputs produced which outputs

What is not here, on purpose: the generated corpus, the weights, and the
bench itself. Phrasings belong to the people who wrote them, and a sealed
half is never read by the tools that tune the model.

Build the baseline and the engine: make. Install the engine, `fuseau`, in
/usr/bin: make install (PREFIX, DESTDIR). License: BSD.

    src/ngram train|predict          the n-gram baseline
    src/fuseau predict|tokens|info   the engine (version: its version)
    src/fuseau decide                Wove's arbiter: transformer, n-gram and
                                     rules, with thresholds (doc/FORMAT.md 6)
    bench/thresholds.sh              thresholds for decide, read on dev
    bench/decide.sh                  checks decide against the bench arbiter
    bench/sealed.sh                  the release measure on the sealed benches,
                                     run by pankso: counts and the two thresholds
