similarity_search
Retrieve the k nearest neighbors for a query embedding, with optional metadata filters for precise, injection-safe search.
Instructions
Find the k nearest neighbors to a query embedding.
`filters` is a structured allowlist (column/op/value) — not raw SQL — so
metadata filtering stays injection-safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| table | Yes | ||
| metric | No | cosine | |
| schema | No | public | |
| filters | No | ||
| return_columns | No | ||
| query_embedding | Yes | ||
| embedding_column | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |