Skip to main content

adaptive_slice

Function adaptive_slice 

Source
pub fn adaptive_slice(
    pack: &str,
    query: &str,
    top_k: usize,
) -> (String, SliceDecision)
Expand description

Slice a pack for a specific query, but only if the classifier says it’s worth it. Returns (sliced_content, decision) so callers can log/meter the decision.