Agentic Workflow Engine
Architected a multi-agent orchestration layer that reduced processing time by 40% for financial data pipelines.
Problem
Traditional sequential pipelines were failing on edge cases requiring cognitive reasoning. When dealing with unstructured financial documents, deterministic parsing rules broke down. We needed a system capable of self-correction and multi-step reasoning without humans in the loop for every failure.
Approach
Instead of building a massive unified model, I designed an orchestration layer where specialized agents handle specific domains (extraction, validation, reconciliation).
I treated the agents as microservices that communicate via a shared context bus, allowing them to ask each other for clarification or defer to a human only when confidence scores dropped below a strict threshold.
Implementation
- Architecture: Event-driven orchestration using Temporal to ensure durable execution.
- Agent Design: Lightweight LLM wrappers focused on narrow tasks to minimize hallucination.
- State Management: A centralized Postgres ledger to track the provenance of every decision made by an agent.
Reflection
The system was highly successful, but if I were to rebuild it, I would reduce the reliance on complex prompt chains and move towards fine-tuning smaller, specialized models for the core extraction tasks to reduce latency.