-- +goose Up
-- WARNING: This alters the embeddings vector dimension from 1536 to 384.
-- Ensure you are switching to a 384-dim embedding model (e.g., all-minilm).
-- If existing rows have 1536-d vectors this command will fail; you may need to
-- TRUNCATE TABLE sentence_embeddings first (after backing up) before applying.
ALTER TABLE sentence_embeddings
    ALTER COLUMN embeddings TYPE vector(384);

-- +goose Down
-- Revert to 1536 dimensions (for models like OpenAI text-embedding-3-large).
-- Will fail if existing rows are 384-d.
ALTER TABLE sentence_embeddings
    ALTER COLUMN embeddings TYPE vector(1536);

