similar_documents
Find similar documents by chunk ID, filter by collection, and control the number of results returned.
Instructions
Find documents similar to a given chunk.
Args:
chunk_id: The chunk ID to find similar documents for.
collection: Optional collection to search in.
top_k: Number of similar results to return.
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": {
"chunk_id": "<chunk_id>"
},
"name": "similar_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| chunk_id | Yes | ||
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |