codebook_neighbors
Retrieves nearest notes by cosine similarity in a hyperdimensional vector space. Provide a note ID and directory to get related notes.
Instructions
Nearest notes to a given note by pure cosine similarity in the hypervector space.
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": {
"notes_dir": "<notes_dir>",
"note_id": "<note_id>"
},
"name": "codebook_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes_dir | Yes | ||
| note_id | Yes | ||
| glob | No | *.md | |
| k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |