Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Code improvement

davidmezzetti5dbb948c859a
diff --git a/src/python/txtai/ann/hnsw.py b/src/python/txtai/ann/hnsw.py
index 35116627..dc018480 100644
--- a/src/python/txtai/ann/hnsw.py
+++ b/src/python/txtai/ann/hnsw.py
@@ -57,7 +57,7 @@ class HNSW(ANN):
for uid in ids:
try:
self.model.mark_deleted(uid)
- self.config["deletes"] = self.config["deletes"] + 1
+ self.config["deletes"] += 1
except RuntimeError:
# Ignore label not found error
continue