deckhearth/.convoys/scan-visual-catalog-search/brief-1-migration-schema.md
varutasu 8f09ed1ef6
feat(scanner): Layer-0 visual catalog search (Phase 3) (#160)
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>
2026-08-14 21:46:39 -05:00

533 B

convoy brief_number depends_on recommended_model model_tier files
scan-visual-catalog-search 1
composer-2.5 standard
migrations/1782000000001_add-card-embeddings.js
docs/SCHEMA_MAP.md

Brief 1: pgvector migration + SCHEMA_MAP

Goal

Add vector(1024) embedding column + HNSW index on cards.

Acceptance criteria

  • CREATE EXTENSION IF NOT EXISTS vector
  • cards.embedding, cards.embedded_at
  • idx_cards_embedding_hnsw partial index
  • SCHEMA_MAP documents layer 0 + pgvector