From 41d2b1e52b21907f2779776b7c9403c4f8e8cb70 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 10 Mar 2025 14:23:07 +0100 Subject: [PATCH] Analytics --- crates/meilisearch/src/analytics/segment_analytics.rs | 3 +++ crates/meilisearch/src/routes/features.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/crates/meilisearch/src/analytics/segment_analytics.rs b/crates/meilisearch/src/analytics/segment_analytics.rs index 63882468a..a681e9e29 100644 --- a/crates/meilisearch/src/analytics/segment_analytics.rs +++ b/crates/meilisearch/src/analytics/segment_analytics.rs @@ -198,6 +198,7 @@ struct Infos { experimental_limit_batched_tasks_total_size: u64, experimental_network: bool, experimental_get_task_documents_route: bool, + experimental_composite_embedders: bool, gpu_enabled: bool, db_path: bool, import_dump: bool, @@ -290,6 +291,7 @@ impl Infos { contains_filter, network, get_task_documents_route, + composite_embedders, } = features; // We're going to override every sensible information. @@ -309,6 +311,7 @@ impl Infos { experimental_reduce_indexing_memory_usage, experimental_network: network, experimental_get_task_documents_route: get_task_documents_route, + experimental_composite_embedders: composite_embedders, gpu_enabled: meilisearch_types::milli::vector::is_cuda_enabled(), db_path: db_path != PathBuf::from("./data.ms"), import_dump: import_dump.is_some(), diff --git a/crates/meilisearch/src/routes/features.rs b/crates/meilisearch/src/routes/features.rs index 6ddda7115..eb8e7ac04 100644 --- a/crates/meilisearch/src/routes/features.rs +++ b/crates/meilisearch/src/routes/features.rs @@ -131,6 +131,7 @@ pub struct PatchExperimentalFeatureAnalytics { contains_filter: bool, network: bool, get_task_documents_route: bool, + composite_embedders: bool, } impl Aggregate for PatchExperimentalFeatureAnalytics { @@ -146,6 +147,7 @@ impl Aggregate for PatchExperimentalFeatureAnalytics { contains_filter: new.contains_filter, network: new.network, get_task_documents_route: new.get_task_documents_route, + composite_embedders: new.composite_embedders, }) } @@ -170,6 +172,7 @@ impl Aggregate for PatchExperimentalFeatureAnalytics { contains_filter: Some(false), network: Some(false), get_task_documents_route: Some(false), + composite_embedders: Some(false), })), (status = 401, description = "The authorization header is missing", body = ResponseError, content_type = "application/json", example = json!( { @@ -234,6 +237,7 @@ async fn patch_features( contains_filter, network, get_task_documents_route, + composite_embedders, }, &req, );