Skip to main content

Module build

Module build 

Source
Expand description

HNSW builds for a VectorCollection: the requests the owning core sends to its builder thread, and installing the finished graphs.

Every request carries one vector per local node id, soft-deleted nodes included, so a built graph keeps the ids its segment had. Installing a build applies the tombstones the segment holds at that moment, so a delete that landed while the build ran is kept.

  • A seal build promotes a building segment to sealed.
  • A rebuild replaces a sealed segment in place, from that segment’s own vectors, and quantizes it again under the collection’s config.