pub enum ReduceStrategy {
Structural,
Llm,
}Expand description
Strategy used to reduce several partial DistilledMemory results —
one per transcript chunk — into a single result.
Structural is the default: deterministic, no extra model call, and
therefore no extra risk of re-introducing the prompt-size problem
chunking exists to fix. Llm is strictly opt-in — it can produce better
prose and more semantic deduplication, but it is a second, non-
deterministic pass that re-reads already-distilled output and could
silently drop a detail the first pass captured. Prefer Structural
unless you have a specific reason to accept that tradeoff.
Variants§
Structural
Merge partial results with merge_distilled. Deterministic, no
model call.
Llm
Render partial results back into text and call the distiller on them once more for a consolidated pass.
Trait Implementations§
Source§impl Clone for ReduceStrategy
impl Clone for ReduceStrategy
Source§fn clone(&self) -> ReduceStrategy
fn clone(&self) -> ReduceStrategy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ReduceStrategy
Source§impl Debug for ReduceStrategy
impl Debug for ReduceStrategy
Source§impl Default for ReduceStrategy
impl Default for ReduceStrategy
Source§fn default() -> ReduceStrategy
fn default() -> ReduceStrategy
impl Eq for ReduceStrategy
Source§impl PartialEq for ReduceStrategy
impl PartialEq for ReduceStrategy
Source§fn eq(&self, other: &ReduceStrategy) -> bool
fn eq(&self, other: &ReduceStrategy) -> bool
self and other values to be equal, and is used by ==.