Update Snapshots

This commit is contained in:
ManyTheFish 2025-02-17 16:36:58 +01:00 committed by Kerollmops
parent 9f3663e768
commit 5d421abdc4
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
6 changed files with 45 additions and 15 deletions

View file

@ -496,8 +496,6 @@ pub struct IndexStats {
pub number_of_documents: u64,
/// Size of the documents database, in bytes.
pub raw_document_db_size: u64,
/// Maximum size of a document in the documents database.
pub max_document_size: u64,
/// Average size of a document in the documents database.
pub avg_document_size: u64,
/// Whether or not the index is currently ingesting document
@ -518,7 +516,6 @@ impl From<index_scheduler::IndexStats> for IndexStats {
IndexStats {
number_of_documents: stats.inner_stats.documents_database_stats.number_of_entries(),
raw_document_db_size: stats.inner_stats.documents_database_stats.total_value_size(),
max_document_size: stats.inner_stats.documents_database_stats.max_value_size(),
avg_document_size: stats.inner_stats.documents_database_stats.average_value_size(),
is_indexing: stats.is_indexing,
number_of_embeddings: stats.inner_stats.number_of_embeddings,
@ -541,6 +538,8 @@ impl From<index_scheduler::IndexStats> for IndexStats {
(status = OK, description = "The stats of the index", body = IndexStats, content_type = "application/json", example = json!(
{
"numberOfDocuments": 10,
"rawDocumentDbSize": 10,
"avgDocumentSize": 10,
"numberOfEmbeddings": 10,
"numberOfEmbeddedDocuments": 10,
"isIndexing": true,