💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update test
davidmezzettid39629c1d778
diff --git a/test/python/testdatabase/testembeddings.py b/test/python/testdatabase/testembeddings.pyindex 7426bf86..4bbeaeee 100644--- a/test/python/testdatabase/testembeddings.py+++ b/test/python/testdatabase/testembeddings.py@@ -62,9 +62,11 @@ class TestEmbeddings(unittest.TestCase):Tests embeddings close"""+ embeddings = None+# Create index twice to test open/close and ensure resources are freedfor _ in range(2):- embeddings = Embeddings({"path": "google/bert_uncased_L-2_H-128_A-2", "content": True})+ embeddings = Embeddings({"path": "sentence-transformers/nli-mpnet-base-v2", "content": True})# Add record to indexembeddings.index([(0, "Close test", None)])@@ -76,6 +78,10 @@ class TestEmbeddings(unittest.TestCase):# Close indexembeddings.close()+ # Test embeddings is empty+ self.assertIsNone(embeddings.ann)+ self.assertIsNone(embeddings.database)+def testData(self):"""Test content storage and retrieval