From discussion

This commit is contained in:
Manav Rathi 2024-05-16 11:09:02 +05:30
parent 1856e344db
commit 2c0e8c76c3
No known key found for this signature in database

View file

@ -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 {