Merge pull request #170 from ggozad/fix/docling-tables-local

Add opencv-python-headless to docling optional dependency, required for table detection.
This commit is contained in:
Yiorgis Gozadinos 2025-11-27 16:23:41 +02:00 committed by GitHub
commit 9302de0aff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View file

@ -10,6 +10,7 @@
### Fixed ### Fixed
- **OCR Options**: Fixed `DoclingLocalConverter` using base `OcrOptions` class which docling's OCR factory doesn't recognize. Now uses `OcrAutoOptions` for automatic OCR engine selection. - **OCR Options**: Fixed `DoclingLocalConverter` using base `OcrOptions` class which docling's OCR factory doesn't recognize. Now uses `OcrAutoOptions` for automatic OCR engine selection.
- **Dependencies**: Added `opencv-python-headless` to the `docling` optional dependency for table structure detection.
## [0.19.2] - 2025-11-27 ## [0.19.2] - 2025-11-27

View file

@ -37,7 +37,7 @@ dependencies = [
[project.optional-dependencies] [project.optional-dependencies]
# Document processing # Document processing
docling = ["docling==2.62.0"] docling = ["docling==2.62.0", "opencv-python-headless>=4.11.0.86"]
# Embedding providers # Embedding providers
voyageai = ["voyageai>=0.3.5"] voyageai = ["voyageai>=0.3.5"]
# Rerankers # Rerankers

View file

@ -21,7 +21,9 @@ classifiers = [
"Typing :: Typed", "Typing :: Typed",
] ]
dependencies = ["haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,inspector]==0.19.3"] dependencies = [
"haiku.rag-slim[docling,voyageai,mxbai,cohere,zeroentropy,inspector]==0.19.3",
]
[project.scripts] [project.scripts]
haiku-rag = "haiku.rag.cli:cli" haiku-rag = "haiku.rag.cli:cli"

View file

@ -1361,6 +1361,7 @@ cohere = [
] ]
docling = [ docling = [
{ name = "docling" }, { name = "docling" },
{ name = "opencv-python-headless" },
] ]
google = [ google = [
{ name = "pydantic-ai-slim", extra = ["google"] }, { name = "pydantic-ai-slim", extra = ["google"] },
@ -1395,6 +1396,7 @@ requires-dist = [
{ name = "httpx", specifier = ">=0.28.1" }, { name = "httpx", specifier = ">=0.28.1" },
{ name = "lancedb", specifier = "==0.25.3" }, { name = "lancedb", specifier = "==0.25.3" },
{ name = "mxbai-rerank", marker = "extra == 'mxbai'", specifier = ">=0.1.6" }, { name = "mxbai-rerank", marker = "extra == 'mxbai'", specifier = ">=0.1.6" },
{ name = "opencv-python-headless", marker = "extra == 'docling'", specifier = ">=4.11.0.86" },
{ name = "pathspec", specifier = ">=0.12.1" }, { name = "pathspec", specifier = ">=0.12.1" },
{ name = "pydantic", specifier = ">=2.12.4" }, { name = "pydantic", specifier = ">=2.12.4" },
{ name = "pydantic-ai-slim", extras = ["anthropic"], marker = "extra == 'anthropic'" }, { name = "pydantic-ai-slim", extras = ["anthropic"], marker = "extra == 'anthropic'" },
@ -2770,7 +2772,7 @@ name = "opencv-python-headless"
version = "4.11.0.86" version = "4.11.0.86"
source = { registry = "https://pypi.org/simple" } source = { registry = "https://pypi.org/simple" }
dependencies = [ dependencies = [
{ name = "numpy", marker = "python_full_version >= '3.14' and python_full_version < '4'" }, { name = "numpy" },
] ]
sdist = { url = "https://files.pythonhosted.org/packages/36/2f/5b2b3ba52c864848885ba988f24b7f105052f68da9ab0e693cc7c25b0b30/opencv-python-headless-4.11.0.86.tar.gz", hash = "sha256:996eb282ca4b43ec6a3972414de0e2331f5d9cda2b41091a49739c19fb843798", size = 95177929, upload-time = "2025-01-16T13:53:40.22Z" } sdist = { url = "https://files.pythonhosted.org/packages/36/2f/5b2b3ba52c864848885ba988f24b7f105052f68da9ab0e693cc7c25b0b30/opencv-python-headless-4.11.0.86.tar.gz", hash = "sha256:996eb282ca4b43ec6a3972414de0e2331f5d9cda2b41091a49739c19fb843798", size = 95177929, upload-time = "2025-01-16T13:53:40.22Z" }
wheels = [ wheels = [