tfidf_calculate
Calculate TF-IDF scores to rank documents by relevance to a query, enabling efficient search and information retrieval.
Instructions
Calculate TF-IDF scores to rank documents by relevance to a query.
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": {
"documents": "<documents>",
"query": "<query>"
},
"name": "tfidf_calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query. | |
| documents | Yes | Array of document strings. |