Apply review suggestions

This commit is contained in:
Mubelotix
2025-07-22 10:56:05 +02:00
parent ab07e9480e
commit 0014ed3114
3 changed files with 161 additions and 139 deletions

View File

@ -128,6 +128,7 @@ impl EmbeddingStatus {
pub fn is_user_provided(&self, docid: DocumentId) -> bool {
self.user_provided.contains(docid)
}
/// Whether vectors should be regenerated for that document and that embedder.
pub fn must_regenerate(&self, docid: DocumentId) -> bool {
let invert = self.skip_regenerate_different_from_user_provided.contains(docid);