semantic_search
Search entities by semantic similarity: embed a natural language query and retrieve the closest matching rows from vector embeddings, with built-in PII protection.
Instructions
Vector similarity search over an entity's embedding column (pgvector).
query is embedded locally and matched against the entity's configured
embedding; the closest rows are returned (the embedding itself never is).
Requires the entity to have a search config and a local embedding model
(SQL_STEWARD_EMBED_URL). PostgreSQL-only. Same PII refusal as everything else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | ||
| entity | Yes | ||
| filters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||