Vector Search Playground
Compare cosine, dot-product and Euclidean similarity and run semantic search on a plotted vector space.
Understanding Similarity Metrics
Cosine Similarity
Euclidean Distance
Dot Product
2D Visualization Guide
The scatter plot shows a 2D projection of high-dimensional document vectors. Each point represents a document, and the red star is your query. Point sizes change based on similarity scores, and visual patterns help you understand how each metric behaves differently:
- Cosine: Similar documents cluster by direction from origin
- Euclidean: Similar documents are physically close together
- Dot Product: Considers both distance and position in space