Skip to main content

VectorSearchFeaturesDyn

Trait VectorSearchFeaturesDyn 

Source
pub trait VectorSearchFeaturesDyn:
    Send
    + Sync
    + 'static {
    // Required methods
    fn top_n(
        &self,
        namespace: Path,
        query: String,
        n: usize,
    ) -> BoxPinFut<Result<Vec<String>, BoxError>>;
    fn top_n_ids(
        &self,
        namespace: Path,
        query: String,
        n: usize,
    ) -> BoxPinFut<Result<Vec<String>, BoxError>>;
}
Expand description

Object-safe vector search interface.

Required Methods§

Source

fn top_n( &self, namespace: Path, query: String, n: usize, ) -> BoxPinFut<Result<Vec<String>, BoxError>>

Finds the top n similar item identifiers for a query string.

Source

fn top_n_ids( &self, namespace: Path, query: String, n: usize, ) -> BoxPinFut<Result<Vec<String>, BoxError>>

Finds the top n similar internal IDs for a query string.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§