Skip to content

armgit / ente

Public Imported from GitHub
0

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

From discussion

Manav Rathi2c0e8c76c327
diff --git a/web/apps/photos/src/services/embeddingService.ts b/web/apps/photos/src/services/embeddingService.ts
index 0c254800ab..17ea5a396d 100644
--- a/web/apps/photos/src/services/embeddingService.ts
+++ b/web/apps/photos/src/services/embeddingService.ts
@@ -102,6 +102,10 @@ export const syncCLIPEmbeddings = async () => {
if (!response.diff?.length) {
return;
}
+ // Note: in rare cases we might get a diff entry for an embedding
+ // corresponding to a file which has been deleted (but whose
+ // embedding is enqueued for deletion). Client should expect such a
+ // scenario (all it has to do is just ignore them).
const newEmbeddings = await Promise.all(
response.diff.map(async (embedding) => {
try {