Multi-model · OPUS-MT FR→EN (107.47 MB q8 · Apache-2.0) → DeBERTa-v3 zero-shot NLI (87.25 MB q8 · MIT)

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 (107.47 MB WASM q8 · Apache-2.0)

Stage 2 · DeBERTa-v3 Zero-Shot NLI (87.25 MB WASM q8 · MIT)

French-language ticket presets (regional variety noted):

2. Cross-Lingual Handoff, Queue & Tone Scores

Top routed queue–
Top queue score–
Customer tone–
Stage 1 / Stage 2 ms–
Stage 1 NaN check–
Stage 2 id2label order–

Stage 1 Input · French Ticket

Select a French ticket preset above.

Stage 1 → Stage 2 Handoff · English

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.js ZeroShotRoutingClient: FIFO client reusing ../zero-shot-text/worker.js
Show the code — opus-fr-core.mjs mapNliClassProbabilities(): index lookup from worker-reported res.classNames