-- +goose Up -- Create sentence_embeddings table using standard Postgres types (no vector extension) CREATE TABLE sentence_embeddings ( id SERIAL PRIMARY KEY, visit_id INTEGER NOT NULL, sentence TEXT NOT NULL, translated TEXT, embeddings FLOAT[] NOT NULL, -- Using standard float array instead of vector created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP ); -- Create unique index for efficient lookups and preventing duplicates CREATE UNIQUE INDEX idx_sentence_embeddings_visit_sentence ON sentence_embeddings (visit_id, sentence); -- +goose Down DROP TABLE IF EXISTS sentence_embeddings;