💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update comment
davidmezzetti399f584d448b
diff --git a/src/python/txtai/ann/dense/faiss.py b/src/python/txtai/ann/dense/faiss.pyindex 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 clusterreturn max(min(round(4 * math.sqrt(count)), int(count / 39)), 1)def components(self, components, train):