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

davidmezzetti85b54eaf0c24
diff --git a/test/python/testdatabase/testembeddings.py b/test/python/testdatabase/testembeddings.py
index b3a27a30..c8d789b7 100644
--- a/test/python/testdatabase/testembeddings.py
+++ b/test/python/testdatabase/testembeddings.py
@@ -123,14 +123,14 @@ class TestEmbeddings(unittest.TestCase):
self.embeddings.index([(uid, text, None) for uid, text in enumerate(self.data)])
# Generate temp file path
- index = os.path.join(tempfile.gettempdir(), "embeddings")
+ index = os.path.join(tempfile.gettempdir(), "embeddings.insert")
self.embeddings.save(index)
# Modify index
self.embeddings.upsert([(0, "Looking out into the dreadful abyss", None)])
# Save to a different location
- indexupdate = os.path.join(tempfile.gettempdir(), "embeddings-update")
+ indexupdate = os.path.join(tempfile.gettempdir(), "embeddings.update")
self.embeddings.save(indexupdate)
# Save to same location