Multi-document pipeline
Process a batch of documents in parallel with LangGraph on AWS Lambda.
DataData ModelSections
Data Model
Design notes from each story. Tables belong to the owning service only.
- DOCFLOW-V2-E9-01 · Batch upload
docflow.batches(id, owner_id, job_group_id, statusuploading|processing|needs_review|reviewed|paid|failed, created_at).docflow.documentsadds batch_id → batches null, excluded boolean default false.- EXTRACTION-V2-E9-02 · LangGraph orchestrator on Lambda
extraction.job_groups(id, owner_id, max_concurrency, status, created_at);extraction.jobsadds group_id.extraction.pipeline_runs(id, job_id, node, status, state jsonb, attempt, updated_at) stores per-node checkpoints so a retry resumes.- DOCFLOW-V2-E9-03 · Batch status page
- No schema change.
- UPLOAD-V2-E9-04 · Keep original documents beyond 30 days
upload.files.expires_atbecomes nullable: empty means kept until deleted.
Coming Soon...
The entities, their relationships, what every field means and the business rules will appear here when this module's design is finalized.