Semantic search is now tiny, fast, and local
in your browser, Node.js and Bun for fast search < 100 ms for 99% recall R@25 with only 2.28 MB still 90% R@25 with tiny TurboQuant index, Brotli compressed who need fast, efficient semantic search
The Winzling embedding model family consists of extremely small text embedding models created with expert quantization, pruning, distillation and weight-space programming techniques.
Model, inference and vector search algorithms implemented by Aron Homberg (kyr0) (opens in a new tab) - Open Source (MIT (opens in a new tab))
Models: kyr0/Winzling-embed (opens in a new tab) · kyr0/Winzling-reranker (opens in a new tab)
Small enough to ship
4-bit TurboQuant stores each document in 256 bytes, so a whole index travels to the client like an image does. Vectors have 384 dimensions; a text may run to 8,192 tokens.
Runs on modest hardware
One codebase for the browser, Node.js and Bun, on CPU/WASM with no GPU: < 100 ms to the first results and about 246 MB RAM in Node.js; reranking the top 25 adds ~169 ms in the browser. Made for old phones, weak business laptops and embedded boards.
Open Research, Customizable
make bench regenerates every figure on this page from a tiny benchmark (opens in a new tab). The method carries over to other languages, multimodal, late-interaction and fine-tuned embedders. Do you need a custom model? Ask Aron Homberg (LinkedIn) (opens in a new tab).
Zero cost - it's free!
MIT-licensed code, commercially usable, public model files on Hugging Face and static hosting: no API keys, no per-query fees, no servers to run. This page is plain files.
Perfect when privacy matters
Queries and your own documents never leave the device: no server, no third-party AI API, no data transfer to justify under GDPR (DSGVO). Only the model and runtime files are fetched; self-host them to keep even that in-house.
Pareto-optimal quality
Good enough for most retrieval and ranking: in the eight target languages, the right passage is in the top 25 for 99.3% of queries, and in the top 5 for 95.3% with the reranker. Measured on 2,000 passages.
Tokenize.
Embed.
Retrieve.
🔍 Finding a needle in a haystack
100 Belebele passages, each in 20 languages: 2,000 passages in one index. Pick one of the 1,000 example queries with ⌘K, or type your own. Or create your own vector database index right in your browser, in the tab.
Runtime
Loading the index. The model loads with your first search.
The reranker alone (kyr0/Winzling-reranker (opens in a new tab)): it downloads the 2,000 passages' token vectors, prebuilt with the index, and ranks every passage by MaxSim.
The embedder alone (kyr0/Winzling-embed (opens in a new tab)): it embeds the query and scans the prebuilt 4-bit TurboQuant index of the 2,000 passages.
The embedder's (kyr0/Winzling-embed (opens in a new tab)) TurboQuant hits at once, then their top 25 reordered by the reranker (kyr0/Winzling-reranker (opens in a new tab)) with rank fusion.
Backend
-
ONNX Runtime Web, 1 thread
Ready in
-
download, compile, warm-up
Vector Database Index
-
documents
Search 2,000 passages in 20 languages
Enter a question above and press Search, or pick one of the 1,000 example queries. The first search downloads the chosen model once, Brotli-compressed: kyr0/Winzling-reranker (2.28 MB, the default) with the passages' token vectors (8.50 MB), kyr0/Winzling-embed (28.8 MB) or both (31.1 MB). Every search after that runs on this device as you type.
Your notes
Write anything, in any language. A note is embedded 500 ms after you stop typing, or when you leave it; an empty note leaves the index.
No notes yet
Add a note with the button above. Each one becomes a 384-dimensional vector in your browser.
Search what you wrote
Add a few notes on the left, then ask a question here. Matching is by meaning, across languages, not by shared words.
💡 One query, three steps, all on your device
Documents are embedded once, ahead of search: this demo's passages in Node.js, your own notes right in the browser. A search embeds only the query, compares it with the compressed vectors, and lets the 1.5M-parameter MoEdernColBERT reranker reorder the best 25.
- 28.8 MB download, cached
- text
- vectors
- codes
- 412 kB · once
- text
- 384-d
- top 25
Measured, not promised*
Winzling with the MoEdernColBERT 1.5M reranker, the demo's "Fused" mode, in headless Chromium (WASM, 1 thread) on the same 2,000-passage haystack, from make bench.
* measured on an Apple MacBook Air M4 in a Chromium-based browser.
Recall by query language
Share of each language's 50 questions whose gold passage ranks in the top k of 2,000, in Chromium. Pruned: below 70% R@5, fused.
Download size: 31.1 MB
Download size: 28.8 MB
Download size: 2.28 MB

Need it tuned to your languages and data?
Aron Homberg, freelance and independent AI researcher: custom embedding models, vector search and on-device AI, offers consulting services worldwide.
🧑💻 Add it to your own app
Write the six lines yourself, or hand one prompt to your coding agent.
NPM package
6 lines in your frontend app. The first call downloads the pinned model from Hugging Face, checks every file's SHA-256 and caches it in the browser.
import { buildTurboQuantIndex, createWinzlingEmbedder, searchTurboQuantIndex } from "defuss-vectorsearch/browser.js";const embedder = createWinzlingEmbedder();const documents = ["The cat sleeps on the sofa.", "Die Börse schloss heute im Plus.", "Кошка спит на диване."];const index = buildTurboQuantIndex(await embedder.embedDocuments(documents));const hits = searchTurboQuantIndex(index, await embedder.embedQuery("A sleeping cat on a couch."), 2);console.log(hits.map((hit) => documents[hit.index])); // both cat sentences
Vibe coding
Paste this prompt into your coding agent. It links the repository, so the agent works from the current README.
Integrate defuss-vectorsearch into this app: https://github.com/kyr0/defuss-vectorsearch
Read its README first and follow the browser quick start: import from "defuss-vectorsearch/browser.js", embed with createWinzlingEmbedder() inside a Web Worker, index with buildTurboQuantIndex() and search with searchTurboQuantIndex().
Embed the documents once ahead of time, in Node.js or in the browser, and keep the index as a static file or in memory; a search then embeds only the query.
The first use downloads the pinned Winzling model as Brotli files (28.8 MB) and caches it in the browser, so start it when the user first searches.
For a better top 3, rerank the top 25 hits with createColbertReranker({ model: "1.5m" }).rerankHits(query, hits, texts); it adds a 2.28 MB download.
⏎ send
Embed, index and search anywhere, for free
Running an embedding model, building a vector index and searching it now works wherever a browser, Node.js or Bun runs: no GPU, no server, no per-query API bill.
MIT licensed · Winzling model and Belebele data credited below