pub struct VectorIndexOptions {
pub metric: VectorMetric,
pub m: usize,
pub ef_construction: usize,
}Expand description
Parameters of a vector index, see
RelationalDb::create_vector_index.
Fields§
§metric: VectorMetricThe metric the index is built for; searches with another metric scan the table instead.
m: usizeLinks per node (layer 0 keeps up to 2 * m). Higher: better recall,
more space, slower writes. At least 2.
ef_construction: usizeCandidates considered while inserting. Higher: a better graph and slower writes. At least 1.
Trait Implementations§
Source§impl Clone for VectorIndexOptions
impl Clone for VectorIndexOptions
Source§fn clone(&self) -> VectorIndexOptions
fn clone(&self) -> VectorIndexOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VectorIndexOptions
Source§impl Debug for VectorIndexOptions
impl Debug for VectorIndexOptions
Source§impl Default for VectorIndexOptions
impl Default for VectorIndexOptions
Source§fn default() -> VectorIndexOptions
fn default() -> VectorIndexOptions
Returns the “default value” for a type. Read more
impl Eq for VectorIndexOptions
Source§impl PartialEq for VectorIndexOptions
impl PartialEq for VectorIndexOptions
impl StructuralPartialEq for VectorIndexOptions
Auto Trait Implementations§
impl Freeze for VectorIndexOptions
impl RefUnwindSafe for VectorIndexOptions
impl Send for VectorIndexOptions
impl Sync for VectorIndexOptions
impl Unpin for VectorIndexOptions
impl UnsafeUnpin for VectorIndexOptions
impl UnwindSafe for VectorIndexOptions
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