A stateful, graph-based multi-agent workflow outperformed simpler routing strategies across retrieval relevance, summarization quality, and coordination benchmarks in an experimental study of privacy-aware healthcare conversational artificial intelligence. Published December 1, 2026, in Discover Artificial Intelligence by Kunal Kulkarni, Shivali Amit Wagle, and Smita Mahajan, the study evaluated a unified framework combining personally identifiable information (PII) masking, structured dialog summarization, semantic retrieval, and multi-agent large language model (LLM) orchestration. Across three public healthcare datasets and a manually curated 100-sample validation subset, the LangGraph node-based workflow achieved a precision of 0.92, recall of 0.90, F1-score of 0.91, ROUGE-L score of 0.87, BLEU score of 0.82, and RAGAS score of 0.85. It also reached an 89% success rate and 88% selection accuracy with an average of 0.7 fallback retries. Those gains came with higher latency, averaging 5.5 seconds per decision versus 3.5 seconds for a simpler baseline.
The researchers designed the framework to address gaps in healthcare conversational systems, most of which rely on monolithic LLM pipelines that lack structured, coordinated fallback routing. Medical conversations also require protecting sensitive patient identifiers while condensing context-dependent discussions into usable summaries. Although modular orchestration tools exist, their comparative performance in privacy-aware healthcare conversational workflows had remained insufficiently explored. To evaluate these designs systematically, the authors built a sequential multi-stage workflow. Healthcare conversations first undergo text preprocessing and automated PII masking before transformer-based models convert the de-identified exchanges into structured summaries. Next, a sentence transformer encodes those summaries into dense semantic embeddings indexed through Facebook AI Similarity Search (FAISS). During inference, an incoming user query triggers semantic retrieval of the most relevant summaries, which are then passed to a multi-agent orchestration layer coordinating four open-weight LLMs to generate a context-grounded healthcare response.
Empirical development and testing relied on three publicly accessible healthcare datasets. Medical-Instruction-100K provided roughly 100,000 human-to-AI conversations covering medication names, prescriptions, yoga and breathing exercises, and naturally occurring home remedies, which were converted into structured summaries serving as historical reference cases. MedQuAD supplied 47,457 medical question-and-answer pairs extracted from 12 National Institutes of Health websites—including cancer.gov, niddk.nih.gov, and MedlinePlus—spanning 14,984 unique values and 37 question types such as treatment, diagnosis, and side effects, alongside XML metadata. In MedQuAD, breast cancer represented 7.81% of focus areas, prostate cancer 6.33%, and stroke 5.15%, while skin cancer, Alzheimer’s disease, and colorectal and lung cancer each accounted for 4% to 5%. A third disease-symptoms and patient profile dataset, scraped from the National Health Portal of India and Wikipedia, covered over 200 diseases and around 400 symptoms, led by asthma (9.58%), stroke (6.67%), and osteoporosis (5.83%), with an equal gender split.
Because healthcare dialogs can contain names, home addresses, contact numbers, email addresses, and card numbers linked to protected health information, the pipeline applies preprocessing and automated anonymization prior to summarization. For Medical-Instruction-100K, the team separated human and AI segments using standardized tags and regular expression parsing to preserve conversational order, then processed the text with spaCy and NLTK libraries using lowercasing, stop-word removal, chunking, and chinking. Automated PII masking used Microsoft Presidio across five stages: regular expressions to detect structured patterns such as phone numbers, email addresses, and identification numbers; named entity recognition to identify entities outside fixed patterns; checksum validation to verify items such as credit card numbers; context-word rules—detecting expressions like “name is”—to raise detection confidence; and anonymization via tokenization, replacement, and redaction. The authors qualitatively inspected a subset of masked conversations to verify removal of directly identifiable information.
Before testing multi-agent orchestration, the researchers compared three foundational chatbot paradigms—rule-based, retrieval-based, and generative—using basic natural language processing preprocessing and term frequency-inverse document frequency (TF-IDF) vectorization. The rule-based system matched tokenized inputs against predefined keyword rules and fixed replies, producing an average TF-IDF score of 0.647 and roughly 65% correctness; it handled specific quantified questions rapidly but failed on inputs outside predefined patterns. The retrieval-based system vectorized queries and stored answers with TF-IDF and selected the closest match via cosine similarity, achieving an average similarity of 0.71 and approximately 71% accuracy by accommodating wording variations, though it remained limited by database coverage and struggled with novel queries. The generative baseline fed one-hot encoded tokens into a sequence-to-sequence encoder-decoder network with long short-term memory (LSTM) layers. Over 200 training epochs, it reached 81% training accuracy and 78% validation accuracy, offering more fluid responses at higher computational cost and off-topic risk.
To create concise, de-identified clinical context for downstream agents, the team evaluated pretrained transformer and generative models on structured dialog summarization, including Google T5, BERT base uncased, ClinicalBERT (pretrained on de-identified MIMIC-III intensive care records), BioBERT, BioGPT, LLaMA-2, GPT-3.5, and GPT-4o. Measured by cosine similarity against reference summaries, GPT-4o achieved the highest alignment at 0.92 while generating coherent abstracts containing medical terminology, followed by GPT-3.5 at 0.88. Domain-specific models BioGPT and ClinicalBERT scored 0.81 and 0.80, respectively, with BioGPT showing effective medical vocabulary usage at the cost of readability, whereas BERT base uncased scored lowest in relevance and fluency due to its general-domain training and encoder-only architecture. In the retrieval-augmented generation stage, the all-MiniLM-L6-v2 sentence transformer converted structured summaries into 384-dimensional dense vectors indexed in a FAISS flat index using exact L2 Euclidean distance, allowing user queries embedded in the same space to retrieve top-k semantically related summaries.
Retrieved summaries fed into a four-agent generative layer built from open-weight LLMs assigned to priority tiers. LLaMA 3.3 70B served as the primary agent for advanced medical reasoning, LLaMA 3 8B as the secondary agent for general summarization and cost-efficient fallback under high load, Mixtral 8x7B—a Mixture-of-Experts model with an extensive token window—as the tertiary agent for long-form clinical records and mixed-domain tasks, and Gemma 7B Instruct as the compact, ultra-low-latency fallback agent for simple queries and graceful degradation. The study compared three orchestration strategies governing these agents. Simple tiered routing operated without memory, cascading sequentially from LLaMA 3.3 70B down to Gemma upon rate limits, latency, or failure. LangChain Router Chain used heuristic or prompt-based rules to dynamically select one model per query based on document length and clinical vocabulary density, omitting memory. LangGraph placed each LLM in a directed stateful graph supervised by a Manager Agent that tracks execution state, checks output quality, and directs conditional retries.
The team evaluated orchestration using automated metrics—precision, recall, F1-score, ROUGE-L, BLEU, RAGAS, semantic accuracy using a cosine similarity threshold above 0.85, average decision time, retry depth, success rate, selection accuracy, and error rate—paired with manual qualitative review of 100 curated validation samples by healthcare domain experts for clinical accuracy, completeness, and coherence. LangGraph led every quality and reliability measure: its precision (0.92), recall (0.90), and F1-score (0.91) surpassed LangChain Router (0.86, 0.83, and 0.84) and simple tiered orchestration (0.82, 0.79, and 0.80). LangGraph also recorded the highest average cosine similarity (0.89), success rate (89%), and selection accuracy (88%) alongside the lowest retry depth (0.7), outperforming LangChain Router (83% success rate and 83% selection accuracy) and the custom-agent tiered baseline (79% success rate, 81% selection accuracy, and 1.8 retries). LLaMA 3.3 70B was invoked most often across all strategies, while LangGraph minimized failures across every model, reducing Mixtral failures from 10 under tiered routing and 9 under LangChain to 5.
LangGraph’s higher coordination consistency introduced a clear latency trade-off. Because stateful graph execution performs additional state management, node assessment, and conditional transition checks at each step, its average decision time reached 5.5 seconds, compared with 3.5 seconds for the stateless tiered framework. The authors note that a 5.5-second average may suit research-oriented clinical information retrieval, patient guidance, and decision-support tasks where contextual consistency takes priority over sub-second speed, whereas latency-sensitive real-time clinical applications would require further optimization. Crucially, the study reported only overall average processing times without separately profiling retrieval, inference, state management, routing, and post-processing, and conducted no load testing across varying input lengths or workflow complexities. Moreover, because the experiments compared complete orchestration workflows without ablation studies isolating state management, routing logic, or node transitions—and did not classify failures by root cause such as hallucinations or retrieval errors—the authors caution that the results reflect comparative observations rather than causal proof of specific architectural mechanisms.
Additional methodological, privacy, and safety limitations constrain real-world applicability. Controlled comparative and qualitative expert evaluation relied on 100 curated samples without a formal statistical power analysis, statistical hypothesis testing between models, quantified inter-rater agreement, or statistical analysis of model-by-orchestration interactions. Only a restricted set of open-source LLMs was tested, and alternative or newer models could perform differently. Regarding privacy, the authors note that automated Presidio masking targets explicit identifiers and may miss implicit references or quasi-identifiers—such as age ranges, geographic locations, or clinical history patterns—that could allow indirect re-identification through linkage attacks. Because PII checks were strictly qualitative, the study reports no quantitative precision, recall, false-positive, or false-negative rates and does not establish HIPAA or GDPR compliance. Finally, the team did not systematically evaluate medical factuality, hallucination errors, demographic bias, or clinician-rated safety, emphasizing that cosine similarity and orchestration metrics do not establish clinical safety and that the framework remains exploratory.
Subject of Research: Privacy-aware multi-agent large language model orchestration, dialog summarization, and semantic retrieval for healthcare conversational AI
Article Title: Multi agent orchestration of LLMs for healthcare conversational AI with privacy masking and dialog summarization
Article References: Kulkarni, K., Wagle, S. A., & Mahajan, S. (2026). Multi agent orchestration of LLMs for healthcare conversational AI with privacy masking and dialog summarization. Discover Artificial Intelligence, 6(1), Article 2023. https://doi.org/10.1007/s44163-026-02884-8
Image Credits: AI Generated
DOI: 10.1007/s44163-026-02884-8
Keywords: healthcare conversational AI, multi-agent orchestration, LangGraph, LangChain Router, retrieval-augmented generation, FAISS, Microsoft Presidio, PII masking, dialog summarization, large language models, LLaMA 3.3 70B, Mixtral 8x7B, Gemma 7B Instruct, GPT-4o, MedQuAD, Medical-Instruction-100K, semantic embeddings, RAGAS
News Source: Denise Maddox. (December 2, 2026). Graph-Based Multi-Agent Routing Outperforms Alternatives in Experimental Healthcare AI Tests. Scienmag.



