pub struct CodebookEntry {
pub id: String,
pub pattern: String,
pub frequency: usize,
pub idf: f64,
}Expand description
Cross-file semantic deduplication via TF-IDF codebook.
Identifies patterns that appear frequently across files (high TF, low IDF) and creates short references for them. This avoids sending the same boilerplate to the LLM multiple times across different file reads.
Fields§
§id: String§pattern: String§frequency: usize§idf: f64Trait Implementations§
Source§impl Clone for CodebookEntry
impl Clone for CodebookEntry
Source§fn clone(&self) -> CodebookEntry
fn clone(&self) -> CodebookEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodebookEntry
impl RefUnwindSafe for CodebookEntry
impl Send for CodebookEntry
impl Sync for CodebookEntry
impl Unpin for CodebookEntry
impl UnsafeUnpin for CodebookEntry
impl UnwindSafe for CodebookEntry
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