create_vector_index
Create an HNSW vector index on a label and embedding property to enable vector, MMR, and graph-vector searches across existing and future vectors.
Instructions
Create an HNSW vector index on a label and property, for vector_search, mmr_search and vector_graph_search.
Existing and later vectors are indexed; a list literal in execute_gql text is stored as a list, not a vector.
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": "create_vector_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m | No | HNSW links per node (engine default 16). | |
| label | Yes | ||
| metric | No | "cosine", "euclidean", "dot_product" or "manhattan". | cosine |
| property | Yes | The property that holds the embeddings, e.g. "embedding". | |
| dimensions | No | Vector size (1536, 384, ...); needed when no node has a vector yet. | |
| ef_construction | No | HNSW build width (engine default 128). |