Type a handful of sentences and see how a real embedding model measures their meaning - a cosine heatmap, the closest and furthest pairs, and a 2D map
First run downloads MiniLM (~25 MB) from the CDN, then it is cached and runs offline.
Cosine similarity
2D map (PCA)
Most / least similar pairs
Texts
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Embeddings turn text into vectors so that “close in meaning” becomes “close in space.” That is the whole foundation of semantic search, retrieval-augmented generation, clustering, and dedup. But the numbers are abstract until you see them on your own examples.
This tool embeds each line you type with all-MiniLM-L6-v2, a 384-dimension sentence model, running entirely in your browser through transformers.js and ONNX Runtime Web. The first run downloads the model (about 25 MB) from a CDN; after that it is cached and works offline. Your text is never sent anywhere.
Principal component analysis normally means eigendecomposing a 384x384 covariance matrix. With only a handful of texts that is wasteful, so this tool uses the dual formulation: it builds the small N-by-N Gram matrix of the centred vectors and extracts its top two eigenvectors with plain power iteration and deflation. Each point’s coordinates are then the scaled eigenvector components. It is a few lines of code, runs instantly, and is exactly what the classic PCA math reduces to when you have more dimensions than samples.
Picking a similarity threshold for retrieval or dedup is guesswork until you have seen the actual distribution on realistic text. Drop in some true positives and some hard negatives, read the cosine values straight off the heatmap, and you have a defensible cut-off. It also makes a fast teaching aid for what “semantic similarity” does and does not capture - try near-synonyms, negations, and topic overlaps and watch where the model agrees with you and where it does not.
For the downstream side of a retrieval pipeline, pair this with the RAG Chunk Visualizer and the RAG Eval Toolkit.
For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.