Skip to content
Fourohtwo

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

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

BasePolygonSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/vector-similarity

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/util/vector-similarity?candidates=%5B%7B%22id%22%3A%22refund-policy%22%2C%22vector%22%3A%5B0.09%2C0.31%2C0.48%2C0.12%5D%7D%2C%7B%22id%22%3A%22shipping%22%2C%22vector%22%3A%5B0.5%2C0.1%2C0.05%2C0.4%5D%7D%2C%7B%22id%22%3A%22pricing%22%2C%22vector%22%3A%5B0.2%2C0.25%2C0.4%2C0.3%5D%7D%5D&query=%5B0.1%2C0.3%2C0.5%2C0.1%5D&top_k=2");
console.log(await res.json());

Example input

{
  "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"
}