pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] issue #887: PGVector HNSW Index Sizes appear to be the same despite having different construction parameters?
3+ messages / 2 participants
[nested] [flat]
* [pgvector/pgvector] issue #887: PGVector HNSW Index Sizes appear to be the same despite having different construction parameters?
@ 2025-08-15 17:09 "Zhangooses (@Zhangooses)" <noreply+Zhangooses@github.com>
0 siblings, 0 replies; 3+ messages in thread
From: Zhangooses (@Zhangooses) @ 2025-08-15 17:09 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi! I'm using the PGVector extension to create HNSW indexes with different construction parameters. My goal is to see if I will get better recall with the index with higher value m/ef_construction values. However what's weird is that the sizes are the exact same?
for example,
CREATE INDEX test_index
ON test
USING hnsw (embedding vector_l2_ops)
WITH (m = 30, ef_construction = 200)
WHERE field1 = 'male' AND field2 = true;
CREATE INDEX test_index _2
ON test
USING hnsw (embedding vector_l2_ops)
WITH (m = 70, ef_construction = 800)
WHERE field1 = 'male' AND field2 = true;
However:
SELECT pg_size_pretty(pg_relation_size('test_index')) AS index_size;
SELECT pg_size_pretty(pg_relation_size('test_index_2')) AS index_size;
Both have the same value (in this case ~500MB). Any reasoning why? Can confirm that both indexes are created successfully. I would suspect test_index_2 to be way bigger
^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] issue #887: PGVector HNSW Index Sizes appear to be the same despite having different construction parameters?
@ 2025-08-15 17:45 ` "ankane (@ankane)" <noreply+ankane@github.com>
1 sibling, 0 replies; 3+ messages in thread
From: ankane (@ankane) @ 2025-08-15 17:45 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi @Zhangooses, check out #688.
^ permalink raw [nested|flat] 3+ messages in thread
* Re: [pgvector/pgvector] issue #887: PGVector HNSW Index Sizes appear to be the same despite having different construction parameters?
@ 2025-08-15 17:45 ` "ankane (@ankane)" <noreply+ankane@github.com>
1 sibling, 0 replies; 3+ messages in thread
From: ankane (@ankane) @ 2025-08-15 17:45 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane closed this.
^ permalink raw [nested|flat] 3+ messages in thread
end of thread, other threads:[~2025-08-15 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-08-15 17:09 [pgvector/pgvector] issue #887: PGVector HNSW Index Sizes appear to be the same despite having different construction parameters? "Zhangooses (@Zhangooses)" <noreply+Zhangooses@github.com>
2025-08-15 17:45 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-08-15 17:45 ` "ankane (@ankane)" <noreply+ankane@github.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox