mlpeek: semantic similarity of text pairs
text_similarityMeasure semantic similarity for one or up to 50 text pairs by returning embedding cosine similarity scores, useful for matching and duplicate detection.
Instructions
mlpeek: Score the semantic similarity of one or up to 50 text pairs. To rank documents against a query use rerank_documents. Returns the cosine similarity of the embeddings of each text pair (bge-small-en or multilingual-e5-small): one pair as a + b (also a top-level similarity) or 1-50 pairs. Input: a + b, or pairs; each text at most 4,000 characters; optional model. Each text is cut at the model's 512-token window (truncated says so); over 16,384 tokens per request is a 422 (not charged): split it. Runs an open model pinned by hash on Tanod's own CPU (no LLM, no third-party API); an unavailable model is a 503 (not charged). Typically 20-50 ms for one pair, under 1 s for 50 short pairs. Price: USD 0.0005 per pair, at least USD 0.001 per call (1-50 pairs per call: USD 0.001-0.025). Free: 5 mlpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/embeddings-rerank-ner-mcp-server.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | First text of a single pair (at most 4,000 characters). | |
| b | No | Second text of a single pair. | |
| model | No | small-en (English) or multilingual. | small-en |
| pairs | No | Alternative to a / b: 1-50 {a, b} pairs. Priced per pair, minimum USD 0.001 per call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| model | No | ||
| usage | No | ||
| metric | No | ||
| results | No | ||
| similarity | No | ||
| max_tokens_per_text | No |