Compare two texts
similarityCompare two texts to score how closely their meanings match using a local cosine similarity value, so you can check whether they discuss the same topic.
Instructions
Score how close two texts are in meaning, locally. Returns a cosine between -1 and 1; above about 0.6 usually means the same topic. The order of the two does not matter. Use it to check a pair, such as whether two notes say the same thing; to order many passages against a query use rerank, and to find passages in files use search_folder. Texts longer than a few paragraphs are cut off.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The first text. | |
| b | Yes | The second text. |