pub struct RerankConfig {
pub max_io_ops: u32,
pub max_io_bytes: u64,
pub max_latency: Duration,
pub coalesce_threshold: u64,
pub min_rerank_candidates: usize,
pub enable_cache: bool,
pub cache_size: usize,
pub io_queue_depth: u32,
pub prefetch_distance: usize,
}Expand description
Configuration for SSD rerank executor
Fields§
§max_io_ops: u32Maximum number of IO operations allowed
max_io_bytes: u64Maximum bytes to read
max_latency: DurationMaximum latency before early termination
coalesce_threshold: u64Threshold for coalescing adjacent reads (bytes) Reads within this gap will be merged
min_rerank_candidates: usizeMinimum number of candidates to rerank before considering early stop
enable_cache: boolEnable hot vector caching
cache_size: usizeCache size in number of vectors
io_queue_depth: u32Queue depth for io_uring (if available)
prefetch_distance: usizePrefetch distance for sequential reads
Implementations§
Source§impl RerankConfig
impl RerankConfig
Sourcepub fn coalesce_threshold(self, bytes: u64) -> Self
pub fn coalesce_threshold(self, bytes: u64) -> Self
Set coalesce threshold
Sourcepub fn max_latency(self, latency: Duration) -> Self
pub fn max_latency(self, latency: Duration) -> Self
Set max latency
Trait Implementations§
Source§impl Clone for RerankConfig
impl Clone for RerankConfig
Source§fn clone(&self) -> RerankConfig
fn clone(&self) -> RerankConfig
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 RerankConfig
impl Debug for RerankConfig
Auto Trait Implementations§
impl Freeze for RerankConfig
impl RefUnwindSafe for RerankConfig
impl Send for RerankConfig
impl Sync for RerankConfig
impl Unpin for RerankConfig
impl UnsafeUnpin for RerankConfig
impl UnwindSafe for RerankConfig
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more