vector_search
Finds the nearest nodes to a query vector or to a given node's stored embedding in a vector index. Returns closest matches first for similarity search without an embedding model.
Instructions
Find the k nodes nearest to query_vector, or to node like_node_id, in a vector index.
Without an embedding model, use like_node_id ("what is most like this node?"). Nearest first.
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": {
"label": "<label>",
"property": "<property>"
},
"name": "vector_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of results. | |
| ef | No | HNSW search width; higher finds more, slower. | |
| label | Yes | ||
| property | Yes | The property that holds the embeddings, e.g. "embedding". | |
| like_node_id | No | Search near this node's stored vector; the node itself is left out. | |
| query_vector | No | The query embedding (the index's model and size), or use like_node_id. |