From fe2cd82587aa5b581865b7f59cebba0f8295b713 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sat, 10 Jan 2026 09:16:37 +0200 Subject: [PATCH] fix: Add embedding column to epics table Migration 003: enables semantic search for epics - ALTER TABLE epics ADD COLUMN embedding vector(1024) - HNSW index for similarity search Co-Authored-By: Claude Opus 4.5 --- migrations/003_epics_embedding.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 migrations/003_epics_embedding.sql diff --git a/migrations/003_epics_embedding.sql b/migrations/003_epics_embedding.sql new file mode 100644 index 0000000..c73589a --- /dev/null +++ b/migrations/003_epics_embedding.sql @@ -0,0 +1,12 @@ +-- Migration 003: Add embedding column to epics table +-- Enables semantic search for epics + +-- Add embedding column to epics table +ALTER TABLE epics ADD COLUMN IF NOT EXISTS embedding vector(1024); + +-- Create HNSW index for fast vector similarity search +CREATE INDEX IF NOT EXISTS idx_epics_embedding ON epics USING hnsw (embedding vector_cosine_ops); + +-- Record migration +INSERT INTO schema_migrations (version, applied_at) VALUES ('003_epics_embedding', NOW()) +ON CONFLICT DO NOTHING;