French Support Triage: Translate Locally, Then Zero-Shot Route
Stage 1 (Xenova/opus-mt-fr-en, 107.47 MB WASM q8,
Apache-2.0) translates incoming tickets written in European, Québécois or Belgian
French. Stage 2 (Xenova/nli-deberta-v3-xsmall, 87.25 MB WASM q8,
MIT, reusing the shared ../zero-shot-text/worker.js) scores the English
against your own queue labels and a customer-tone axis — giving an English-only NLI classifier
a bilingual front door, entirely on-device (~195 MB total).
1. Two Independent On-Device Models (~195 MB Combined)
Isolated stages: each model runs in its own Web Worker with independent Cache
Storage auto-init and Release controls. Releasing Stage 1 frees MarianMT but keeps the last English
handoff and every Stage 2 score on screen — Stage 2 can even re-score it.
Stage 1 (OPUS-MT FR→EN) output will appear here and feed Stage 2.
Stage 2 · Queue Routing (3-way NLI mapped from res.classNames)
Zero-shot queue routing scores with dynamically mapped entailment, neutral and contradiction probabilities
Rank
Queue
Score
Confidence
Entailment
Neutral
Contradiction
Run the full pipeline above to route the translated English.
Stage 2 · Customer Tone (softmax across tone hypotheses)
Zero-shot customer tone scores
Rank
Tone
Score
Confidence
Tone scores appear after Stage 2.
3. Inspect the Stage 2 Client & Dynamic NLI Mapping
</>Show the code — opus-fr.jsZeroShotRoutingClient: FIFO client reusing ../zero-shot-text/worker.js▸</>Show the code — opus-fr-core.mjsmapNliClassProbabilities(): index lookup from worker-reported res.classNames▸