← Back to directory

Compare one query embedding with up to 5,000 candidate embeddings (plain arrays ...

https://agents.204-168-199-108.sslip.io/v1/util/vector-similarity

Overview

Compare one query embedding with up to 5,000 candidate embeddings (plain arrays or {id, vector} objects, any model, same dimensions) and get them ranked by cosine similarity (default), dot product or euclidean distance, with top_k and an optional min_score cut-off. Also reports the query norm and whether vectors are unit-normalized. Use it for semantic search, RAG re-ranking, dedupe or clustering without running a vector database. Pure function.

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network Base
Category tools/search
Provider Embedding vector similarity
Source bazaar
Indexed 2026-12-01 21:26:57

Health

Status healthy
Latency (p50) 120ms
Uptime (30d) 100.0%
Reliability Score 97/100
Last Checked 2026-12-05 01:35:01
Last Healthy 2026-12-05 01:35:01
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "candidates": "[{\"id\":\"refund-policy\",\"vector\":[0.09,0.31,0.48,0.12]},{\"id\":\"shipping\",\"vector\":[0.5,0.1,0.05,0.4]},{\"id\":\"pricing\",\"vector\":[0.2,0.25,0.4,0.3]}]", "query": "[0.1,0.3,0.5,0.1]", "top_k": "2" }, "type": "http" }

Output Schema

{ "example": { "candidates": 3, "dimensions": 4, "metric": "cosine", "note": "Cosine 1 = same direction, 0 = unrelated, -1 = opposite.", "query_is_normalized": false, "query_norm": 0.6, "results": [ { "id": "refund-policy", "rank": 1, "score": 0.99871 }, { "id": "pricing", "rank": 2, "score": 0.912331 } ], "returned": 2 }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 01:35:01 healthy 402 111ms
2026-12-05 00:58:15 healthy 402 120ms
2026-12-04 18:05:11 healthy 402 7767ms