Skip to main content

Module index_builder_phases

Module index_builder_phases 

Source
Expand description

Phase implementations for GPU-accelerated HNSW index construction.

This module contains the main builder structs and their implementations:

Structs§

BatchSizeCalculator
Calculates optimal batch sizes for GPU index construction based on available GPU memory and vector dimensionality.
ComputedBatch
A batch for which GPU distance computation has been (simulated as) completed.
GpuBatchDistanceComputer
GPU-accelerated batch distance computation
GpuHnswIndexBuilder
GPU-accelerated HNSW index builder
GpuIndexOptimizer
Optimises GPU memory usage during index construction by computing ideal batch sizes and checking memory feasibility.
GpuMemoryBudget
GPU memory budget tracker for index construction.
IncrementalGpuIndexBuilder
Incremental GPU index builder for streaming ingestion
IndexedBatch
A fully indexed batch: neighbor IDs have been selected and are ready to be merged into the final HNSW graph.
PipelinedIndexBuilder
Overlaps CPU preparation work with simulated GPU compute to build an index in a three-stage pipeline: prepare → compute → finalize.
PreparedBatch
A batch of vectors prepared (normalised / packed) on the CPU, ready to be dispatched to a GPU compute stage.