Free · no signup · browser-local
Embedding Cosine Similarity, Dot Product and Distance Calculator
Compare existing embedding vectors using cosine similarity, dot product and Euclidean distance. Inspect dimensions, zero-vector diagnostics and candidate rankings locally.
Browser-local calculation · no model calls · no saved input
Your output
ai-embedding-similarity-report.jsonComplete the input to preview and export your result.
These metrics compare supplied numbers. Meaningful semantic comparisons require compatible embeddings produced by the same method; no embeddings are generated here.
Getting started
Paste JSON with a/b arrays and optional candidates, or use two vector inputs. Choose a ranking metric and 0–100 coordinate contributions, then calculate locally.
Before you use the result
No embeddings are generated and no semantic quality is inferred. Vectors must share dimensions; zero-vector cosine is undefined. Floating-point rounding and tiny dot-product underflow can occur.
Try an example
a=[3,4], b=[-3,-4] gives cosine −1, dot −25, distance 10 and lengths 5.
How it works
Scaled L2 norms, compensated dot sums and normalized cosine. 500 KB UTF-8; 100 vectors total, 4,096 dimensions each, |component| ≤ 1e150.
Frequently asked questions
Compare existing vectors with cosine, angle, dot product, L1/L2 distance, coordinate contributions and candidate rankings.
How do I use AI Embedding Similarity Calculator?
Paste JSON with a/b arrays and optional candidates, or use two vector inputs. Choose a ranking metric and 0–100 coordinate contributions, then calculate locally.
Does this tool upload my data?
Inputs and files are processed in your browser. Page-view analytics do not contain your tool input.
What should I check before using the result?
No embeddings are generated and no semantic quality is inferred. Vectors must share dimensions; zero-vector cosine is undefined. Floating-point rounding and tiny dot-product underflow can occur.