💡 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 build script and test
davidmezzetti92489ac89a8a
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 18556ef3..b7f31d83 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -34,7 +34,6 @@ jobs:run: |echo "OMP_NUM_THREADS=1" >> $GITHUB_ENVecho "PYTORCH_MPS_DISABLE=1" >> $GITHUB_ENV- echo "PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0" >> $GITHUB_ENVecho "LLAMA_NO_METAL=1" >> $GITHUB_ENVecho "TIKA_STARTUP_SLEEP=30" >> $GITHUB_ENVecho "TIKA_STARTUP_MAX_RETRY=10" >> $GITHUB_ENVdiff --git a/test/python/testpipeline/testdata/testtextractor.py b/test/python/testpipeline/testdata/testtextractor.pyindex ed007301..f58040f2 100644--- a/test/python/testpipeline/testdata/testtextractor.py+++ b/test/python/testpipeline/testdata/testtextractor.py@@ -2,10 +2,9 @@Textractor module tests"""+import platformimport unittest-import torch-from txtai.pipeline import Textractor# pylint: disable = C0411@@ -51,14 +50,12 @@ class TestTextractor(unittest.TestCase):# Check number of sections is as expectedself.assertEqual(len(sections), 2)+ @unittest.skipIf(platform.system() == "Darwin", "Docling skipped on macOS to avoid MPS issues")def testDocling(self):"""Test docling backend"""- # Set default device to CPU- torch.set_default_device("cpu")-textractor = Textractor(backend="docling")# Extract text and check for Markdown formatting