pub enum SliceDecision {
Slice,
Skip,
}Expand description
Slice a full pack for a specific query using BM25 scoring.
Pre-build the full pack once, then call this per query to retrieve the top-K entries most relevant to the user’s question. This handles the Per-query decision: should we slice the pack for this query, or skip it?
Based on N→F analysis from the 63-probe benchmark:
- bug/crossref/detail queries: pack provides essential context (Δ = +1.0 to +1.8)
- arch/impact/review queries: model already knows from training (Δ = +0.0)
- discriminate/edge/what queries: marginal gain (Δ = +0.2 to +0.8)
This is a pure structural classifier — no API calls, no token cost. Runs in <1ms, zero side effects. Safe to call on every query.
Variants§
Slice
Send the sliced pack — query benefits from context
Skip
Skip the pack — model likely knows the answer
Trait Implementations§
Source§impl Clone for SliceDecision
impl Clone for SliceDecision
impl Copy for SliceDecision
Source§impl Debug for SliceDecision
impl Debug for SliceDecision
impl Eq for SliceDecision
Source§impl PartialEq for SliceDecision
impl PartialEq for SliceDecision
impl StructuralPartialEq for SliceDecision
Auto Trait Implementations§
impl Freeze for SliceDecision
impl RefUnwindSafe for SliceDecision
impl Send for SliceDecision
impl Sync for SliceDecision
impl Unpin for SliceDecision
impl UnsafeUnpin for SliceDecision
impl UnwindSafe for SliceDecision
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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