This extractor follows a KeyBERT-style method in your browser. It builds one-to-three-word candidates from the passage, removes common English filler words, and uses cosine similarity between MiniLM embeddings to measure how closely each phrase matches the document. A small occurrence signal helps repeated terms without turning the ranking into a simple frequency list.
The Apache-2.0 all-MiniLM-L6-v2 model maps text into 384-number vectors. Long documents are split into balanced chunks before their vectors are averaged, which avoids judging an entire article only from its opening. WebGPU uses roughly 30 MB of quantized weights when supported; the WebAssembly CPU fallback uses roughly 54 MB. Browser and model runtime files download separately and may be cached.