AI-first buildL2 · human-agent teamInnovation
A human-agent team for Medical Affairs on the company's approved LLM gateway. A planner hands work to expert agents that turn thousands of field medical insights into strategic actions, care gaps, financial models and prioritized decisions, with a coverage check and a quality gate before anything reaches a person.
Try the interactive demo ↗- Python
- LangGraph
- RAG
- Chainlit
Read case study
Try the MAESTRO demo with sample data ↗
The problem
Strategic and financial planning drew on field insights, competitive intelligence, strategy documents and years of spend history. Pulling it together was manual and took months each planning cycle.
What I built
- A LangGraph supervisor that routes each question to specialist agents for strategy, field insights, competitive intelligence, the scientific story, finance and research.
- A report graph in which section agents run in parallel, a rule-based coverage gate checks completeness without an LLM, finance agents add the numbers, and an LLM judge scores the synthesis.
- Self-reflective retrieval that filters irrelevant passages, searches further when evidence is thin, and tries again.
- Five modes in one chat (Maestro Strategy, Maestro Insights, Maestro CI, Maestro Scientific Story and MFP Strategy), with every tool call and its query shown in the thread.
- Model routing by role on the company's approved LLM gateway: a reasoning model for supervisor routing and synthesis, a retrieval model for the expert agents and a code model for pandas sub-agents, chosen in Settings and shown in a live status pill.
How it's governed
Citations are assembled in code from retrieved evidence, so the model cannot invent a reference. Multiple LLMs work under human-in-the-loop review, and every agent step is visible while it runs.
Where it went
MAESTRO's orchestration pattern now runs inside the MPM Control Tower as its cross-domain reporting layer.
Stack
Python · LangChain / LangGraph · RAG and deep-research workflows · Chainlit · pandas · LLM gateway (GPT and Claude models)

