pub struct SearchParams {
pub hybrid_alpha: f64,
pub candidate_k_keyword: i64,
pub candidate_k_vector: i64,
pub final_limit: i64,
}Expand description
Retrieval tuning parameters, decoupled from application config.
Fields§
§hybrid_alpha: f64Weight for semantic vs keyword: hybrid = (1-α)*keyword + α*semantic.
candidate_k_keyword: i64Number of keyword candidates to fetch.
candidate_k_vector: i64Number of vector candidates to fetch.
final_limit: i64Maximum results to return.
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnwindSafe for SearchParams
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