pub struct SemanticCacheStats {
pub hits: u64,
pub misses: u64,
pub embedding_errors: u64,
pub avg_similarity: f32,
pub cached_entries: usize,
}Expand description
Statistics for semantic cache performance
Fields§
§hits: u64Number of cache hits (semantically similar queries found)
misses: u64Number of cache misses (no similar query found)
embedding_errors: u64Number of embedding generation failures
avg_similarity: f32Average similarity score for cache hits
cached_entries: usizeTotal number of cached entries
Implementations§
Trait Implementations§
Source§impl Clone for SemanticCacheStats
impl Clone for SemanticCacheStats
Source§fn clone(&self) -> SemanticCacheStats
fn clone(&self) -> SemanticCacheStats
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 SemanticCacheStats
impl Debug for SemanticCacheStats
Source§impl Default for SemanticCacheStats
impl Default for SemanticCacheStats
Source§fn default() -> SemanticCacheStats
fn default() -> SemanticCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SemanticCacheStats
impl RefUnwindSafe for SemanticCacheStats
impl Send for SemanticCacheStats
impl Sync for SemanticCacheStats
impl Unpin for SemanticCacheStats
impl UnwindSafe for SemanticCacheStats
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