Hacker News new | ask | show | jobs
by deesix 75 days ago
Code to create HNSW index:

CREATE TABLE demo_vectors ( id INT PRIMARY KEY, embedding SVECTOR(3) NOT NULL, INDEX idx_embedding (embedding hnsw_l2) USING EXTENDED(hnsw) ) ENGINE=InnoDB;