Skip to main content

VectorExecutor

Trait VectorExecutor 

Source
pub trait VectorExecutor {
    // Required method
    fn search(
        &self,
        query: &[f32],
        k: usize,
        allowed: &AllowedSet,
    ) -> Vec<ScoredResult>;
}
Expand description

Trait for vector search executor

Required Methods§

Source

fn search( &self, query: &[f32], k: usize, allowed: &AllowedSet, ) -> Vec<ScoredResult>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§