Add pgvector embeddings on cards, server-side cohere/embed-v4.0 via AI Gateway, kNN identify route, and L0→L1→L2 client orchestration with empty-index fast escalate and id-cursor backfill job. Co-authored-by: Cursor <cursoragent@cursor.com>
642 B
642 B
| convoy | brief_number | depends_on | recommended_model | model_tier | files | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| scan-visual-catalog-search | 2 |
|
composer-2.5-fast | fast |
|
Brief 2: Catalog embedding backfill
Goal
Server-side embed job using cohere/embed-v4.0 via AI Gateway; idempotent backfill from cards.image_url.
Acceptance criteria
lib/card-embed.jsexportsembedCardImage,formatEmbeddingForPgnpm run backfill-embeddingsscript (skips rows with embedding unless FORCE=1)- Rate-limited (
SLEEP_MS) and DRY_RUN support