feat(sql): add problem embedding vector index

This commit is contained in:
Rafał Tyński
2026-10-04 02:44:03 +02:00
parent 2676240440
commit 2bc083fb95
@@ -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<array<float>>;
DEFINE INDEX IF NOT EXISTS problem_embedding ON TABLE problem FIELDS embedding
HNSW DIMENSION 1536 DIST COSINE TYPE F32;