docling-studio/document-parser/infra
Pier-Jean Malandrino 3bdc4cec50 feat: enable chunking in remote (Docling Serve) mode
Hybrid approach: reuse LocalChunker to chunk the DoclingDocument JSON
returned by Serve, so chunking works identically in both local and
remote modes without calling Serve's chunk endpoint.

Backend:
- _build_chunker() always returns LocalChunker (remove engine guard)
- Use docling-core[chunking] extra for required dependencies
- Skip client-side batching in remote mode (Serve manages its own
  resources, and batching discards document_json needed for chunking)
- Fix Serve form fields: remove generate_page_images (not a Serve
  field), use repeated form keys for to_formats and page_range
- Log Serve error response body on 4xx/5xx for diagnosis
- Fix FastAPI 204 DELETE routes missing response_model=None

Frontend:
- Update chunking feature flag to enable Prepare UI in remote mode

Closes #51
2026-04-16 15:11:14 +02:00
..
__init__.py Refactor backend to hexagonal architecture for converter extensibility 2026-03-31 10:34:07 +02:00
bbox.py Move bbox.py from domain/ to infra/ and unify coordinate logic 2026-04-03 13:17:26 +02:00
embedding_client.py feat: add embedding microservice and EmbeddingService port 2026-04-10 20:53:24 +02:00
local_chunker.py Fix import ordering violations (ruff I001) 2026-04-03 14:05:38 +02:00
local_converter.py refactor: centralize magic numbers for page dimensions, limits, and timeout (#168) 2026-04-16 08:32:07 +00:00
opensearch_store.py refactor: centralize magic numbers for page dimensions, limits, and timeout (#168) 2026-04-16 08:32:07 +00:00
rate_limiter.py Add in-memory rate limiting middleware 2026-04-03 13:56:05 +02:00
serve_converter.py feat: enable chunking in remote (Docling Serve) mode 2026-04-16 15:11:14 +02:00
settings.py refactor: centralize magic numbers for page dimensions, limits, and timeout (#168) 2026-04-16 08:32:07 +00:00