pub trait VectorIndex: Send + Sync {
// Required methods
fn kind(&self) -> VectorIndexKind;
fn rows(&self) -> usize;
fn search(
&self,
query: &[f32],
k: usize,
ef: usize,
) -> Result<Vec<(u32, f32)>>;
}Expand description
A nearest-neighbour index over the rows of one VectorSnapshot.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".