vector_search_hash
Perform KNN vector similarity search on vectors stored in Redis hash data structures to find the nearest neighbors.
Instructions
Perform a KNN vector similarity search using Redis 8 or later version on vectors stored in hash data structures.
Args: query_vector: List of floats to use as the query vector. index_name: Name of the Redis index. Unless specifically specified, use the default index name. vector_field: Name of the indexed vector field. Unless specifically required, use the default field name k: Number of nearest neighbors to return. return_fields: List of fields to return (optional).
Returns: A list of matched documents or an error message.
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": {
"query_vector": "<query_vector>"
},
"name": "vector_search_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_vector | Yes | ||
| index_name | No | vector_index | |
| vector_field | No | vector | |
| k | No | ||
| return_fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |