pub struct RetrievalStats {
pub total_retrievals: usize,
pub avg_documents_per_query: f64,
pub avg_top_document_score: Option<f64>,
pub top_queries: Vec<TopRetrievalQuery>,
}Expand description
Retrieval / RAG statistics aggregated across retriever spans.
Fields§
§total_retrievals: usize§avg_documents_per_query: f64§avg_top_document_score: Option<f64>None when no retrieval span emitted a document score.
top_queries: Vec<TopRetrievalQuery>Trait Implementations§
Source§impl Clone for RetrievalStats
impl Clone for RetrievalStats
Source§fn clone(&self) -> RetrievalStats
fn clone(&self) -> RetrievalStats
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 RetrievalStats
impl Debug for RetrievalStats
Source§impl<'de> Deserialize<'de> for RetrievalStats
impl<'de> Deserialize<'de> for RetrievalStats
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 Freeze for RetrievalStats
impl RefUnwindSafe for RetrievalStats
impl Send for RetrievalStats
impl Sync for RetrievalStats
impl Unpin for RetrievalStats
impl UnsafeUnpin for RetrievalStats
impl UnwindSafe for RetrievalStats
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