diff_diff_similar
Find the most similar strings to a query from a list of candidates, sorted by similarity from highest to lowest. Ideal for fuzzy matching and near-duplicate detection in text data.
Instructions
[diff] Find the most similar strings to a query from a list of candidates. Returns [{text, score}, ...] sorted by similarity, highest first. Useful for fuzzy matching and near-duplicate detection.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"candidates": "<candidates>"
},
"name": "diff_diff_similar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| candidates | Yes | ||
| top_n | No | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |