pub struct ContextEvaluation {
pub source_bytes: u64,
pub retained_bytes: u64,
pub byte_reduction_rate: f64,
pub estimated_source_tokens: u64,
pub estimated_retained_tokens: u64,
pub estimated_token_reduction_rate: f64,
pub critical_recall: Option<f64>,
pub erroneous_critical_drops: usize,
pub required_recall: Option<f64>,
pub erroneous_drop_rate: Option<f64>,
pub latency_ms: Option<u64>,
pub cost_usd: Option<f64>,
}Expand description
Offline evaluation metrics; token counts are byte-based estimates.
Fields§
§source_bytes: u64Total source bytes.
retained_bytes: u64Bytes in retained items.
byte_reduction_rate: f64Fraction of bytes parked.
estimated_source_tokens: u64Estimated tokens before selection.
estimated_retained_tokens: u64Estimated tokens after selection.
estimated_token_reduction_rate: f64Estimated fraction of tokens parked.
critical_recall: Option<f64>Recall of critical categories, if any are present.
erroneous_critical_drops: usizeNumber of critical items incorrectly parked.
required_recall: Option<f64>Recall of human-labeled required evidence, if labels were supplied.
erroneous_drop_rate: Option<f64>Fraction of human-labeled required evidence incorrectly parked.
latency_ms: Option<u64>Measured provider and construction latency, when recorded.
cost_usd: Option<f64>Provider cost, only when supplied by a source with pricing data.
Trait Implementations§
Source§impl Clone for ContextEvaluation
impl Clone for ContextEvaluation
Source§impl Debug for ContextEvaluation
impl Debug for ContextEvaluation
Source§impl<'de> Deserialize<'de> for ContextEvaluation
impl<'de> Deserialize<'de> for ContextEvaluation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ContextEvaluation
impl Freeze for ContextEvaluation
impl Move for ContextEvaluation
impl RefUnwindSafe for ContextEvaluation
impl Send for ContextEvaluation
impl Sync for ContextEvaluation
impl Unpin for ContextEvaluation
impl UnsafeUnpin for ContextEvaluation
impl UnwindSafe for ContextEvaluation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more