💡 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 tests
davidmezzetti0c00587a2509
diff --git a/test/python/testpipeline/testtexttospeech.py b/test/python/testpipeline/testtexttospeech.pyindex 04167051..e3fd249f 100644--- a/test/python/testpipeline/testtexttospeech.py+++ b/test/python/testpipeline/testtexttospeech.py@@ -2,7 +2,6 @@TextToSpeech module tests"""-import osimport unittestfrom unittest.mock import patch@@ -15,7 +14,6 @@ class TestTextToSpeech(unittest.TestCase):TextToSpeech tests."""- @unittest.skipIf(os.name == "nt", "testTextToSpeech skipped on Windows")def testTextToSpeech(self):"""Test generating speech for text@@ -26,7 +24,6 @@ class TestTextToSpeech(unittest.TestCase):# Check that data is generatedself.assertGreater(len(tts("This is a test")), 0)- @unittest.skipIf(os.name == "nt", "testProviders skipped on Windows")@patch("onnxruntime.get_available_providers")@patch("torch.cuda.is_available")def testProviders(self, cuda, providers):diff --git a/test/python/testscoring.py b/test/python/testscoring.pyindex a46570f1..4added04 100644--- a/test/python/testscoring.py+++ b/test/python/testscoring.py@@ -191,7 +191,11 @@ class TestScoring(unittest.TestCase):method: scoring method"""- scoring = ScoringFactory.create({**config, **{"terms": True}})+ # Create combined config+ config = {**config, **{"terms": True}}++ # Create scoring instance+ scoring = ScoringFactory.create(config)scoring.index(self.data)# Run search and validate correct result returned@@ -214,7 +218,11 @@ class TestScoring(unittest.TestCase):Test delete."""- scoring = ScoringFactory.create({**config, **{"terms": True, "content": True}})+ # Create combined config+ config = {**config, **{"terms": True, "content": True}}++ # Create scoring instance+ scoring = ScoringFactory.create(config)scoring.index(self.data)# Run search and validate correct result returned@@ -295,7 +303,11 @@ class TestScoring(unittest.TestCase):config: scoring config"""- scoring = ScoringFactory.create({**config, **{"terms": {"cachelimit": 0, "cutoff": 0.25, "wal": True}}})+ # Create combined config+ config = {**config, **{"terms": {"cachelimit": 0, "cutoff": 0.25, "wal": True}}}++ # Create scoring instance+ scoring = ScoringFactory.create(config)scoring.index(self.data)# Save/load indexdiff --git a/test/python/testworkflow.py b/test/python/testworkflow.pyindex 874aa51c..3caafc6d 100644--- a/test/python/testworkflow.py+++ b/test/python/testworkflow.py@@ -140,6 +140,7 @@ class TestWorkflow(unittest.TestCase):self.assertEqual(index, 0)self.assertEqual(data[0][1], "txtai builds an AI-powered index over sections")+ @unittest.skipIf(os.name == "nt", "testComplexWorkflow skipped on Windows")def testConcurrentWorkflow(self):"""Test running concurrent task actions