pub struct CitationStats {
pub runs_considered: u32,
pub retrieved_total: u64,
pub cited_total: u64,
pub citation_rate: Option<f64>,
}Expand description
C4 — citation signal: what fraction of retrieved memories were actually cited by the model?
Fields§
§runs_considered: u32Runs in the window with at least one context.injected event.
retrieved_total: u64Distinct memory_ids surfaced across all context.injected events in
those runs (from the memory_ids JSON array).
cited_total: u64Distinct memory_ids cited via memory.cited events in those runs.
citation_rate: Option<f64>cited_total / retrieved_total; None when retrieved_total == 0.
Trait Implementations§
Source§impl Clone for CitationStats
impl Clone for CitationStats
Source§fn clone(&self) -> CitationStats
fn clone(&self) -> CitationStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CitationStats
impl Debug for CitationStats
Auto Trait Implementations§
impl Freeze for CitationStats
impl RefUnwindSafe for CitationStats
impl Send for CitationStats
impl Sync for CitationStats
impl Unpin for CitationStats
impl UnsafeUnpin for CitationStats
impl UnwindSafe for CitationStats
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