Vector Similarity Calculator
AI / AgentCompute cosine similarity, dot product, and Euclidean / Manhattan distance between two embedding vectors, right in the browser.
When a RAG pipeline retrieves the wrong chunk, the first thing to check is the raw similarity between the query embedding and the candidate embeddings, and this tool does exactly that. Paste two equal-length number vectors (as a JSON array or a plain comma or space separated list) and it returns cosine similarity, dot product, and both Euclidean and Manhattan distance, plus each vector's magnitude. Unlike the Rerank Chunks and Relevance Score tools, which work over raw text using keyword statistics, this operates on actual embedding vectors you already have from an external model, so it reflects the geometry your vector database sees. Cosine similarity ignores magnitude and is the usual metric for comparing embeddings, and it is reported as 0 when either vector is all zeros. It is pure arithmetic that runs entirely client-side, with no vectors sent anywhere.
How to use Vector Similarity Calculator
- 1.Paste your first embedding vector into Vector A as a JSON array like [0.1, 0.2, 0.3], or a plain comma / space separated list.
- 2.Paste a second, equal-length vector into Vector B.
- 3.Read the cosine similarity (the usual embedding metric), dot product, and distances; the two vectors must have the same number of dimensions.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/vector-similarity \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"a":[1,2,3],"b":[4,5,6]}'Get an API key from your dashboard · Full API docs →