All examples

Reference architectures

Document processing pipeline with LLMs

From inbox to structured records: OCR, LLM extraction, validation, human review.

Architecture diagram: Document processing pipeline with LLMs

Invoices, contracts and forms arrive as PDFs and scans. A queue decouples the inbox from the workers. Each worker runs OCR and parsing, then asks an LLM to extract the fields as JSON. A validation step checks the result against a schema. Valid records go to the database; low-confidence results go to a review queue where a person corrects them. The pattern scales by adding workers and keeps humans on the difficult cases only.