2026•ML Engineer

pAIge

Synthetic Document Generation

Constraint-driven architecture eliminates LLM hallucinations
pAIge screenshot

Core Problem

LLMs hallucinate layout coordinates and text content when generating synthetic documents for OCR model training.

Role & Focus

ML Engineer

Technologies

ML InfrastructureLangChainLLMsData Pipeline

Architecture & Background

Architected a multi-stage synthetic document generation pipeline using LangChain, Groq, and Augraphy. Enforced a data-first Field Bank constraint pattern that completely eliminates LLM hallucination and generates production-grade OCR training data at scale.

Engineering Strategy

A 6-stage deterministic pipeline enforcing a strict Field Bank constraint before LLM inference, verified with 23+ automated tests.

Key Technical Implementations

01

Field Bank pattern—constrain LLMs to real data before generation

02

Multi-stage orchestration with LangChain

03

Groq + Cerebras for inference speed

04

Augraphy for visual degradation (realistic aging)