Building a Comprehensive LLM Platform for Healthcare Applications
includedhealth · Healthcare · 2024 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Healthcare GenAI platform
Included Health needed a reusable internal GenAI platform that could support healthcare LLM applications while managing provider routing, credentials, evaluation, prompting, serving, HIPAA-sensitive data concerns, and a rapidly changing model landscape.
Constraints:
- healthcare use cases include HIPAA and regulated data concerns
- multiple model providers need to be routed behind one internal interface
- teams use different languages and need stable client interfaces
- platform users need evaluation, prompt tooling, serving, and proxy access
- the model/provider landscape changes too fast for a rigid long-term roadmap
Architecture
Included Health built Wordsmith around an internal proxy service, client library, serving infrastructure, evaluation library, prompt tooling, and internal ChatUI. All LLM requests pass through wordsmith-proxy, which centralizes provider routing and credentials. The platform supports applications such as clinical documentation, insurance plan questions, records collection, internal assistants, and emerging agent infrastructure.
Diagram confidence: reconstructed (reconstructed from prose).
flowchart LR client-library[Client library] --> wordsmith-proxy[Wordsmith proxy] wordsmith-proxy --> model-providers[Model providers] wordsmith-proxy --> prompt-tooling[Prompt tooling] prompt-tooling --> evaluation-library[Evaluation library] wordsmith-serving[Wordsmith Serving] --> healthcare-applications[Healthcare applications] healthcare-applications --> agent-tooling[Agent tooling]
Components
| Component | Role | Interacts with |
|---|---|---|
Client library |
Stable interface used by data scientists and engineers to call models. | Wordsmith proxy |
Wordsmith proxy |
Server-side routing and credential layer for LLM providers. | Client library, Model providers, Prompt tooling |
Model providers |
Azure OpenAI, Google VertexAI, AWS Bedrock, and other model backends. | Wordsmith proxy |
Evaluation library |
Wrapper around HuggingFace evaluate plus custom/open-source metrics. | Prompt tooling |
Prompt tooling |
Templates and few-shot example selection by semantic similarity. | Wordsmith proxy, Evaluation library |
Wordsmith Serving |
Model serving layer for capabilities such as Whisper transcription. | Healthcare applications |
Healthcare applications |
Clinical scribe, plan questions, records collection, internal ChatUI, and assistants. | Wordsmith Serving, Agent tooling |
Agent tooling |
wordsmith-tools and wordsmith-agents for tool-calling and agent configuration. | Healthcare applications |
Data flow
A team calls Wordsmith through a client library or ChatUI. The request goes to wordsmith-proxy, which routes to the selected provider by model name, handles credentials centrally, and returns results. Supporting libraries provide evaluation metrics, prompt templates, few-shot example selection, transcription serving, and agent/tool configuration.
3 supporting quotes
Why this architecture
Centralizing routing on the server insulated users from provider churn, simplified credential management, and let teams change model providers by model string rather than code changes. Open-source/common interfaces kept Wordsmith adaptable as providers and APIs changed.
3 supporting quotes
Models used: Azure GPT-4 Turbo · Google Gemini Pro · Google VertexAI · AWS Bedrock · Azure OpenAI · Whisper · Claude
Scale
- Wordsmith rolled out ChatUI to 400 internal users.“We’ve now rolled it out to 400 internal users! The “Assistants” feature has spawned a number of helpful productivity assistants, like Meeting Summarizer, which summarizes Google Meet transcripts, and IH Dejargonizer, a play on the popular [Dejargonizer GPT](https://simonwillison.”article, stated
- An internal Confluence agent is used by over 80 engineers.“an agent in ChatIH that can query for internal Confluence documentation, which is now used by over 80 of our engineers.”article, stated
- Included Health moved from no GPT-4 release to managing LLMs from three cloud providers within six months.“Fast forward 6 months, and all of a sudden we have LLMs from three different cloud providers (Google VertexAI, AWS Bedrock, and Azure OpenAI) to manage.”article, stated
Alternatives considered (roads not taken)
Client-side provider routing
Rejected because: The team moved routing and credentials server-side to insulate users from churn and simplify credential handling.
Custom proprietary interfaces everywhere
Rejected because: The team favored open-source tools and common interfaces to integrate with external tooling.
Patterns
model-routing (model-ops)
wordsmith-proxy routes model requests to providers behind a single internal service.
eval-driven-development (evaluation)
The platform includes a wrapper around HuggingFace evaluate plus open-source and custom metrics.
prompt-versioning (prompt-ops)
Prompt tooling abstracts templates and few-shot example selection for LLM applications.
tool-use-orchestration (agent-design)
Wordsmith is adding OpenAPI-backed tool endpoints and configurable LLM agents.
Tradeoffs
Provider routing location
Chose server-side routing through wordsmith-proxy over client-side provider calls.
Rationale: Server-side routing centralizes credentials and provider churn.
Platform interface strategy
Chose OpenAI-like/common APIs where possible over bespoke APIs for every capability.
Rationale: Common interfaces improve compatibility with existing tools and reduce future rewrites.
Gotchas (what bit them)
The GenAI platform roadmap changes faster than yearly planning.
Root cause: External providers and internal company needs change rapidly.
Resolution: Keep the platform modular and use open-source/common interfaces.
Credential distribution becomes fragile if each user calls providers directly.
Root cause: Each provider has separate credentials and access patterns.
Resolution: Centralize credentials in wordsmith-proxy.
Evaluation
Wordsmith includes an evaluation library around HuggingFace evaluate, custom metrics, prompt tooling, and application-specific evaluation for deployed use cases.
Metrics: HuggingFace evaluate metrics · custom metrics · application adoption · internal users · engineer usage
Outcomes
- Wordsmith supports clinical scribe, insurance plan questions, records collection, data documentation, and internal ChatUI applications.
- ChatUI rolled out to 400 internal users.
- Agent tooling is now used by over 80 engineers for Confluence documentation queries.
The platform supports multiple production healthcare applications and 400 internal ChatUI users.