Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Merge remote-tracking branch 'origin/dockling-serve-uvx' into make-docling-core-optional

Edwin Josef2f98e028aa3
diff --cc pyproject.toml
index 19599fd9b,8945041b5..f348eea99
--- a/pyproject.toml
+++ b/pyproject.toml
@@@ -21,7 -23,7 +21,6 @@@ dependencies =
"pyjwt>=2.8.0",
"python-multipart>=0.0.20",
"starlette>=0.47.1",
- "docling-serve==1.5.0",
- "torch>=2.7.1",
"uvicorn>=0.35.0",
"boto3>=1.35.0",
"psutil>=7.0.0",
diff --cc src/tui/managers/docling_manager.py
index 00db5db0a,c43917659..bcd8e6e95
--- a/src/tui/managers/docling_manager.py
+++ b/src/tui/managers/docling_manager.py
@@@ -265,17 -257,19 +265,23 @@@ class DoclingManager
self._log_buffer = []
self._add_log_entry("Starting docling serve as external process...")
+ if not self._is_docling_serve_available():
+ self._starting = False
+ return False, "docling-serve not installed. Install with: uv sync --extra docling-serve"
+
try:
- # Build command to run docling-serve
- # Check if we should use uv run (look for uv in environment or check if we're in a uv project)
+ # Build command to run docling-serve via uvx (avoids bundling the massive dependency)
import shutil
- if shutil.which("uv") and (os.path.exists("pyproject.toml") or os.getenv("VIRTUAL_ENV")):
+ if shutil.which("uvx"):
cmd = [
- "uv", "run", "python", "-m", "docling_serve", "run",
+ "uvx", "docling-serve==1.5.0", "run",
+ "--host", self._host,
+ "--port", str(self._port),
+ "--workers", str(self._workers),
+ ]
+ elif shutil.which("uv"):
+ cmd = [
+ "uv", "tool", "run", "docling-serve==1.5.0", "run",
"--host", self._host,
"--port", str(self._port),
"--workers", str(self._workers),