pub struct TieredSearchConfig {
pub rescore_multiplier: usize,
pub use_fp32_final: bool,
pub min_binary_candidates: usize,
pub max_binary_candidates: usize,
}Expand description
Configuration for tiered search
Fields§
§rescore_multiplier: usizeMultiplier for binary search candidates If k=10, binary pass retrieves k × rescore_multiplier = 40 candidates
use_fp32_final: boolUse fp32 for final rescoring (highest precision)
min_binary_candidates: usizeMinimum candidates to retrieve from binary pass
max_binary_candidates: usizeMaximum candidates to retrieve from binary pass
Implementations§
Source§impl TieredSearchConfig
impl TieredSearchConfig
Sourcepub fn fast() -> TieredSearchConfig
pub fn fast() -> TieredSearchConfig
Create config optimized for speed (lower multiplier)
Sourcepub fn quality() -> TieredSearchConfig
pub fn quality() -> TieredSearchConfig
Create config optimized for quality (higher multiplier)
Sourcepub fn precise() -> TieredSearchConfig
pub fn precise() -> TieredSearchConfig
Create config for maximum precision (fp32 final)
Trait Implementations§
Source§impl Clone for TieredSearchConfig
impl Clone for TieredSearchConfig
Source§fn clone(&self) -> TieredSearchConfig
fn clone(&self) -> TieredSearchConfig
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 TieredSearchConfig
impl Debug for TieredSearchConfig
Source§impl Default for TieredSearchConfig
impl Default for TieredSearchConfig
Source§fn default() -> TieredSearchConfig
fn default() -> TieredSearchConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TieredSearchConfig
impl RefUnwindSafe for TieredSearchConfig
impl Send for TieredSearchConfig
impl Sync for TieredSearchConfig
impl Unpin for TieredSearchConfig
impl UnsafeUnpin for TieredSearchConfig
impl UnwindSafe for TieredSearchConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request