neondatabase / pg_embedding

Hierarchical Navigable Small World (HNSW) algorithm for vector similarity search in PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: unrecognized parameter "maxelements"

mineshaftgap opened this issue · comments

Steps to reproduce

  1. CREATE EXTENSION IF NOT EXISTS embedding;
  2. CREATE TABLE test_data(id integer PRIMARY KEY, embedding real[]);
  3. CREATE INDEX ON test_data USING hnsw (embedding) WITH (maxelements = 1000000, dims=1536, m=32);

Expected result

CREATE INDEX
Index created

Actual result

ERROR: unrecognized parameter "maxelements"

Environment

Ubuntu 22.04
Postgres 16

Logs, links