pub struct Bm25Params {
pub k1: f64,
pub b: f64,
}Expand description
Tuning parameters for BM25. Per Phase 8 Q4 the public surface still
exposes these as a struct so we can grow per-call overrides later
without breaking signatures, but the Bm25Params::default() values
(k1 = 1.5, b = 0.75) are fixed for the MVP and match SQLite FTS5.
Fields§
§k1: f64Term-frequency saturation. Higher → less aggressive saturation
(each additional occurrence keeps adding to the score). Typical
range is [1.2, 2.0]; SQLite FTS5 ships 1.5.
b: f64Length-normalization weight. 0.0 → no length normalization,
1.0 → fully proportional. SQLite FTS5 ships 0.75.
Trait Implementations§
Source§impl Clone for Bm25Params
impl Clone for Bm25Params
Source§fn clone(&self) -> Bm25Params
fn clone(&self) -> Bm25Params
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bm25Params
impl Debug for Bm25Params
Source§impl Default for Bm25Params
impl Default for Bm25Params
Source§impl PartialEq for Bm25Params
impl PartialEq for Bm25Params
Source§fn eq(&self, other: &Bm25Params) -> bool
fn eq(&self, other: &Bm25Params) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Bm25Params
impl StructuralPartialEq for Bm25Params
Auto Trait Implementations§
impl Freeze for Bm25Params
impl RefUnwindSafe for Bm25Params
impl Send for Bm25Params
impl Sync for Bm25Params
impl Unpin for Bm25Params
impl UnsafeUnpin for Bm25Params
impl UnwindSafe for Bm25Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more