pgvector Semantic Embeddings Search
semantic_vector_searchRun cosine similarity searches over franchise operators and menu items to answer natural-language queries, returning nearest-neighbor matches for ownership or menu concepts.
Instructions
PAID ($0.005). Perform high-dimensional cosine similarity semantic vector search across multi-unit operators and menu items using embeddings. Atomically debits $0.005. Requires 'fc_live_...' API key. Type defaults to 'operators' if omitted. 'brand' parameter is only applied when type is 'menu'. Returns 402 if balance insufficient. WHEN TO USE: Use for conceptual natural language queries (e.g. 'private equity franchisee groups in Texas' or 'spicy chicken breakfast sandwich'). WHEN NOT TO USE: Do not use for exact brand catalog keyword searches (use 'search_brands') or coordinate proximity searches (use 'franchise_search_near'). ALTERNATIVES: Use 'search_brands' for keyword catalog matching; use 'get_menu_pricing' for exact store menu lookups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Vector index target: 'operators' for ownership entities (default) or 'menu' for food items | |
| brand | No | Optional canonical brand slug to constrain menu search (e.g. 'mcdonalds', 'chickfila'). Only used when type is 'menu'. | |
| limit | No | Maximum number of nearest-neighbor results to return (default 5, max 20) | |
| query | Yes | Natural language query describing desired operator profile or menu concept (e.g. 'Flynn Restaurant Group Applebees', 'spicy chicken sandwich') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Index target searched ('operators' or 'menu') | |
| brand | No | Brand slug constraint if applied | |
| query | Yes | Query string executed | |
| results | Yes | Nearest-neighbor vector search matches with similarity scores | |
| balance_remaining_usd | Yes | Remaining API credit balance in USD |