pub struct RetrievalCaseMetrics {
pub id: String,
pub precision_at_k: f64,
pub recall_at_k: f64,
pub reciprocal_rank: f64,
pub ndcg_at_k: f64,
pub usage: Usage,
pub elapsed_micros: u64,
}Expand description
Metrics for one ranked retrieval case.
Fields§
§id: StringCase identity.
precision_at_k: f64Precision at the configured cutoff.
recall_at_k: f64Recall at the configured cutoff.
reciprocal_rank: f64Reciprocal rank of the first relevant result.
ndcg_at_k: f64Normalized discounted cumulative gain.
usage: UsageRetriever-reported usage.
elapsed_micros: u64Host-observed end-to-end duration.
Trait Implementations§
Source§impl Clone for RetrievalCaseMetrics
impl Clone for RetrievalCaseMetrics
Source§fn clone(&self) -> RetrievalCaseMetrics
fn clone(&self) -> RetrievalCaseMetrics
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 RetrievalCaseMetrics
impl Debug for RetrievalCaseMetrics
Source§impl PartialEq for RetrievalCaseMetrics
impl PartialEq for RetrievalCaseMetrics
impl StructuralPartialEq for RetrievalCaseMetrics
Auto Trait Implementations§
impl Freeze for RetrievalCaseMetrics
impl RefUnwindSafe for RetrievalCaseMetrics
impl Send for RetrievalCaseMetrics
impl Sync for RetrievalCaseMetrics
impl Unpin for RetrievalCaseMetrics
impl UnsafeUnpin for RetrievalCaseMetrics
impl UnwindSafe for RetrievalCaseMetrics
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