From 6cad1f5de0d5708fb15c0f37737b7b8b8f569566 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 9 Jan 2024 13:04:47 -0800 Subject: [PATCH] Updated example [skip ci] --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e6b857d..5d0efc0 100644 --- a/README.md +++ b/README.md @@ -320,8 +320,7 @@ CREATE INDEX ON items (category_id); Or a [partial index](https://www.postgresql.org/docs/current/indexes-partial.html) on the vector column for approximate search ```sql -CREATE INDEX ON items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100) - WHERE (category_id = 123); +CREATE INDEX ON items USING hnsw (embedding vector_l2_ops) WHERE (category_id = 123); ``` Use [partitioning](https://www.postgresql.org/docs/current/ddl-partitioning.html) for approximate search on many different values of the `WHERE` columns