pub enum VectorQuantization {
NoQuant,
Q8,
Bin,
}Available on crate feature
vector-sets only.Expand description
Quantization options for vector storage
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.
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.
Bin
Forces the vector to use binary quantization instead of int8. This is much faster and uses less memory, but impacts the recall quality.
Trait Implementations§
Source§impl Clone for VectorQuantization
impl Clone for VectorQuantization
Source§fn clone(&self) -> VectorQuantization
fn clone(&self) -> VectorQuantization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VectorQuantization
Auto Trait Implementations§
impl Freeze for VectorQuantization
impl RefUnwindSafe for VectorQuantization
impl Send for VectorQuantization
impl Sync for VectorQuantization
impl Unpin for VectorQuantization
impl UnwindSafe for VectorQuantization
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