Skip to main content

Module pq

Module pq 

Source

Structs§

EagerOpRef
Eager operation reference for local/synchronous operations.
PQCode
Encoded representation from Product Quantization.
PQCodebook
Serializable representation of a trained PQ codebook. Contains all state needed to reconstruct a ProductQuantizer.
PQDistanceTable
Precomputed distance table for Asymmetric Distance Computation (ADC).
ProductQuantizer
Product Quantizer for vector compression and fast distance computation.
SDCTable
Precomputed centroid-to-centroid distances for Symmetric Distance Computation (SDC).

Enums§

PQError
Error type for PQ codec operations.

Traits§

FinishableError
Trait for error types that can represent “already finished” state.

Functions§

bytes_for_nbits
Bytes needed for NBITS (compile-time ceil(NBITS/8))

Type Aliases§

PQCode8
Backwards-compatible alias for common case (nbits=8)