pub enum SummarizationMode {
Topic,
Short,
Standard,
Full,
Expand,
}Expand description
Compression / expansion target for summarize.
Variants§
Topic
1–5 words — return just the project / topic name. Used for chat titles and topic labels.
Short
~20% of the source — one or two essential statements.
Standard
~50% of the source — keep all essential statements plus the highest- weighted features.
Full
100% — every statement, in weight order.
Expand
~200% — every statement plus NSM-style paraphrases that expand compound words into semantic primes.
Implementations§
Source§impl SummarizationMode
impl SummarizationMode
Sourcepub const fn target_percent(self) -> u32
pub const fn target_percent(self) -> u32
Target size relative to the input statement count, expressed as a
percentage. Used by SummarizationConfig::effective_max_statements
when the caller does not pin an explicit cap. Integer math keeps the
pipeline free of floating-point casts.
Sourcepub const fn one_step_shorter(self) -> Self
pub const fn one_step_shorter(self) -> Self
The next-shorter mode on the detail ladder, used to bound recursion when
composing nested summaries (a directory describes its children one mode
shorter than itself). Topic is the fixed point: it cannot get shorter.
Trait Implementations§
Source§impl Clone for SummarizationMode
impl Clone for SummarizationMode
Source§fn clone(&self) -> SummarizationMode
fn clone(&self) -> SummarizationMode
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 SummarizationMode
Source§impl Debug for SummarizationMode
impl Debug for SummarizationMode
Source§impl Default for SummarizationMode
impl Default for SummarizationMode
Source§fn default() -> SummarizationMode
fn default() -> SummarizationMode
impl Eq for SummarizationMode
Source§impl PartialEq for SummarizationMode
impl PartialEq for SummarizationMode
impl StructuralPartialEq for SummarizationMode
Auto Trait Implementations§
impl Freeze for SummarizationMode
impl RefUnwindSafe for SummarizationMode
impl Send for SummarizationMode
impl Sync for SummarizationMode
impl Unpin for SummarizationMode
impl UnsafeUnpin for SummarizationMode
impl UnwindSafe for SummarizationMode
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.