💡 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
davidmezzetti3fbbdc1d2f84
diff --git a/src/python/txtai/embeddings/base.py b/src/python/txtai/embeddings/base.pyindex 359d11b9..2ed05a75 100644--- a/src/python/txtai/embeddings/base.py+++ b/src/python/txtai/embeddings/base.py@@ -142,7 +142,7 @@ class Embeddings:if self.issparse():self.scoring.index()- # Index subindexes+ # Index subindexes, if necessaryif self.indexes:self.indexes.index()diff --git a/test/python/testdatabase/testsqlite.py b/test/python/testdatabase/testsqlite.pyindex 32f1893e..26843648 100644--- a/test/python/testdatabase/testsqlite.py+++ b/test/python/testdatabase/testsqlite.py@@ -287,7 +287,7 @@ class TestSQLite(unittest.TestCase):result = embeddings.search("feel good story", 1)[0]self.assertEqual(result["text"], data[4][1])- # Index data with sparse + dense vectors. Normalize scores.+ # Index data with sparse + dense vectors and unnormalized scores.embeddings = Embeddings({"path": "sentence-transformers/nli-mpnet-base-v2", "scoring": {"method": "bm25", "terms": True}, "content": True})embeddings.index(data)