💡 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
Doc and test update
davidmezzettia1224c06f1c0
diff --git a/docs/embeddings/configuration/vectors.md b/docs/embeddings/configuration/vectors.mdindex da13dd88..dce8c4e6 100644--- a/docs/embeddings/configuration/vectors.md+++ b/docs/embeddings/configuration/vectors.md@@ -68,7 +68,9 @@ Embeddings are created via an external model or API. Requires setting the [transtransform: function```-When method is `external`, this function transforms input content into embeddings. The input to this function is a list of data. This method must return either a numpy array or list of numpy arrays.+When method is `external`, this function transforms input content into embeddings. The input to this function is a list of data. This method must return either a numpy array, list of numpy arrays or list of float arrays.++Note that this method is deprecated and will raise an error with the default settings. Adding a custom `Vectors` implementation is a cleaner approach. The `ALLOW_RESOLVE_TRANSFORM` environment variable must be set to enable. Only enable for trusted and/or reviewed code.## gpu```yamldiff --git a/test/python/testann/testsparse.py b/test/python/testann/testsparse.pyindex be98bf1f..c1e8b014 100644--- a/test/python/testann/testsparse.py+++ b/test/python/testann/testsparse.py@@ -87,7 +87,7 @@ class TestSparse(unittest.TestCase):# Test cluster pruningann = SparseANNFactory.create({"backend": "ivfsparse", "ivfsparse": {"nlist": 15, "nprobe": 1, "sample": 1.0}})ann.index(insert)- self.assertLess(len(ann.blocks), 15)+ self.assertLessEqual(len(ann.blocks), 15)ann.close()def testIVFSparseSortOrder(self):