pub enum QuantizationOptions {
NoQuant,
Bin,
Q8,
}Expand description
Quantization options for vadd command.
Variants§
NoQuant
in the first VADD call for a given key, NOQUANT forces the vector to be created without int8 quantization, which is otherwise the default.
Bin
forces the vector to use binary quantization instead of int8. This is much faster and uses less memory, but impacts the recall quality.
Q8
forces the vector to use signed 8-bit quantization. This is the default, and the option only exists to make sure to check at insertion time that the vector set is of the same format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantizationOptions
impl RefUnwindSafe for QuantizationOptions
impl Send for QuantizationOptions
impl Sync for QuantizationOptions
impl Unpin for QuantizationOptions
impl UnwindSafe for QuantizationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more