Failure when creating Euclidean/Cosine hnsw indexes
dannyseismic opened this issue · comments
Danny Myers commented
I'm getting an error when I try to create Euclidean/Cosine hnsw indexes. The ann_manhattan_ops
index seems to work fine.
Steps to reproduce
These fail:
CREATE INDEX ON documents USING hnsw(embedding) WITH (dims=384, m=3, efconstruction=5, efsearch=5);
CREATE INDEX ON documents USING hnsw(embedding ann_cos_ops) WITH (dims=384, m=3, efconstruction=5, efsearch=5);
This works:
CREATE INDEX ON documents USING hnsw(embedding ann_manhattan_ops) WITH (dims=384, m=3, efconstruction=5, efsearch=5);
Expected result
Index created
Actual result
[XX000] ERROR: Function is not supported by HNSW inodex
Environment
Postgres 15 Docker
Logs, links
Happy to provide this with guidance on what you need.