From 069c30a55dd516136bd35ffc6a79327a7e285a75 Mon Sep 17 00:00:00 2001 From: Mark Harrison Date: Thu, 19 Dec 2024 15:15:34 -0800 Subject: [PATCH] Update vss.md. add INSTALL and LOAD to example. --- docs/extensions/vss.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/extensions/vss.md b/docs/extensions/vss.md index ae84cae48e..e6e9e12fa1 100644 --- a/docs/extensions/vss.md +++ b/docs/extensions/vss.md @@ -13,6 +13,9 @@ See the [announcement blog post]({% post_url 2024-05-03-vector-similarity-search To create a new HNSW (Hierarchical Navigable Small Worlds) index on a table with an `ARRAY` column, use the `CREATE INDEX` statement with the `USING HNSW` clause. For example: ```sql +INSTALL vss; +LOAD vss; + CREATE TABLE my_vector_table (vec FLOAT[3]); INSERT INTO my_vector_table SELECT array_value(a, b, c) FROM range(1, 10) ra(a), range(1, 10) rb(b), range(1, 10) rc(c); CREATE INDEX my_hnsw_index ON my_vector_table USING HNSW (vec);