From discussion
This commit is contained in:
parent
1856e344db
commit
2c0e8c76c3
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue