TechExplainedTechExplained
|
Use CaseDomain: Microsoft FoundryIndustry: Healthcare

Healthcare: Clinical knowledge assistant with Microsoft Foundry

An academic hospital surfaces protocols and guidelines through a grounded RAG agent, with groundedness evaluation and citations as a condition for use in the consultation room.

TechExplained 2 min readPublished: 26 juli 2026
Microsoft FoundryAzure AI SearchMicrosoft Purview
#rag#grounding#groundedness#content safety
Two doctors consult the Clinical Knowledge Assistant on a screen, with a groundedness score and citation to the protocol

Business challenge

Doctors and nurses at an academic hospital searched daily through scattered protocols and guidelines, spread across intranet pages, PDF files and department folders. Searching took time that was not available during a consultation, and there was a risk that an outdated version of a protocol would be consulted without anyone noticing.

Architecture

A RAG agent on Microsoft Foundry searches exclusively through authorized protocols and guidelines, indexed in Azure AI Search with hybrid retrieval and semantic ranking. Simple questions, such as looking up a dosage table, go to a small, fast model. More complex questions, where multiple guidelines need to be weighed against each other, go to a stronger model with more reasoning capability. Every answer cites the source and version number of the protocol, and the system refuses to answer once the retrieval score drops below a configured threshold.

Why this choice

In healthcare, an ungrounded answer is not an inconvenience but a risk. By making groundedness evaluation mandatory before production, and by having the system refuse rather than guess, the assistant remains a tool that points to the source instead of an oracle that confidently makes mistakes. Choosing the model per task keeps costs and latency under control without sacrificing quality on complex questions.

Alternatives

One large, expensive model for every question was simpler to build, but unnecessarily drove up cost and latency for the majority of simple questions. A generic chatbot without grounding on the hospital's own protocols was considered, but offered no guarantee that the answer matched current, hospital-specific policy.

Trade-offs

  • A strict groundedness threshold means the assistant sometimes refuses to answer where a doctor had a reasonable assumption; that is a deliberate choice, not a shortcoming.
  • Two models side by side (small for simple, strong for complex) require a routing layer that needs maintenance as new models become available.
  • Provisioned Throughput during peak moments increases predictability, but also fixed costs outside peak hours.

Microsoft products

Microsoft Foundry (Foundry Agent Service, model catalog, evaluations, content safety), Azure AI Search (grounding), Microsoft Entra ID (identity and Conditional Access), Microsoft Purview (sensitivity labels, DSPM for AI).

Best practices

  • Make groundedness evaluation and a mandatory citation requirement part of the CI/CD gate, not a separate quality check afterward.
  • Route simple and complex questions to different models instead of using one model for everything.
  • Let sensitivity labels travel through to the answer, so confidentiality is not lost when citing a source.

Lessons learned

In the first weeks, the retrieval threshold turned out to be too strict: the assistant refused more often than necessary on questions that could in fact be answered with grounding. After refining the chunking strategy on the protocol documents, using smaller, semantically coherent sections, the number of unwarranted refusals dropped significantly without lowering the groundedness threshold.

Architecture at a glance

Click a component for details

Protocols

Authorized protocols and guidelines, chunked into semantically coherent sections.

Below the retrieval threshold the assistant refuses to answer; complex trade-offs go to a stronger model than a simple lookup question.

Healthcare: Clinical knowledge assistant with Microsoft Foundry | TechExplained