get_cosine_similarity
Compute cosine similarity between two texts using bag-of-words vectors. Results range from 0 (orthogonal) to 1 (identical).
Instructions
Cosine similarity using bag-of-words vectors. 0=orthogonal, 1=identical.
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": {
"text1": "<text1>",
"text2": "<text2>"
},
"name": "get_cosine_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text1 | Yes | ||
| text2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |