How Numan Built an Eval-First AI Health Coach with LangGraph and LangSmith
Numan's AI health coach Nu, a LangGraph supervisor with domain-specialist sub-agents, is evaluated through the same production graph rather than a separate harness. Static single-turn fixtures and scripted multi-turn conversations both failed: per-dataset averages hid failure clusters, and scripts ignored what the agent actually said. The team now scores themed fixture datasets per category, gates releases on safety probes, runs in-graph safety guard nodes that force regeneration or a fallback, and is prototyping LLM-simulated patient personas for adversarial multi-turn testing. Running identical datasets across providers cut a frontier model migration from weeks to a day, and the central lesson is that clinician-owned eval criteria, not prompts, are the scarce asset near a regulatory boundary.
Related posts
- The Reliability Layer for Healthcare AI: Common LangSmith Use Cases
LangChain easyNoviceHealthcare AI teams scale scarce clinician review by converting expert judgments into reusable labeled datasets, calibrated LLM judges, and automated release gates in LangSmith. Abridge builds a separate judge per failure category (accuracy, compliance, style, completeness), generates judges via automated prompt optimization from annotation guides, layers reference-free and specialty-specific reference-based judges, and stages releases through offline evals, backtesting, a silent 10-15% A/B rollout, and monitoring, cutting release cycles from one to two months to days. Included Health routes conversations from its Dot guide into annotation queues whose labels feed dashboards and skill definitions, reporting a 75% engagement lift and over 99% high-risk detection. PHI handling via self-hosting, access controls and de-identification shapes what data can enter the evaluation pipeline.
- Building strong safety evaluations
Anthropic Engineering mediumAdeptSafety evals underpin deployment and safeguard decisions, so Anthropic applies lessons from psychology's replication crisis to building them: preregistration, construct validity, rigorous statistics and full documentation. Refusal rate is often the wrong construct. Anthropic instead measures an appropriate response rate against domain-expert rubrics, where one bad turn fails the whole conversation, and pairs harmful prompts with benign ones to catch over-refusal. Multi-turn simulations are generated from expert-written specs, with a Claude model playing the user across varied personas and tactics and a grader model scoring each transcript. Evals that give models internet access should run sandboxed and monitored in real time.
- How Included Health Built Federated Healthcare Agents with LangGraph and Deep Agents
LangChain easyNoviceIncluded Health's Dot healthcare guide runs on a federated LangGraph "supergraph" in which a conversational router hands off to team-owned sub-workflows for urgent care, scheduling, specialists and behavioral health. Deep Agents supplies a shared platform prompt for consistent tone, filesystem-based handoffs that pass a summary plus a path to the full history, and an inheritable coverage sub-agent. Clinical services are encoded as skills that are progressively disclosed from short descriptions. LangGraph's durable execution lets the agent pause for multi-turn human advocate handoffs and resume days later with full context. LangSmith annotation queues for clinician review and multi-turn user-simulation evals allowed a four-team migration to Deep Agents in under two weeks, and the team reports a 75% engagement lift, over 95% clinical routing agreement and over 99% high-risk detection.
- What Is Eval-Driven Development? How to Improve AI Agents
LangChain mediumAdeptEval-driven development adapts test-driven development to non-deterministic agents: write a pass/fail spec for one behavior, build a dataset and evaluator before implementing, run a baseline, then hill-climb by comparing experiments per example. A worked example adds a create_ticket tool to an internal docs agent. The average score improves, but a how-to VPN question regresses, and a trace shows the cause is an overly broad tool description. Practical advice includes using code evals for deterministic checks and LLM judges otherwise, keeping a held-out set to detect overfitting, running fast checks in CI and slower judges nightly, and turning production failures into new dataset examples.
- Jev is now available in LangSmith Evals
LangChain mediumAdeptLangSmith now supports Jev, a TypeSafe AI "System One" model that returns typed answers and probabilities instead of generated text, as a judge for agent evaluations. Jev answers yes/no (noul), choice, and ordered-score questions about a state such as a trace, and it evaluates multiple questions in one parallel call. That makes it cheaper and faster than LLM-as-a-judge for narrow, high-volume decisions like PII leakage or user intent. In one test on one agent, Jev matched a human reviewer on every decision with 92-913x lower variance than GPT and Claude judges, averaging 0.44s and $0.00035 per call. Setup in LangSmith uses the LLM-as-a-Judge evaluator flow with TypeSafe as the provider, a state mapping, and one question per feedback key.