hybrid_search
Blend vector similarity and Postgres full-text search to rank rows by relevance. Configure weights to balance semantic and keyword matching for hybrid retrieval.
Instructions
Rank rows by a weighted blend of vector similarity and Postgres full-text search.
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": {
"table": "<table>",
"embedding_column": "<embedding_column>",
"text_column": "<text_column>",
"query_embedding": "<query_embedding>",
"query_text": "<query_text>"
},
"name": "hybrid_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| table | Yes | ||
| metric | No | cosine | |
| schema | No | public | |
| query_text | Yes | ||
| text_column | Yes | ||
| vector_weight | No | ||
| return_columns | No | ||
| query_embedding | Yes | ||
| embedding_column | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |