MCPcopy Create free account
hub / github.com/cosdata/cosdata / batch_search

Method batch_search

src/indexes/mod.rs:262–274  ·  view source on GitHub ↗
(
        &self,
        collection: &Collection,
        queries: Vec<Self::SearchInput>,
        options: &Self::SearchOptions,
        config: &Config,
        return_raw_text: bool,
    )

Source from the content-addressed store, hash-verified

260 }
261
262 fn batch_search(
263 &self,
264 collection: &Collection,
265 queries: Vec<Self::SearchInput>,
266 options: &Self::SearchOptions,
267 config: &Config,
268 return_raw_text: bool,
269 ) -> Result<Vec<Vec<SearchResult>>, WaCustomError> {
270 queries
271 .into_par_iter()
272 .map(|query| self.search(collection, query, options, config, return_raw_text))
273 .collect()
274 }
275}

Callers 4

batch_dense_searchFunction · 0.80
batch_sparse_searchFunction · 0.80
batch_tf_idf_searchFunction · 0.80
batch_usv_searchFunction · 0.80

Implementers 5

key_value.rssrc/indexes/key_value.rs
usv.rssrc/indexes/usv.rs
mod.rssrc/indexes/inverted/mod.rs
mod.rssrc/indexes/tf_idf/mod.rs
mod.rssrc/indexes/hnsw/mod.rs

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected