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 test

davidmezzettic911f3438fdc
diff --git a/test/python/testdatabase/testrdbms.py b/test/python/testdatabase/testrdbms.py
index d7a1b882..f8f2e7be 100644
--- a/test/python/testdatabase/testrdbms.py
+++ b/test/python/testdatabase/testrdbms.py
@@ -172,8 +172,6 @@ class Common:
Test empty index
"""
- print(self.__class__.__name__)
-
# Test search against empty index
embeddings = Embeddings({"path": "sentence-transformers/nli-mpnet-base-v2", "content": self.backend})
self.assertEqual(embeddings.search("test"), [])
@@ -519,8 +517,6 @@ class Common:
embeddings = Embeddings({"defaults": False, "content": self.backend, "objects": True})
embeddings.index([{"object": "binary data".encode("utf-8")}])
- # embeddings.save("/tmp/a")
-
# Decode and test extracted object
obj = embeddings.search("select object from txtai where id = 0")[0]["object"]
self.assertEqual(str(obj.getvalue(), "utf-8"), "binary data")