diff --git a/CHANGELOG.md b/CHANGELOG.md index a086dfeb..888356ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Changelog ## [Unreleased] +### Changed + +- **Async Chunker**: `DoclingServeChunker` now uses `httpx.AsyncClient` instead of sync `requests` + +### 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. + ## [0.19.2] - 2025-11-27 ### Changed diff --git a/haiku_rag_slim/haiku/rag/converters/docling_local.py b/haiku_rag_slim/haiku/rag/converters/docling_local.py index a1ebfbc8..59cadbb4 100644 --- a/haiku_rag_slim/haiku/rag/converters/docling_local.py +++ b/haiku_rag_slim/haiku/rag/converters/docling_local.py @@ -59,7 +59,7 @@ class DoclingLocalConverter(DocumentConverter): from docling.backend.docling_parse_backend import DoclingParseDocumentBackend from docling.datamodel.base_models import InputFormat from docling.datamodel.pipeline_options import ( - OcrOptions, + OcrAutoOptions, PdfPipelineOptions, TableFormerMode, TableStructureOptions, @@ -86,7 +86,7 @@ class DoclingLocalConverter(DocumentConverter): else TableFormerMode.ACCURATE ), ), - ocr_options=OcrOptions( + ocr_options=OcrAutoOptions( force_full_page_ocr=opts.force_ocr, lang=opts.ocr_lang if opts.ocr_lang else [], ),