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

davidmezzetti5419381faf7c
diff --git a/test/python/testembeddings.py b/test/python/testembeddings.py
index 2d007b40..b25f96ab 100644
--- a/test/python/testembeddings.py
+++ b/test/python/testembeddings.py
@@ -105,6 +105,10 @@ class TestEmbeddings(unittest.TestCase):
self.assertEqual(self.data[uid], self.data[4])
+ # Test offsets still work after save/load
+ self.embeddings.upsert([(0, "Test insert", None)])
+ self.assertEqual(self.embeddings.count(), len(self.data))
+
def testSimilarity(self):
"""
Test similarity