You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an index using diskann with vector_ip_ops in pgvectorscale, but it fails with the following error:
ERROR: operator class "vector_ip_ops" does not exist for access method "diskann"
However, the pgvectorscale documentation states that diskann should support vector_ip_ops for inner product (<#>) queries.
Additionally, I see the note:
"inner product indices are not compatible with plain storage"
So I attempted to create the index using bq_compression and bq_speedup, but I still get the same error.
pgvectorscale extension affected
0.5.1
PostgreSQL version used
17.2
What operating system did you use?
Ubuntu 22.04 x64
What installation method did you use?
Docker
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
ERROR: operator class "vector_ip_ops" does not exist for access method "diskann"
How can we reproduce the bug?
DROP INDEX IF EXISTS posts_embedding_idx;
CREATE INDEX posts_embedding_idx ON posts
USING diskann (embedding vector_ip_ops)
WITH (storage_layout = 'bq_speedup');
Are you going to work on the bugfix?
🆘 No, could someone else please work on the bugfix?
The text was updated successfully, but these errors were encountered:
Hi, was this a clean install of the extension, or an upgrade? Wondering if there might be a bug in the latter codepath causing the operator class not to be installed.
After setting up the database, I created the vectorscale extension with:
CREATE EXTENSION IF NOT EXISTS vectorscale CASCADE;
Then, I created the tables:
CREATE TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
embedding VECTOR(7)
);
CREATE TABLE IF NOT EXISTS posts (
id SERIAL PRIMARY KEY,
embedding VECTOR(7)
);
Finally, I attempted to create an index using diskann with vector_ip_ops:
CREATE INDEX posts_embedding_idx ON posts
USING diskann (embedding vector_ip_ops)
WITH (storage_layout = 'bq_compression');
However, I encountered the following error:
ERROR: operator class "vector_ip_ops" does not exist for access method "diskann"
At the same time, I was able to successfully create indexes for cosine similarity and L2 distance.
@tjgreen42@cevian Hi! Just wanted to follow up on this issue. Have you had a chance to take a look? Let me know if you need any additional information or testing from my side—happy to help. Thanks!
What happened?
I'm trying to create an index using
diskann
withvector_ip_ops
in pgvectorscale, but it fails with the following error:ERROR: operator class "vector_ip_ops" does not exist for access method "diskann"
However, the pgvectorscale documentation states that
diskann
should supportvector_ip_ops
for inner product (<#>) queries.Additionally, I see the note:
So I attempted to create the index using
bq_compression
andbq_speedup
, but I still get the same error.pgvectorscale extension affected
0.5.1
PostgreSQL version used
17.2
What operating system did you use?
Ubuntu 22.04 x64
What installation method did you use?
Docker
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
How can we reproduce the bug?
Are you going to work on the bugfix?
🆘 No, could someone else please work on the bugfix?
The text was updated successfully, but these errors were encountered: