pub struct RetrieverStats {
pub top_k_count: usize,
pub avg_contribution: f32,
pub unique_docs: usize,
}Expand description
Attribution statistics for each retriever.
Shows how much each retriever contributed to the top-k results.
Fields§
§top_k_count: usizeNumber of top-k documents this retriever contributed.
avg_contribution: f32Average contribution strength for documents in top-k.
unique_docs: usizeDocuments that only this retriever found (unique to this retriever).
Trait Implementations§
Source§impl Clone for RetrieverStats
impl Clone for RetrieverStats
Source§fn clone(&self) -> RetrieverStats
fn clone(&self) -> RetrieverStats
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 moreSource§impl Debug for RetrieverStats
impl Debug for RetrieverStats
Source§impl<'de> Deserialize<'de> for RetrieverStats
impl<'de> Deserialize<'de> for RetrieverStats
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
Source§impl PartialEq for RetrieverStats
impl PartialEq for RetrieverStats
Source§impl Serialize for RetrieverStats
impl Serialize for RetrieverStats
impl StructuralPartialEq for RetrieverStats
Auto Trait Implementations§
impl Freeze for RetrieverStats
impl RefUnwindSafe for RetrieverStats
impl Send for RetrieverStats
impl Sync for RetrieverStats
impl Unpin for RetrieverStats
impl UnsafeUnpin for RetrieverStats
impl UnwindSafe for RetrieverStats
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