Skip to main content

embed_document_with_params

Function embed_document_with_params 

Source
pub fn embed_document_with_params(
    text: &str,
    params: &Bm25Params,
) -> SparseVector
Expand description

Embed document text with validated Bm25Params.

Prefer this over embed_document_with on configurable paths: the parameters are validated once at construction instead of sanitized per call.