AI Product Engineering
Block 3: Agents, Evaluation & Deployment
Modern foundation models process multiple input types:
Photos, charts, screenshots, diagrams
PDFs, forms, tables, invoices
Speech, recordings, video frames
Scanned doc → OCR → text cleaning → NLP pipeline → structured data
Complex, fragile, multiple tools
Image → multimodal model + extraction prompt → structured JSON
One API call, one prompt
Extract all line items from this invoice.
Return JSON matching this schema:
{
"vendor": string,
"date": string,
"items": [{"name": string, "price": float}],
"total": float
}The model reads the image and produces the structured output directly.
Next Session: Evaluation & Debugging