Hacker News new | ask | show | jobs
Vector Search in open-source MySQL (villagesql.com)
3 points by deesix 78 days ago
1 comments

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;