Streamlining Clinical Trial Documentation Generation with RAG and LLMs

clario · Healthcare · 2025 · source Agentic: yes · promotional bias: high · source-backed · extracted with prompt 0.5.6 (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: Clinical-trial documentation generation

Clario needed to streamline generation of Business Requirement Specification documents and related clinical-trial documentation derived from medical imaging charters, a weeks-long manual process prone to errors, inconsistencies, redundancy, and downstream study delays.

Constraints:

Architecture

Clario and AWS built a RAG prototype for BRS generation. Charter-derived documents are prepared by an on-premises script, chunked, embedded with Amazon Titan Text Embeddings, stored in Amazon OpenSearch Serverless, retrieved by a workflow engine, and passed to Claude 3.7 Sonnet on Amazon Bedrock. A business requirement writer reviews generated answers in the UI, and final documents are written back to Amazon S3.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  medical_imaging_charter["Medical imaging charter"] --> on_premises_preparation_script["On-premises preparation script"]
  on_premises_preparation_script --> amazon_titan_text_embeddings["Amazon Titan Text Embeddings"]
  on_premises_preparation_script --> amazon_s3_document_storage["Amazon S3 document storage"]
  amazon_titan_text_embeddings --> amazon_opensearch_serverless["Amazon OpenSearch Serverless"]
  amazon_opensearch_serverless --> workflow_engine["Workflow engine"]
  workflow_engine --> amazon_bedrock_claude_3_7_sonnet["Amazon Bedrock Claude 3.7 Sonnet"]
  workflow_engine --> brs_review_interface["BRS review interface"]
  brs_review_interface --> amazon_s3_document_storage
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Medical imaging charter Source document defining central-review requirements for clinical-trial images. On-premises preparation script
On-premises preparation script Prepares charter-derived documents, chunks them, and calls the embedding model. Medical imaging charter, Amazon Titan Text Embeddings, Amazon S3 document storage
Amazon Titan Text Embeddings Produces embeddings for document chunks. On-premises preparation script, Amazon OpenSearch Serverless
Amazon OpenSearch Serverless Durable vector store for semantically relevant charter chunks and document attributes. Amazon Titan Text Embeddings, Workflow engine
Workflow engine Queries OpenSearch and orchestrates BRS document generation through Amazon Bedrock. Amazon OpenSearch Serverless, Amazon Bedrock Claude 3.7 Sonnet, BRS review interface
Amazon Bedrock Claude 3.7 Sonnet Generates BRS answers and conversational responses for the document workflow. Workflow engine
BRS review interface Human review point where business requirement writers produce final documents from generated answers. Workflow engine, Amazon S3 document storage
Amazon S3 document storage Stores charter-derived and final generated BRS documents for publication and future workflows. On-premises preparation script, BRS review interface

Data flow

Charter-derived documents are prepared for upload, chunked, embedded, and stored in OpenSearch Serverless. The workflow engine retrieves relevant charter chunks, calls Claude 3.7 Sonnet through Amazon Bedrock to generate BRS answers, presents the output in a UI for writer review, and stores final documents in Amazon S3 for future workflows.

4 supporting quotes
“Charter-derived documents are processed in an on-premises script in preparation for uploading.”article, stated
“The script chunks the documents and calls an embedding model to produce the document embeddings.”article, stated
“The workflow engine calls the Amazon Bedrock API and orchestrates the business requirement specification document generation process.”article, stated
“Outputs the business requirement specification document to the user interface, where a business requirement writer can review the answers to produce a final document.”article, stated

Why this architecture

The architecture uses RAG and serverless AWS services because the downstream BRS content must stay grounded in medical imaging charters, scale with demand, and remain inside a secure AWS environment while still leaving a business requirement writer in the loop for final document quality.

3 supporting quotes
“The content of these documents is largely derived from the Charter, with significant reformatting and rephrasing required.”article, stated
“Amazon OpenSearch Serverlessis used as the durable vector store.”article, stated
“Clario’s data security strategy revolves around confining all its information within the secure AWS ecosystem using the security features of Amazon Bedrock.”article, stated

Models used: Claude 3.7 Sonnet · Amazon Titan Text Embeddings · Amazon Bedrock foundation models

Scale

Alternatives considered (roads not taken)

Manual reformatting and rephrasing from the Charter

Rejected because: The manual process was time-consuming and risked errors, inconsistencies, redundancy, and trial delays.

“This process is time-consuming, can be subject to inadvertent manual error, and carries the risk of inconsistent or redundant information”article, stated

Ungrounded generation

Rejected because: The workflow retrieves relevant charter content from OpenSearch before generating answers, keeping outputs tied to source documents.

“Queries OpenSearch for the relevant Imaging charter.”article, stated
“Document chunk embeddings are stored in an OpenSearch vector index, which enables the application to search for the most semantically relevant documents.”article, stated

Fully automated final documentation

Rejected because: The source keeps a business requirement writer in the review path before final documents are produced.

“where a business requirement writer can review the answers to produce a final document.”article, stated

Patterns

rag-retrieval (grounding)

The BRS generation workflow retrieves semantically relevant charter chunks from OpenSearch before invoking Claude.

“Document chunk embeddings are stored in an OpenSearch vector index, which enables the application to search for the most semantically relevant documents.”article, stated

human-in-the-loop-gate (quality control)

A business requirement writer reviews generated answers to produce the final clinical-trial document.

“7. Outputs the business requirement specification document to the user interface, where a business requirement writer can review the answers to produce a final document. Clario uses Claude 3.7 Sonnet from Amazon Bedrock for the question-answering and the conversational AI application.”article, stated

tool-use-orchestration (workflow orchestration)

A workflow engine coordinates vector retrieval, Bedrock calls, UI output, and final S3 document writing.

“The workflow engine calls the Amazon Bedrock API and orchestrates the business requirement specification document generation process.”article, stated

privacy-preserving-processing (security)

The solution keeps Clario information within AWS infrastructure using Bedrock security features.

“By keeping data isolated within the AWS infrastructure, Clario helps ensure protection against external threats and unauthorized access.”article, stated

Tradeoffs

Use RAG over charter-derived documents.

Chose OpenSearch vector retrieval plus Claude generation over Pure LLM generation from prompts.

Rationale: The BRS content is largely charter-derived, so retrieval grounds generation in the trial-specific source document.

“* Queries OpenSearch for the relevant Imaging charter.”article, stated
“Calls the Claude 3.7 Sonnet large language model from Amazon Bedrock”article, stated

Use serverless AWS services.

Chose Amazon S3, OpenSearch Serverless, and Amazon Bedrock over Self-managed vector and model infrastructure.

Rationale: The source emphasizes serverless scalability, modular integration, and keeping sensitive data inside AWS.

“The serverless architecture provided by AWS services allows the solution to scale seamlessly as demand increases”article, stated

Prototype first before production rollout.

Chose AWS-developed prototype with 2025 productionization over Immediate full production deployment.

Rationale: The case reports a prototype that demonstrated benefits and is being productionized in the Medical Imaging business.

“Following the success of this project, Clario is working to productionize the solution in their Medical Imaging business during 2025”article, stated

Gotchas (what bit them)

Manual document derivation can create clinical-trial delays.

Root cause: BRS and related documents are derived from Charters but require extensive reformatting and rephrasing.

Resolution: Automate BRS drafting with a RAG workflow while retaining human review.

“The content of these documents is largely derived from the Charter, with significant reformatting and rephrasing required.”article, stated
“This process is time-consuming, can be subject to inadvertent manual error, and carries the risk of inconsistent or redundant information, which can delay or otherwise negatively impact the clinical trial.”article, stated

Sensitive clinical data needs infrastructure isolation.

Root cause: Clinical-trial documentation contains information requiring confidentiality, integrity, and compliance confidence.

Resolution: Keep data within AWS infrastructure and use Bedrock security features.

“Clario’s data security strategy revolves around confining all its information within the secure AWS ecosystem using the security features of Amazon Bedrock.”article, stated

Evaluation

The AWS/Clario post reports prototype benefits qualitatively: improved accuracy, scalability/flexibility, and security, but it does not provide a quantitative benchmark harness.

Metrics: Documentation generation previously could take weeks. · Clario-supported clinical trials: more than 26,000. · Regulatory approvals supported: over 700. · Countries supported: more than 100.

“By using AWS AI services, Clario has streamlined the complicated BRS generation process significantly. The prototype solution demonstrated the following benefits:”article, stated
“The use of generative AI models minimized the risk of translation errors and inconsistencies, reducing the need for rework and study delays.”article, stated

Outcomes

The case reports prototype benefits and 2025 productionization plans, not production traffic or latency metrics.

“By using AWS AI services, Clario has streamlined the complicated BRS generation process significantly. The prototype solution demonstrated the following benefits:”article, stated
“As Clario continues to adopt AI/ML across its operations, the company is well-positioned to drive innovation and deliver better outcomes”article, stated