π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Ensure that each entry within an embedding is cast to double
vishnukvmde971bf6bc52f
diff --git a/lib/services/semantic_search/embedding_store.dart b/lib/services/semantic_search/embedding_store.dartindex 27056e8411..92b302f1c3 100644--- a/lib/services/semantic_search/embedding_store.dart+++ b/lib/services/semantic_search/embedding_store.dart@@ -129,8 +129,11 @@ class EmbeddingStore {fileKey,CryptoUtil.base642bin(embedding.decryptionHeader),);- final decodedEmbedding =- jsonDecode(utf8.decode(embeddingData)) as List<double>;+ final List<double> decodedEmbedding =+ jsonDecode(utf8.decode(embeddingData))+ .map((item) => item.toDouble())+ .cast<double>()+ .toList();embeddings.add(Embedding(