pub struct SearchParams {
pub top_k: usize,
pub n_probe: usize,
pub n_candidate_docs: Option<usize>,
pub centroid_score_threshold: Option<f32>,
}Expand description
Tunable knobs for a single search call.
Fields§
§top_k: usizeNumber of top-scoring documents to return.
n_probe: usizeNumber of top dot-product centroids each query token probes.
n_candidate_docs: Option<usize>Maximum number of candidates surviving PLAID’s
centroid-interaction stage that proceed to full decode +
exact MaxSim. None disables centroid interaction and sends
every probed candidate straight to decode — correct but
slower for large corpora.
centroid_score_threshold: Option<f32>Minimum per-centroid score (max dot product against any query
token) required for a centroid to contribute to candidate
generation and centroid interaction. Centroids below this
threshold are treated as unreachable for this query. None
disables pruning, matching the legacy probe behaviour.
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 moreSource§impl Debug for SearchParams
impl Debug for SearchParams
impl Copy for SearchParams
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more