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

davidmezzetti305db679886d
diff --git a/test/python/testdatabase/testembeddings.py b/test/python/testdatabase/testembeddings.py
index c8d789b7..2a62d36d 100644
--- a/test/python/testdatabase/testembeddings.py
+++ b/test/python/testdatabase/testembeddings.py
@@ -148,6 +148,11 @@ class TestEmbeddings(unittest.TestCase):
result = self.embeddings.search("feel good story", 1)[0]
self.assertEqual(result["text"], self.data[4])
+ # Save back to different location
+ self.embeddings.save(indexupdate)
+ result = self.embeddings.search("feel good story", 1)[0]
+ self.assertEqual(result["text"], self.data[4])
+
def testNotImplemented(self):
"""
Tests exceptions for non-implemented methods