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

davidmezzettib05abd20f38e
diff --git a/test/python/testpipeline/testdata/testtextractor.py b/test/python/testpipeline/testdata/testtextractor.py
index 30589172..ed007301 100644
--- a/test/python/testpipeline/testdata/testtextractor.py
+++ b/test/python/testpipeline/testdata/testtextractor.py
@@ -4,6 +4,8 @@ Textractor module tests
import unittest
+import torch
+
from txtai.pipeline import Textractor
# pylint: disable = C0411
@@ -54,6 +56,9 @@ class TestTextractor(unittest.TestCase):
Test docling backend
"""
+ # Set default device to CPU
+ torch.set_default_device("cpu")
+
textractor = Textractor(backend="docling")
# Extract text and check for Markdown formatting