At a glance
| Model (Upstream & ONNX) | Snowflake/snowflake-arctic-embed-m-v1.5 |
|---|---|
| Task / pipeline | feature-extraction (HF tag: sentence-similarity · pooling: "cls", normalize: true) |
| Architecture | BertModel · 109M params · 12 layers · 12 heads · hidden_size: 768 · MRL [256] · 512 max tokens · 30,522 WordPiece vocab |
| Asymmetric prompt | Queries use "Represent this sentence for searching relevant passages: "; passages remain unprefixed |
| Quantization & size | q8 WASM ONNX (onnx/model_quantized.onnx = 110,145,162 bytes = 110.15 MB) |
| Backend | CPU WebAssembly (wasm) via shared lib/webai.js (@huggingface/transformers@3.7.5 — no WebGPU required) |
| License & MTEB | Apache-2.0 · 55.14 MTEB Retrieval NDCG@10 (54.2 at 256-d int8 · 53.7 at 256-d int4) |
Matryoshka + CLS pooling: Unlike generic mean-pooled BERT checkpoints, Arctic Embed M v1.5
reads token 0 (
[CLS], ID 101) and concentrates coarse retrieval signal in the first
256 dimensions. Flip the live 768-d vs 256-d MRL switch below to score the
exact same passages at 3× lower vector memory without re-running inference.
1. Client-Side Retrieval & Matryoshka Semantic Workbench
Latency–
Throughput–
Top-1 Cosine–
Active Dim · L2–
MRL Savings–
Health (NaN)–
Query Tokens–
2. See inside: 2D PCA Constellation & 768-d CLS Vector
2D PCA Semantic Constellation
Run inference above to project passages and query into 2D PCA space.
Active Query Vector & Matryoshka 256-d Cutoff
3. Why it matters & what you can build
- 3× smaller client vector stores: Keep full 768-d precision in memory or slice to 256-d MRL (1,024 B fp32 / 256 B int8) to pack 12× more documents into browser OPFS/IndexedDB.
- Asymmetric search accuracy: Query prefixing separates question intent from passage syntax without needing server-side BM25 or API keys.
- Zero-egress enterprise RAG: Embed sensitive financial disclosures, clinical notes, or incident runbooks offline on the visitor's own device.
4. How the API works & Show the code
All inference runs inside a dedicated module Web Worker via shared ../../lib/webai.js
(@huggingface/transformers@3.7.5 — CPU WASM q8) with strict FIFO queueing and
epoch-safe disposal.