pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #934: Q: Similar results over multiple instances
4+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #934: Q: Similar results over multiple instances
@ 2025-12-08 15:02  "johannilsson-cmw (@johannilsson-cmw)" <noreply+johannilsson-cmw@github.com>
  0 siblings, 0 replies; 4+ messages in thread

From: johannilsson-cmw (@johannilsson-cmw) @ 2025-12-08 15:02 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I'm using pgvector in connection with blockchains, and I want to be able to query several instances with the same query and ideally get the same answer back from all instances (for consensus and write to the chain). These instances will be populated with identical vectors (not replicated) in the same order, but since randomness is part of building HNSW indexes, I assume that identical queries against instances with identical data can still differ? Is there any way to increase the likelihood that the indexes on the different instances end up being more similar, and thus return more similar answers? Maybe a seed to control the randomness etc? Or is it only during querying that one can work on getting back as similar a result as possible?

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

* Re: [pgvector/pgvector] issue #934: Q: Similar results over multiple instances
@ 2025-12-08 17:36  "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2025-12-08 17:36 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @johannilsson-cmw, a few options for similar results across multiple instances would be:

1. Use exact search
2. Use streaming replication
3. Fork pgvector to remove randomness

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

* Re: [pgvector/pgvector] issue #934: Q: Similar results over multiple instances
@ 2025-12-08 17:36  "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2025-12-08 17:36 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 #934: Q: Similar results over multiple instances
@ 2025-12-09 10:33  "johannilsson-cmw (@johannilsson-cmw)" <noreply+johannilsson-cmw@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: johannilsson-cmw (@johannilsson-cmw) @ 2025-12-09 10:33 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thank you @ankane ! Just out of curiosity, how would a removed randomness affect HNSW?

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


end of thread, other threads:[~2025-12-09 10:33 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-08 15:02 [pgvector/pgvector] issue #934: Q: Similar results over multiple instances "johannilsson-cmw (@johannilsson-cmw)" <noreply+johannilsson-cmw@github.com>
2025-12-08 17:36 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-12-08 17:36 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-12-09 10:33 ` "johannilsson-cmw (@johannilsson-cmw)" <noreply+johannilsson-cmw@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