CoolFace
Apppublic

danilodevhub/turboquant-js-demo

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes
App README

TurboQuant-js — Semantic Search Demo

Client-side semantic search powered by turboquant-js + Transformers.js. Runs entirely in your browser — no server, no API calls, no data leaving your device.

What it does

  1. 1.Downloads a small embedding model (all-MiniLM-L6-v2) via Transformers.js
  2. 2.Embeds 50 articles into 384-dimensional vectors
  3. 3.Compresses them using TurboQuant (3-bit default — 20.8x compression)
  4. 4.Lets you search by meaning, not keywords

Toggle between 2-bit, 3-bit, and 4-bit quantization to see the quality/compression trade-off. Results are compared side-by-side against exact brute-force search.

Links