pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #606: Index tweaking for getting some specific recall 4+ messages / 3 participants [nested] [flat]
* [pgvector/pgvector] issue #606: Index tweaking for getting some specific recall @ 2024-06-25 11:07 "Giorgi (@Giorgi)" <noreply+Giorgi@github.com> 0 siblings, 0 replies; 4+ messages in thread From: Giorgi (@Giorgi) @ 2024-06-25 11:07 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hello, When creating an index (HNSW or IVFFlat) how do I know what values to use for the index parameters to get the desired recall? For example, let's say I want to have a recall of 0.97 with HNSW. How do I calculate what values to use for `m` and `ef_construction`? ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #606: Index tweaking for getting some specific recall @ 2024-06-25 16:24 "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2024-06-25 16:24 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @Giorgi, check out https://github.com/pgvector/pgvector/issues/543#issuecomment-2098860327. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #606: Index tweaking for getting some specific recall @ 2024-06-25 16:24 "ankane (@ankane)" <noreply+ankane@github.com> 2 siblings, 0 replies; 4+ messages in thread From: ankane (@ankane) @ 2024-06-25 16:24 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 4+ messages in thread
* Re: [pgvector/pgvector] issue #606: Index tweaking for getting some specific recall @ 2025-05-05 06:46 "TopCoder2K (@TopCoder2K)" <noreply+TopCoder2K@github.com> 2 siblings, 0 replies; 4+ messages in thread From: TopCoder2K (@TopCoder2K) @ 2025-05-05 06:46 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane, but what if I don't obtain the desired Recall even with `m=64, ef_construction=512` (I have 88.5% but I'd like to have 95%+)? Moreover, `ef_construction` can't exceed 1000, but even if I could break the limits, increasing `m` and `ef_construction` wouldn't add much (with `m=32, ef_construction=256` I had 84%). And building the HNSW index with `m=64, ef_construction=512` already takes ≈8 hours. Probably, my case is specific, since I measure Recall on TOP-1000 and I have a significant amount of duplicate vectors (for example, for one of my partitions, the hugest group of duplicate vectors reaches 1.5% of the total number of vectors and around 20% of vectors belong to some duplicate group). ^ permalink raw [nested|flat] 4+ messages in thread
end of thread, other threads:[~2025-05-05 06:46 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-06-25 11:07 [pgvector/pgvector] issue #606: Index tweaking for getting some specific recall "Giorgi (@Giorgi)" <noreply+Giorgi@github.com> 2024-06-25 16:24 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-06-25 16:24 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-05-05 06:46 ` "TopCoder2K (@TopCoder2K)" <noreply+TopCoder2K@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