Skip to content

Commit 32fe96d

Browse files
committed
chore: it can't be undefined anymore, so this check is useless
1 parent d68deee commit 32fe96d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/common/search/vectorSearchEmbeddings.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ export class VectorSearchEmbeddings {
7575
}
7676

7777
const embeddings = await this.embeddingsForNamespace({ database, collection, provider });
78-
79-
if (!embeddings) {
80-
return [];
81-
}
82-
8378
return embeddings.filter((emb) => !this.documentPassesEmbeddingValidation(emb, document));
8479
}
8580

0 commit comments

Comments
 (0)