Sentence Similarity · Retrieval Embeddings · 22.97 MB q8 WASM

Snowflake Arctic Embed XS

Ultra-fast 22M-parameter retrieval embeddings (Snowflake/snowflake-arctic-embed-xs, Apache-2.0) running locally in your browser — a single query embeds in tens of milliseconds on CPU WASM, and the live latency readout below shows your device's real number. Built on a 6-layer MiniLM-sized BERT backbone tuned with hard-negative triplets for 50.15 MTEB Retrieval NDCG@10, using CLS pooling plus Snowflake's asymmetric query prefix.

At a glance

Pipeline task feature-extraction
Backend & dtype WASM · q8 (22.97 MB)
Pooling & dim CLS + L2 norm · 384-d
Backbone & context 6-layer BertModel · 512 tok
License & MTEB Apache-2.0 · 50.15 NDCG@10
Why CLS pooling matters: Snowflake Arctic Embed XS reads the hidden state of [CLS] (token ID 101) rather than averaging all token vectors, and pairs it with the asymmetric query prefix "Represent this sentence for searching relevant passages: " (documents stay unprefixed). Mean pooling a CLS-trained model is a configuration mismatch: flip the CLS vs Mean toggle below to measure the live score and margin shift on-device (the Basics rung runs the full 2×2 ablation).

1. Local model status

Checking browser cache for Snowflake/snowflake-arctic-embed-xs (22.97 MB q8 WASM)…

2. Semantic search explorer

Latency –
Top-1 Cosine –
Top-vs-Tail Margin –
Vector Dim · L2 –
Pooling · NaNs –
Query Tokens –

    3. See inside the 384-d [CLS] vector

    4. How it runs in your browser

    All inference runs inside a dedicated module Web Worker through the shared lib/webai.js pipeline loader (Transformers.js 3.7.5) with strict FIFO queueing and epoch-safe disposal.

    Show the code — worker.js CLS / Mean pooling forward pass