pub trait VectorStoreIndexDyn: Send + Sync {
// Required methods
fn top_n<'a>(
&'a self,
query: &'a str,
n: usize,
) -> BoxFuture<'a, TopNResults>;
fn top_n_ids<'a>(
&'a self,
query: &'a str,
n: usize,
) -> BoxFuture<'a, Result<Vec<(f64, String)>, VectorStoreError>>;
}Required Methods§
fn top_n<'a>(&'a self, query: &'a str, n: usize) -> BoxFuture<'a, TopNResults>
fn top_n_ids<'a>( &'a self, query: &'a str, n: usize, ) -> BoxFuture<'a, Result<Vec<(f64, String)>, VectorStoreError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".