1. Two independent on-device models (118.9 MB total)
Stage 1 · Snowflake Arctic Embed XS (22.97 MB)
Reuses ../../snowflake-arctic-embed-xs/worker.js — WASM q8
384-d CLS-pooled bi-encoder for fast Top-K taxonomy shortlisting.
Stage 2 · DeBERTa-v3-XSmall Zero-Shot (95.9 MB)
Uses ../worker.js — WASM q8 2-class cross-encoder NLI
verifier on the Stage 1 shortlist.
2. Incoming dispatch → semantic shortlist → NLI filter
Initialise both stages above to run the 2-stage semantic embed + zero-shot NLI pipeline.
Stage 1 · Arctic Cosine vs Stage 2 DeBERTa NLI
24-Category Enterprise Taxonomy (Highlighted = Shortlist)
| Shortlisted category | Stage 1 rank & cosine | Stage 2 rank & score | Rank shift (Δ) | 2-class Entail / Not-entail | Logit Δ |
|---|---|---|---|---|---|
| Run Stage 1 + Stage 2 above to inspect semantic shortlisting and NLI reranking. | |||||