diff --git a/backend/migrations/0005_problem_embedding.surql b/backend/migrations/0005_problem_embedding.surql new file mode 100644 index 0000000..9b272f8 --- /dev/null +++ b/backend/migrations/0005_problem_embedding.surql @@ -0,0 +1,6 @@ +-- TarninaHub — migration 0005: problem embeddings for semantic matchmaking +-- Idempotent, additive. Mirrors the innovation vector index. + +DEFINE FIELD IF NOT EXISTS embedding ON TABLE problem TYPE option>; +DEFINE INDEX IF NOT EXISTS problem_embedding ON TABLE problem FIELDS embedding + HNSW DIMENSION 1536 DIST COSINE TYPE F32;