v0.4.0No server, no API key, nothing leaves your browser

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.

Live demo

🔍 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

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.

index
Index · 2,000 passages
vector index and passage text, Brotli-compressed
Model · kyr0/Winzling-reranker q8
Token vectors · 2,000 passages
prebuilt with the index, downloaded once, Brotli-compressed
Runtime · ONNX Runtime Web
~531 MB RAM reserved for the model, runtime and index (measured in Chromium)

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.


    How it works

    💡 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.

    Index · Node.js or browser
    Search · browser or Node.js
    01 · Text
    02 · Embed
    03 · TurboQuant
    04 · Result
    Documents 2,000 passages 20 languages
    Embed once with kyr0/Winzling-embed · 384-d
    TurboQuant 4-bit codes 256 B per passage
    Vector index 412 kB · file or memory
    User search query any language
    Embed the query with kyr0/Winzling-embed · ~23 ms
    • 28.8 MB download, cached
    TurboQuant Scan 2,000 codes 0.4 ms
    Top 12, reranked top 25 fused with kyr0/Winzling-reranker
    1. text
    2. vectors
    3. codes
    4. 412 kB · once
    5. text
    6. 384-d
    7. 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.

    22.9 msto embed a query (p50)
    0.4 msto scan the TurboQuant index (p50)
    169.3 msto scan and rerank the top 25 with MoEdernColBERT 1.5M (p50)
    412 kB BrotliTurboQuant index for 2,000 passages; 0.51 MB raw, 6x smaller than float32
    79%R@1 over the eight target languages, reranked
    100%R@10 for English, German, Portuguese and ItalianAll languages (opens in a new tab)

    * 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

    Average 8 target languages

    English target
    German target
    French target
    Portuguese target
    Italian target
    Spanish target
    Dutch target
    Russian target
    Indonesian
    Polish
    Turkish
    Vietnamese Pruned
    Korean Pruned
    Chinese Pruned
    Japanese Pruned
    Thai Pruned
    Urdu Pruned
    Hindi Pruned
    Arabic Pruned
    Bangla Pruned
    Portrait of Aron Homberg

    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.

    Use it

    🧑‍💻 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.

    search.ts
    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

    Bench questions