Skip to main content

xz_embed/types/
stats.rs

1use serde::{Deserialize, Serialize};
2
3/// 向量存储统计信息
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct StoreStats {
6    /// Total number of vectors stored.
7    pub total_vectors: usize,
8    /// Total dimensions across all stored vectors.
9    pub total_dimensions: usize,
10    /// Approximate memory/disk usage of the vector index in bytes.
11    pub index_size_bytes: u64,
12    /// Approximate memory/disk usage of raw vector data in bytes.
13    pub data_size_bytes: u64,
14    /// Timestamp (epoch millis) of the last index rebuild, if any.
15    pub last_indexed_at: Option<u64>,
16}