Vector Similarity Search
tidb_vector_searchSearch knowledge entries by vector similarity using query embeddings. Retrieve top matching results ranked by similarity score with configurable threshold and output format.
Instructions
Search knowledge entries by vector similarity in TiDB (requires vector embeddings).
NOTE: This is a placeholder for future TiDB vector search functionality. Currently returns a not-implemented message.
Args:
embedding (number[]): Query embedding vector
top_k (number): Number of similar results to return, 1-100 (default: 10)
threshold (number): Minimum similarity threshold, 0-1 (default: 0.7)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: Vector search results with similarity scores.
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": {
"embedding": "<embedding>"
},
"name": "tidb_vector_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Number of similar results to return | |
| embedding | Yes | Query embedding vector | |
| threshold | No | Minimum similarity threshold (0-1) | |
| response_format | No | Output format | markdown |