pub struct RagStats {
pub total_documents: usize,
pub total_chunks: usize,
pub index_size_bytes: u64,
pub last_updated: DateTime<Utc>,
pub cache_hit_rate: f32,
pub average_response_time_ms: f32,
}Expand description
RAG engine statistics
Fields§
§total_documents: usizeTotal number of documents in the knowledge base
total_chunks: usizeTotal number of chunks
index_size_bytes: u64Index size in bytes
last_updated: DateTime<Utc>Last updated timestamp
cache_hit_rate: f32Cache hit rate (0.0 to 1.0)
average_response_time_ms: f32Average response time in milliseconds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RagStats
impl<'de> Deserialize<'de> for RagStats
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 RagStats
impl RefUnwindSafe for RagStats
impl Send for RagStats
impl Sync for RagStats
impl Unpin for RagStats
impl UnwindSafe for RagStats
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