← All models · all-mpnet-base-v2
Practical · feature-extraction · WASM
Once text is a vector, whole product features become a few lines of arithmetic. Here are three, running entirely on your device with all-mpnet-base-v2: semantic search, exploratory clustering, and classification by nearest label (with abstention) — the last one needs no training data at all.
Everything below runs on these lines. Edit them, or keep the mixed support/topic sample.
Rank every line by meaning against a query — no keyword overlap required. Scores are this model’s uncalibrated cosine relatedness.
An exploratory grouping into k unlabeled clusters by embedding proximity — not a guaranteed taxonomy. We report the measured cohesion (mean intra-cluster cosine) and stability (how many points keep their cluster across two differently-seeded runs) so you can judge how much to trust the partition. Clustering runs off the main thread.
Embed a handful of label names once, then tag every line by whichever label
vector it sits closest to. Each tag shows its top score and the margin to the
runner-up; if the best score is below 0.30 or the margin below 0.04 we
abstain (“uncertain”) rather than force a low-confidence label. These thresholds are
honest, model-specific choices — change the labels and everything re-tags instantly, no retraining.