Rename HannoyStats to VectorStoreStats

The stats can be provided by any backend
This commit is contained in:
Louis Dureuil
2025-09-03 14:45:31 +02:00
parent b05bcf2c13
commit c32c74671d
5 changed files with 13 additions and 13 deletions

View File

@ -645,7 +645,7 @@ impl VectorStore {
pub fn aggregate_stats(
&self,
rtxn: &RoTxn,
stats: &mut HannoyStats,
stats: &mut VectorStoreStats,
) -> Result<(), crate::Error> {
if self.backend == VectorStoreBackend::Arroy {
if self.quantized {
@ -1161,7 +1161,7 @@ where
}
#[derive(Debug, Default, Clone)]
pub struct HannoyStats {
pub struct VectorStoreStats {
pub number_of_embeddings: u64,
pub documents: RoaringBitmap,
}