pub fn embed_document_with(
text: &str,
k1: f64,
b: f64,
avgdl: f64,
) -> SparseVectorExpand description
Embed document text with explicit BM25 parameters.
avgdl <= 0 or non-finite falls back to DEFAULT_AVGDL (it is a
divisor). Frequencies are counted per token ID: on the rare murmur3
collision two terms merge into one dimension with summed counts, which
keeps output deterministic across runs (the server’s own per-string
counting is randomized there, so collided IDs carry no cross-implementation
contract).