Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Update comment

davidmezzetti399f584d448b
diff --git a/src/python/txtai/ann/dense/faiss.py b/src/python/txtai/ann/dense/faiss.py
index cbef53bf..7d010fc0 100644
--- a/src/python/txtai/ann/dense/faiss.py
+++ b/src/python/txtai/ann/dense/faiss.py
@@ -174,7 +174,7 @@ class Faiss(ANN):
"""
# Calculate number of IVF cells where x = min(4 * sqrt(embeddings count), embeddings count / 39)
- # Faiss requires at least 39 * x data points
+ # Faiss requires at least 39 points per cluster
return max(min(round(4 * math.sqrt(count)), int(count / 39)), 1)
def components(self, components, train):