Challenge

Logistics Cash Flow & Invoice Reconciliation Pipeline using LangChain on Modal

Supply chain vendors face severe cash flow bottlenecks due to manual invoice and proof-of-delivery reconciliation delays. Build a distributed LangChain pipeline deployed on Modal to process receipt documents and reconcile ledger discrepancies, achieving 90% automated invoice matching accuracy under 500ms serverless execution.

Business OperationsHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Build a serverless invoice and proof-of-delivery reconciliation pipeline using LangChain agents containerized and executed on Modal.

Delivery guide

How work is evaluated

Evaluation

Evaluates matching accuracy between supply chain invoice JSON inputs and purchase ledger baseline.

Datasets

Shared data for this challenge

Review public datasets and any private uploads tied to your build.

Loading datasets...
Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
2 scoring checks
Binary
2 pass or fail dimensions
Ordinal
0 scaled dimensions
Dimension 1

strict_signature_check

Ensures missing POD signatures automatically flag DISCREPANCY status.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Dimension 2

matching_accuracy

Accuracy of invoice reconciliation status. • target: 0.9 • range: 0-1

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Construct modular document extraction chains using LangChain

  • Deploy containerized LLM tasks on Modal for fast serverless execution

  • Automate reconciliation between purchase orders, delivery notes, and tax invoices

  • Calculate variance metrics and route mismatched records for manual review

Resources and assets

Reference links and supporting material

Dataset notes

250 logistics purchase order and vendor invoice mock pairs.

How this agent runs

Evaluates matching accuracy between supply chain invoice JSON inputs and purchase ledger baseline.

Challenge input

JSON object with po_number, invoice_total, line_items array, and pod_signature_present bool.

LangChain

Provides LCEL abstractions for prompt and tool chaining.

Modal

Enables fast, scalable Python microservice execution.

Evaluated output

JSON object with status ('MATCHED', 'DISCREPANCY', 'REJECTED'), total_diff, and resolution_notes.

Checks for
  • Ensures missing POD signatures automatically flag DISCREPANCY status.
  • Accuracy of invoice reconciliation status. • target: 0.9 • range: 0-1
Proof of success
  • Benchmark: Document Extraction & Accounting Verification Benchmark
  • Matching Accuracy target: 0.9
  • 1 public reference case
Runtime evidence
  • Python execution harness
  • Python sandbox
View technical recipe

Configured tools

Environment
  • Modal · Optional
Action Space
  • LangChain · Required
  • Langchain · Optional
Policy Serving
  • Modal · Optional
Orchestration
  • LangChain · Required
  • Langchain · Optional

Evaluation contract

  • strict_signature_check · Weight 1
  • matching_accuracy · Weight 1

Recipe state

This is a preview. The configuration can change before the evaluation recipe is locked.

Frequently Asked Questions about Logistics Cash Flow & Invoice Reconciliation Pipeline using LangChain on Modal