What I Learned Shipping Multi-Agent AI Systems to Production
Most of my last two years has gone into taking GenAI systems past the demo stage — building agent routing, retrieval augmented generation, and long-term memory systems that run end to end instead of living in a notebook. This is what actually worked, drawn from four projects I shipped: Aria, RetailForecastAI, TrustMed-AI, and SlackAgent — plus lessons from five hackathon wins, where I learned to compress a full machine learning pipeline into a tight build window.
Agentic AI development is mostly a routing problem
Aria is a voice-first, real-time conversational AI multi-agent desktop assistant — talk to it and it shops, writes code, browses the web, controls the desktop, or takes notes, much like how platforms such as SoundHound Houndify pioneered real-time conversational AI for voice-driven experiences, except Aria routes across five specialized agents instead of one. The hard part was never getting one agent to work; it was getting five of them (Commerce, Coding, Desktop, General, Documentation) to hand off correctly. I built a LangGraph supervisor that routes each request to the right agent, and streamed Deepgram speech-to-text and Cartesia text-to-speech in a full-duplex Electron app to keep spoken interaction under one second.
- Stagehand handles browser control while AppleScript and JXA handle macOS desktop control — two automation paths, because web and desktop fail differently
- 3 high-risk action classes (destructive shell commands, payments, sensitive text entry) pause until the user confirms by voice
- Pending approvals are scoped to the session and expire after 2 minutes, so a stale 'yes' can't trigger the wrong action later
- A PII gate screens 4 data types (SSNs, card numbers, emails, phone numbers) before any agent types into an app
- Every routing event and confirmation outcome is indexed in Elasticsearch for audit
Retrieval augmented generation only earns trust if you fight hallucination directly
TrustMed-AI answers health questions from indexed medical sources — and anywhere near medicine, hallucination isn't a quality issue, it's a safety issue. I built it as one of my agentic rag systems: 9K+ medical chunks split across 3 ChromaDB collections (symptoms, diseases, medicines) so each question routes to a domain-specific retrieval path, with optional FAISS refinement and cross-encoder reranking reordering candidates before generation. Every answer shows a 3-step ReAct trace — Thought, Action, Observation — with source cards and confidence, so a reviewer can see exactly why it said what it said. To measure it instead of eyeballing it, I built a 100-prompt evaluation set across five medical domains and 3 benchmark scripts tracking Precision@K, MRR, grounded score, and latency — one of the more demanding llm powered applications I've shipped, and an educational project with explicit boundaries: no claims of clinical accuracy or HIPAA compliance.
RetailForecastAI uses the same instinct in a different domain — a 2-step LangChain + FAISS RAG flow retrieves business context before generating each plain-English executive summary instead of letting the model free-associate over the numbers, another example of grounded RAG built for a non-chat use case.
A machine learning pipeline is a different problem than a good model
RetailForecastAI forecasts 30-day demand for 1,115 Rossmann stores at once. Getting one ARIMA_PLUS model to perform well is a modeling problem; training and serving 1,115 of them is an automated ml pipeline problem. Apache Beam ETL feeds PySpark feature engineering, PostgreSQL storage, and an async FastAPI layer behind a Next.js dashboard. BigQuery ML trains a separate forecast per store with 80% confidence intervals inside a repeatable ml production pipeline, benchmarked on a 30-day holdout at 16.92 MAPE versus 21.91–24.74 MAPE for seasonal-naive and moving-average baselines.
Memory is what turns an LLM-powered application into a teammate
SlackAgent lives inside Slack, remembers past conversations, and can create GitHub issues or query Notion without leaving the chat. Semantic search across 10,000+ indexed Slack messages via ChromaDB + OpenAI embeddings reaches 95.3% search relevance with a 1.8-second average response time, and 59 MCP tools reach a 97.2% success rate across 100+ concurrent test conversations. On top of retrieval, mem0 long-term memory with GPT-4o-mini fact extraction reaches 98.7% reported retention — the difference between one of many llm powered applications that answers a question and one that actually remembers you asked it before.
Four systems, one pattern: the model is rarely the bottleneck. Routing latency, retrieval precision, machine learning pipeline automation, and memory retention are what decide whether a GenAI system survives contact with production.

