Products · LLM Extraction V2

Multi-document pipeline

Process a batch of documents in parallel with LangGraph on AWS Lambda.

Planned, not builtModule 10 of 15

InterfacesAPI SpecSections

API Spec Designed

  • POST/api/docflow/v1/batches

    Create a batch of up to 10 documents; each file is checked on its own. Signed in

    Body {files: [{file_name, mime, size}]} → 201 {batch, documents: [{document, upload} | {file_name, rejected_reason}]}. Supports Idempotency-Key.

  • POST/api/docflow/v1/batches/{batchId}/process

    Start extraction for the batch once the uploads are confirmed. Signed in

    → 202 {batch}. Calls Extraction POST /job-groups. Idempotent. Errors: 409 if no file is ready.

  • POST/api/extraction/v1/job-groups

    Run several extraction jobs as one group with a concurrency limit. Signed in

    Body {jobs: [{file_id, schema, reference?}], max_concurrency: 3} → 202 {group, jobs[]}. One job failing does not fail the group.

  • GET/api/extraction/v1/job-groups/{groupId}

    Group status with each job's current step. Signed in

    → 200 {group, jobs: [{id, file_id, node, status}], summary: {extracted, failed, running}}.

  • GET/api/docflow/v1/batches

    List my batches. Signed in

    Query cursor, limit → 200 {data: [Batch], next_cursor}.

  • GET/api/docflow/v1/batches/{batchId}

    Batch status with each document's step and status. Signed in

    → 200 {batch, documents: [{id, file_name, step, status}], summary: {extracted, needs_review, failed}}.

  • PATCH/api/upload/v1/files/{fileId}

    change a file's retention. Signed in

    Body {retention: "30_days"|"until_deleted"} → 200 {file}.

Notes

  • EXTRACTION-V2-E9-02 The Lambda pipeline is part of the Extraction service and writes to Extraction's own schema. DocFlow follows progress through GET /job-groups/{groupId} and the extraction.job.* events.

Coming Soon...

Full inputs, constraints, error codes and sample requests and responses for each endpoint will appear here when this module's design is finalized.