Skip to content

Add batch ingestion with duplicate skipping and parallel parsing - #49

Open
pjargo wants to merge 1 commit into
tommyGPT2S:mainfrom
pjargo:feature/batch-ingestion
Open

Add batch ingestion with duplicate skipping and parallel parsing#49
pjargo wants to merge 1 commit into
tommyGPT2S:mainfrom
pjargo:feature/batch-ingestion

Conversation

@pjargo

@pjargo pjargo commented Jul 10, 2026

Copy link
Copy Markdown

New docex/batch module: BatchIngestor files every document in a folder into a basket in one call and returns a BatchReport with per-file outcomes. Files already in the basket are skipped using the same fingerprint rule as add(), so re-running over the same folder only picks up new files. Per-file errors are recorded in the report instead of aborting the batch. An optional processor runs on each added document; processors that separate parsing from persistence get their parsing parallelized in a thread pool while all database writes stay single-threaded. Includes tests and an example.

New docex/batch module: BatchIngestor files every document in a folder into
a basket in one call and returns a BatchReport with per-file outcomes. Files
already in the basket are skipped using the same fingerprint rule as add(),
so re-running over the same folder only picks up new files. Per-file errors
are recorded in the report instead of aborting the batch. An optional
processor runs on each added document; processors that separate parsing
from persistence get their parsing parallelized in a thread pool while all
database writes stay single-threaded. Includes tests and an example.

Co-authored-by: Cursor <cursoragent@cursor.com>
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