Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Doc and test update

davidmezzettia1224c06f1c0
diff --git a/docs/embeddings/configuration/vectors.md b/docs/embeddings/configuration/vectors.md
index 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 [trans
transform: 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
```yaml
diff --git a/test/python/testann/testsparse.py b/test/python/testann/testsparse.py
index 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 pruning
ann = 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):