← Clinical AI

FEAT-AI-LLM-ROUTING

Right-Sized AI Pipeline

Each kind of AI work runs on the model best suited to it — a fast, cheap one for real-time clinical assists; a powerful, slower one for nuanced summaries — and every customer's zone can choose its own providers.

Why this matters

AI is not one product, it is many. Naming a speaker on a transcript is trivial work that has to come back in milliseconds. Drafting a discharge summary is heavy reasoning that takes seconds. Suggesting whether a mention of "MRI" is an actionable order is a near-real-time signal clinicians use during the conversation.

A platform that uses the same large model for every one of these tasks spends excessively, and is slow exactly where the clinician needs it fast. A platform that uses one small model for everything misses diagnoses-in-language that only a stronger model can pick up.

Equally, AI is not one provider. Different jurisdictions hold different views on which AI infrastructure their patient data may touch. A national healthcare system may require its AI to run on local hardware; a private group may prefer a hyperscaler under their existing data-processing agreement.

The right-sized AI pipeline is the platform's answer: each clinical AI job is named, classified, and routed to the model and provider that match its latency, cost, and regulatory profile. The choice is independent for every (zone, task kind) pair, and each task can carry its own helpers — code-system indexes, terminology lookups, retrieval over the organisation's templates — so the model is informed by the right structured knowledge for the work it is doing.

What's in the box

  • Task kind as the unit of routing. Speaker labelling, summarisation, action detection, anonymisation, and free-text-to-clinical-resource conversion are the initial set of distinct named jobs. Adding a kind is how the platform takes on a new class of AI work without conflating it with existing ones.

  • Per (zone, task kind) routing. Every zone × task kind pair maps to its own model and provider independently. Speaker labelling in one zone may run on a small local model while summarisation in the same zone runs on a hyperscaler; the same speaker labelling in another zone may use yet another provider. The matrix — not a single global model choice — is the configuration the platform follows.

  • Bounded throughput per model. Heavy jobs — post-visit summaries above all — run on models with finite capacity. The platform caps how many of them run at once (a per-zone setting), so a burst of visits ending together can't overrun the model or starve the real-time work (action detection, role labelling) a clinician depends on mid-conversation. Excess heavy jobs wait in a queue and drain as capacity frees, rather than all hitting the model at once.

  • Task helpers. A task kind may need more than a prompt and a model. Code-system lookups (so the AI's output resolves to a real ICD or SNOMED code rather than free text), terminology indexes, and retrieval over the organisation's own templates are configured per task kind and can be zone-specific — jurisdictions use different code systems and national catalogues. Helpers run alongside the model call so each module does not have to reimplement them.

  • The zone declares what can be recognised. A terminology index only holds what a clinician could plausibly say. A jurisdiction's terminology directory carries much more than that — reference ontologies the knowledge base reasons over, administrative code lists bound by forms — and none of it is dictated aloud. The zone names the catalogues that belong to the spoken surface, and that declaration is configuration: a jurisdiction widens what its clinicians can be understood to have said without waiting for a release. An absent or broken declaration narrows the surface to a known-good set rather than opening it, because the alternative is offering a clinician's words to a model against material nobody speaks.

  • Pre-filters save calls. Real-time tasks like action detection are guarded by a keyword catalogue; segments that have no plausible bookable item never reach the AI. Most chit-chat segments cost nothing.

  • Constrained outputs. The platform asks each provider for a specific structured response, eliminating the "the model returned prose" failure mode that costs retries.

  • Stable prompt prefixes. The fixed instructions sent to each provider are byte-identical across calls of the same kind, allowing modern providers to re-use cached interpretations and respond faster, cheaper.

  • Providers as configuration. Adding a provider that follows a standard interface — most self-hosted local LLMs do — is a configuration change. Bespoke APIs need a one-time adapter; once it exists, every subsequent zone using the same provider is configuration only.

Standards we lean on

  • GDPR Article 32 — security of processing. Provider choice is part of the security posture, not a hidden detail.
  • HIPAA Business Associate Agreements — every AI provider that processes ePHI is under a BAA; routing constrains which providers any customer organisation's work touches.
  • ISO/IEC 23894 — AI risk management framework; providers and tasks are classified consistently across jurisdictions.

What customers and operators experience

  • A clinician during a visit sees real-time prompts (action detection, role labelling) come back almost instantly because they run on a fast model — while richer post-visit summaries arrive a few seconds later from the heavier model.
  • A jurisdiction with strict data residency runs its sensitive AI work on local infrastructure; the same product elsewhere runs the same work on a cloud provider. The clinician's experience is identical.
  • A finance lead can see how much each kind of AI work costs and retune routing in configuration — promoting more work to local models, demoting non-critical work to cheaper providers — without an engineering project.
  • A clinician's first words after "hello" don't trigger an AI call at all: a fast keyword filter recognises chit-chat and skips the model entirely.
  • An operator adding a new AI provider registers it once and lets zones opt in. Standard-interface providers can be added by configuration alone.

Limits and trade-offs

  • Provider quality varies per task. When changing a provider for a given kind, accuracy must be re-validated for that kind — quality guarantees do not transfer.
  • Switching providers mid-customer organisation requires planning: cached prompt prefixes do not move with the data, so the first hours after a switch run more slowly until the new provider warms up.
  • The keyword catalogue needs upkeep. New procedures, treatments, and languages require keyword additions; the platform errs on the side of running the AI when in doubt, but un-tended catalogues drift toward over-running.
  • A narrow recognition surface can be too narrow. Restricting the index to declared catalogues means a term nobody declared is a term the platform cannot recognise, however common it is in speech. The failure is silent — a missing catalogue looks like a model that simply did not hear the word. Widening is a config commit, but noticing that it is needed takes someone reading transcripts against what was proposed.
  • AI quality is bounded by the underlying provider. Routing optimises which model handles each job; it does not improve any individual model's clinical accuracy.
  • Heavy work queues under load. Because concurrent heavy jobs are capped to protect the model and the real-time path, a burst of post-visit summaries can wait briefly for a free slot. Summaries are deliberately the no-latency-budget kind, so they queue rather than slow down the real-time work — but the cap has to be sized to the model's capacity, or the wait grows under sustained load.
What it rests on
0 / 5 passing
  • gap: not yet stated Each kind of AI work is routed to its own model and provider, per zone. FEAT-GAP-c84998e4
  • gap: not yet stated Heavy AI work is capped per zone and never starves real-time work. FEAT-GAP-5d3f7825
  • gap: not yet stated A zone declares which catalogues can be recognised, and a broken declaration narrows the set rather than opening it. FEAT-GAP-e2622c14
  • gap: not yet stated AI outputs are constrained to a fixed structure. FEAT-GAP-5c0b8767
  • gap: not yet stated A provider speaking the standard interface is added by configuration, without code. FEAT-GAP-569958c2