Przeglądaj źródła

From discussion

Manav Rathi 1 rok temu
rodzic
commit
2c0e8c76c3
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      web/apps/photos/src/services/embeddingService.ts

+ 4 - 0
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 {