Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

enable usearch for search for all

laurenspriem88316d7deebd
diff --git a/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart
index 72dfbd11b2..178d856eb5 100644
--- a/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart
+++ b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart
@@ -1458,7 +1458,7 @@ class ClusterFeedbackService<T> {
Future<void> _prepareClusterCentroidVectorDbForSuggestionsInternal() async {
try {
- if (!flagService.usearchForSearch) return;
+ if (!flagService.usearchForSuggestions) return;
if (!flagService.hasGrantedMLConsent) return;
if (!await _clusterCentroidVectorDB.checkIfMigrationDone()) {
await _mlDataDBForCentroidVectorDb
@@ -1479,7 +1479,7 @@ class ClusterFeedbackService<T> {
}
Future<bool> _canUseClusterCentroidVectorDbForSuggestions() async {
- if (!flagService.usearchForSearch) return false;
+ if (!flagService.usearchForSuggestions) return false;
if (!flagService.hasGrantedMLConsent) return false;
if (await _clusterCentroidVectorDB.checkIfMigrationDone()) return true;
unawaited(_prepareClusterCentroidVectorDbForSuggestions());
diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
index 9ac2cfc8bd..fe67ea73ff 100644
--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
@@ -73,7 +73,9 @@ class FlagService {
bool get enableVectorDb => hasGrantedMLConsent;
- bool get usearchForSearch => internalUser;
+ bool get usearchForSearch => true;
+
+ bool get usearchForSuggestions => internalUser;
String get castUrl => flags.castUrl;