Skip to content
Fourohtwo

Semantic similarity of two texts for RAG, dedupe and matching

agents.crowdspark.me/v1/text/similarity

Semantic similarity of two texts for RAG, dedupe and matching: JSON body {a, b}, each up to 8,000 chars, any language. Returns a cosine score from bge-m3 embeddings plus a rough band (near_duplicate, high, related, weak, unrelated). Texts are not stored.

BaseAnswering
POSThttps://agents.crowdspark.me/v1/text/similarity

Uptime100% of 2 checks 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.crowdspark.me/v1/text/similarity", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"a":"The cat sat on the mat.","b":"A cat was sitting on a rug."}),
});
console.log(await res.json());

Example input

{
  "a": "The cat sat on the mat.",
  "b": "A cat was sitting on a rug."
}

More from Agent ToolsProvider status