vector_table_with_index (id int PRIMARY KEY, doc TEXT, embedding VECTOR(3) COMMENT "hnsw(distance=cosine)"); [利用可能なベクトル距離検索関数 ] ・Cosine Distance > SELECT vec_cosine_distance('[1,1,1]', '[1,2,3]'); ・Manhattan Distance > SELECT vec_l1_distance('[1,1,1]', '[1,2,3]'); ・Squared Euclidean > SELECT vec_l2_distance('[1,1,1]', '[1,2,3]'); ・Negative Inner Product > SELECT vec_negative_inner_product('[1,1,1]', '[1,2,3]');