feat: turn off ocr on docling serve chunking to avoid issues with read-only docker containers

This commit is contained in:
bryan davis 2026-02-02 15:20:31 -06:00
parent ef187767ed
commit d1ed616a04

View file

@ -64,6 +64,9 @@ class DoclingServeChunker(DocumentChunker):
def _build_chunking_data(self) -> dict[str, str]:
"""Build form data for chunking request."""
return {
"convert_do_ocr": "false",
"convert_force_ocr": "false",
"convert_ocr_engine": "tesseract",
"chunking_max_tokens": str(self.config.processing.chunk_size),
"chunking_tokenizer": self.config.processing.chunking_tokenizer,
"chunking_merge_peers": str(