pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #689: HNSW partial index build?
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #689: HNSW partial index build?
@ 2024-10-01 15:42  "bantmen (@bantmen)" <noreply+bantmen@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: bantmen (@bantmen) @ 2024-10-01 15:42 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I am trying to build an HNSW index over ~18m vectors with `maintenance_work_mem` set to 32gb. Even at lower `ef_construction`, I am getting the memory pressure warning at `6524826 tuples` with the indexing getting stuck at 38%. I considered using `halfvec` but even then the memory fall short. 

Is it possible to partially build the HNSW index somehow so that I can alleviate the RAM needs? I am trying not to increase the RAM because I'd keep having to do that given that this database size will go up to 100m vectors.

Open to suggestions - thanks!

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #689: HNSW partial index build?
@ 2024-10-01 16:30  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2024-10-01 16:30 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @bantmen, check out [this recent discussion](https://github.com/pgvector/pgvector/issues/500#issuecomment-2370265830) for some ideas. I'd also recommend using `halfvec` if it doesn't affect recall much (which it shouldn't in most cases).

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #689: HNSW partial index build?
@ 2024-10-01 16:30  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2024-10-01 16:30 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:[~2024-10-01 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-10-01 15:42 [pgvector/pgvector] issue #689: HNSW partial index build? "bantmen (@bantmen)" <noreply+bantmen@github.com>
2024-10-01 16:30 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-10-01 16:30 ` "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