search
Rank candidate documents by relevance to a query, returning the top matches sorted by similarity score. Provides stateless semantic search over a set of documents.
Instructions
Rank documents by relevance to a query (stateless semantic search).
Args: query: The search query. documents: Candidate documents to rank. top_k: Return only the top K results (default: all). dim: Matryoshka truncation dimension; one of 512, 256, 128, 64, 32.
Returns a dict with results sorted by score (descending).
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>",
"documents": "<documents>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | No | ||
| query | Yes | ||
| top_k | No | ||
| documents | Yes |