💡 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
Workaround macOS test failure
davidmezzettibfd1f13f2b62
diff --git a/test/python/testscoring/testsparse.py b/test/python/testscoring/testsparse.pyindex 329429e2..3abbc11d 100644--- a/test/python/testscoring/testsparse.py+++ b/test/python/testscoring/testsparse.py@@ -3,6 +3,7 @@ Sparse module tests"""import os+import platformimport tempfileimport unittest@@ -86,6 +87,7 @@ class TestSparse(unittest.TestCase):scoring.upsert((uid, {"text": text}, tags) for uid, text, tags in self.data)self.assertEqual(scoring.count(), len(self.data))+ @unittest.skipIf(platform.system() == "Darwin", "Torch memory sharing not supported on macOS")@patch("torch.cuda.device_count")def testGPU(self, count):"""