search
Semantically search a text collection and retrieve the top-k most relevant chunks with a cosine similarity score.
Instructions
Semantic search a collection. Returns the top-k chunks with a 0-1 cosine score.
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": {
"collection": "<collection>",
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | ||
| collection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |