[::] Agentic Stacks

Reference: Contract Extraction Pipeline

reference

document-processing

framework
Agent Framework
retrieval
Retrieval / Vector Store
eval
Eval
observability
Observability / Tracing
deployment
Deployment Target
mcp_servers
MCP Servers
S3 s3 PO postgres
guardrails
Guardrails / Safety

Architectural notes

Reference architecture for a pipeline that ingests contracts (PDF/DOCX),
extracts key clauses (party, term, indemnity, renewal), and stores
structured fields with provenance pointers back to source spans.

Why these picks:
- Gemini for the long-context ingest pass (whole-contract reasoning).
- Sonnet for the structured-extraction pass with strict JSON schemas.
- Modal for burst PDF processing without provisioned servers.
- Eval gates on contract holdout set prevent silent schema drift.

Common gotchas:
- PDF text extraction quality dominates accuracy; budget for OCR fallback.
- Always store source-span citations alongside extracted fields for audit.

Embed this stack

Show off your stack on your engineering blog or company page.

<iframe src="http://testserver/embed/stacks/document-processing-contracts" width="100%" height="380" frameborder="0" style="border: 1px solid #334155; border-radius: 8px;"></iframe>
Preview embed

Share

Get the weekly digest

New stacks, new tools, what's moving. No spam.