Practical · feature-extraction · WASM
The two jobs Arctic is built for. Prefixed retrieval: rank a corpus against a query (embedded with the retrieval prefix) — the guts of search and RAG. Near-duplicate detection: find pairs that mean the same thing even when the words differ, so you can collapse them. Both run entirely on your device.
Everything below runs on these lines. Edit them, or keep the mixed support/knowledge sample.
The query is embedded with Arctic's retrieval prefix; every passage is embedded raw. Ranking is by cosine — no keyword overlap required.
Embed every line, then flag pairs whose cosine is above a threshold — "same thing, different words". Drag the slider to trade recall for precision.