resolve_mentions
Resolve mentioned entities to database matches via trigram search. Returns candidate rows, not confirmed matches.
Instructions
Trigram search. Resolve mentioned entities to database matches. Returned rows are candidates, not confirmed matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows per query string (default 5, max 100) | |
| table | Yes | Table name | |
| where | No | SQL WHERE fragment applied with the trigram predicate (no WHERE keyword) | |
| schema | No | Schema (default: public) | |
| columns | No | Payload columns. Omit for all. score is added unless include_scores is false. | |
| mentions | Yes | Search strings (max 20). A single string is accepted as one element. | |
| operator | No | operator=trgm (default) uses % and similarity(). operator=word uses %> and word_similarity(). | |
| text_column | Yes | Text column to match. A trigram index on this column is optional. | |
| include_scores | No | Default true. When false, omit the score column. Ranking is unchanged. | |
| response_format | No | Empty for JSON. "markdown" returns one table per query string, headed Results for {text}. |