Search (semantic)
The Search box (in the top bar, or the dedicated Search page) is semantic, not keyword. It finds estimates by meaning — the content of auditor notes, line items, follow-ups, and the estimate header — not just an exact string match.
How it works
- Your query is embedded with Workers AI (
bge-base-en-v1.5). - The vector is matched against the Vectorize index (
estimateiq-notes), which holds the full content of every estimate. - Results are cached in KV for a few minutes, so repeated queries return instantly (the results
show a
cachedtag when served from cache).
GET /api/search?q=... returns the top matches — estimate, insured, carrier, status, and a match
score — each linking to the estimate’s detail page.
Example queries
water mitigation moisture readingsO&P disputeroof code upgradedepreciation holdback