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

davidmezzettia67870aefd8a
diff --git a/src/python/txtai/pipeline/data/textractor.py b/src/python/txtai/pipeline/data/textractor.py
index 68865e78..cb4f13e7 100644
--- a/src/python/txtai/pipeline/data/textractor.py
+++ b/src/python/txtai/pipeline/data/textractor.py
@@ -104,7 +104,7 @@ class Textractor(Segmentation):
# Safe open validation
if not self.safecheck(path):
- raise IOError(f"Safeopen URL validation failed: {path}")
+ raise IOError(f"Safeopen URL validation failed: path={os.path.realpath(path)}, safeopen={self.safeopen}")
# Consider local files and HTTP urls valid
return (path if exists or urlparse(path).scheme in ("http", "https") else None, exists)
diff --git a/test/python/testapi/testapipipeline.py b/test/python/testapi/testapipipeline.py
index 618f67b3..e68fe09f 100644
--- a/test/python/testapi/testapipipeline.py
+++ b/test/python/testapi/testapipipeline.py
@@ -58,6 +58,7 @@ tabular:
# Text extraction
textractor:
+ safeopen: /tmp/txtai
# Text to speech
texttospeech: