Skip to content
Talha ZainApplied AI Engineer

Agentic AI · Healthcare · internal

MedicAI

Multi-tenant multi-agent clinical AI platform.

LangGraph-orchestrated clinical platform with specialized agents, Agentic RAG, tenant isolation, human-in-the-loop gates, and evaluation via LangSmith and RAGAS.

MedicAI clinical operations dashboard with AI agents, appointments, and hospital analytics.

Clinical agents & hospital operations interface

Visual grammar / agent state graph
TENANT
ROUTER
AGENTS
HITL
OUTPUT

My role

AI Architecture & Agent Orchestration

  • AI Architecture
  • Agent Orchestration
  • Retrieval
  • Evaluation
  • Productionization

Period / 2025

01Overview

Overview

LangGraph-orchestrated clinical platform with specialized agents, Agentic RAG, tenant isolation, human-in-the-loop gates, and evaluation via LangSmith and RAGAS.

02Problem

Problem

Clinical workflows require specialized reasoning, retrieval, and strict controls—single-prompt chatbots cannot safely handle coding, documentation, triage, and imaging in a multi-tenant environment.

03System

System

A stateful multi-agent system with structured routing, tool execution, retrieval, validation, and human approval where required—observed and evaluated in production-minded workflows.

04System anatomy

System anatomy

Architecture

LangGraph orchestration with structured routing across specialists.

  • State graph
  • Router
  • Specialized agents
  • Tool execution
05Architecture

Architecture

Authenticated tenant context enters a LangGraph router that dispatches specialized clinical agents with RAG, tools, memory, and workflow paths—then validation, optional HITL, and observability.

Request
Auth / Tenant
RBAC
LangGraph Router
State machine
Specialized Agents
ICD-10 · SOAP · Triage
Agentic RAG
Tools
Memory
Redis
Clinical Workflow
Validation / Guardrails
Human Approval
When required
Output
LangSmith / RAGAS
Observability
  • RequestAuth / Tenant
  • Auth / TenantLangGraph Router
  • LangGraph RouterSpecialized Agents
  • Specialized AgentsAgentic RAG
  • Specialized AgentsTools
  • Specialized AgentsMemory
  • Specialized AgentsClinical Workflow
  • Agentic RAGValidation / Guardrails
06Engineering decisions

Engineering decisions

Explicit LangGraph state orchestration

Clinical tasks need structured routing across specialists. A state graph makes agent transitions, tool calls, and approval gates inspectable and controllable.

Human-in-the-loop gating

High-risk clinical outputs require approval boundaries. HITL gates prevent automatic release of sensitive recommendations without review.

Tenant isolation with RBAC

Multi-tenant clinical data cannot share context casually. Isolation and role controls are first-class architecture constraints, not afterthoughts.

LangSmith + RAGAS evaluation loop

Agent quality must be measured. Tracing and retrieval evaluation close the loop between orchestration changes and measurable behavior.

07Reliability / production

Reliability / production

  • Tenant isolation / RBAC
  • Schema validation
  • Guardrails
  • Human-in-the-loop gates
  • Structured routing

Evaluation

LangSmith tracingRAGAS retrieval evaluation
08Stack

Stack

LangGraphLangChainAgentic RAGRedisPostgreSQLLangSmithRAGASFastAPIPython
09Outcomes

Outcomes

  • Specialized agents for ICD-10, SOAP docs, scheduling, imaging, triage, and clinical Q&A.
  • Production controls: tenant isolation, Redis/PostgreSQL state, guardrails, schema validation.
  • Observability and retrieval evaluation with LangSmith and RAGAS.
Multi-agent
LangGraph orchestration
HITL
Human approval gates
RBAC
Tenant isolation
10Links

Links

MediaProduct visuals

Product visuals

MedicAI clinical operations dashboard with AI agents, appointments, and hospital analytics.
Clinical agents & hospital operations interface