Skip to content

feat: parallel chunk processing for large PDFs - #10

Open
abimaelmartell wants to merge 2 commits into
mainfrom
feat/parallel-chunk-processing
Open

abimaelmartell wants to merge 2 commits into
mainfrom
feat/parallel-chunk-processing

Conversation

@abimaelmartell

Copy link
Copy Markdown
Member

Summary

  • Split large PDFs into chunks and process them concurrently on a GPU thread pool
  • Add PDF repair retry logic on PdfiumError
  • Return processing metadata (pages, ocr, processing_time_ms, chunks) in responses
  • Configurable via NUM_GPU_WORKERS and MIN_CHUNK_PAGES env vars

Add GPU thread pool and chunk-based parallel processing for large PDFs.
Documents are split into chunks based on page count and processed
concurrently, with results merged in page order. Includes PDF repair
retry logic and processing metadata in responses.
Trigger CI on pull_request events and tag images as pr-<number>
instead of latest, so PR branches get their own registry images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant