Back

How Mariana.AI achieved 82% faster AI clinical notes

Deveshi Dabbawala

July 31, 2025
Table of contents

Mariana.AI is an innovative healthcare company based on automating clinical documentation and patient engagement. GoML partnered with Mariana.AI to upgrade its clinical note generation and medical coding workflows from OpenAI to AWS Bedrock. To improve performance, prompt engineering and establish a scalable, compliant backend for future expansion into real-time and voice-based clinical support was the goal.

The problem: OpenAI based AI clinical notes that impacted accuracy

Mariana.AI had an OpenAI based deployment which generated AI clinical notes and medical codes from transcribed doctor-patient conversations. When it comes to accuracy, tone, and clinical relevance, the system faces limitations. Also, the team wanted to explore different vendors and choose an option that provided better flexibility and long-term scalability. This made OpenAI migration a key part of the project, rather than simply replacing one model with another.

Mariana.AI also needed to keep its current workflows unchanged, so the evaluation had to run smoothly. For this, Mriana.AI collaborated with GoML to benchmark Claude models on AWS Bedrock against its current OpenAI setup and understand their performance and potential in creating AI clinical notes.

The solution: A modernized AWS stack for AI in clinical notes  

GoML collaborated with Mariana.AI to build the proof of concept using the AI Matic platform as the delivery foundation for its clinical documentation and medical coding workflow. The team benchmarked Claude models (Sonnet 3.5, 3.7, and 4) against their existing OpenAI-based system. The assessment checked the quality of different model families, concentrating on tone, accuracy and clinical alignment. This setup remained separate from Mariana.AI’s production backend, so the team could compare the results without compromising live workflows.

This method was centered around four major areas: OpenAI migration, prompt orchestration, model benchmarking, and output validation. Initially, GoML converted medical papers into standardized JSON and Markdown formats, then they utilized Portkey and LangChain to prompt management over AWS Bedrock. Additionally, the developers installed the benchmarks based on accuracy, sensitivity and F-score as well as schema, logging, and error validation to ensure consistency in clinical outcomes.

AWS Bedrock and Langchain at the core of clinical AI orchestration

The modern AI in clinical documentation pipeline used:

  • Prompt Orchestration: Powered by Portkey and Langchain. Routed structure prompts Claude Sonnet Family Models.
  • Claude Sonnet: The Core LLM supported intelligent clinical report generation and medical coding.

Enterprise-grade architecture for scalable AI in clinical notes

  • Preprocessing Pipelines: ECR containers extracted and standardized notes from physician tools.
  • Vector DB Indexing: Embeddings were stored in OpenSearch for context-rich retrieval.
  • Explainability Framework: A dedicated Chief Medical Officer (CMO) agent signd off on validated reports.
  • CI/CD: GitHub, Docker, and CloudFront pipelines supported fast iteration and DevOps readiness.

‍

AI Matic delivery

GoML used the AI Content Generation blueprint as the delivery foundation for Mariana.AI clinical documentation and medical coding workflow.

Content Generation blueprint supported report generation, prompt orchestration, schema validation, benchmarking, and the migration form present OpenAI based system to AWS bedrock.

This approach of delivery kept the POC separate from Mariana.AI production backend. This allows both the companies to benchmark Claude models and evaluate clinical alignment before changing on-going workflows.

AI Matic delivery metrics

  • Average TTFV: 20 days
  • Average person-days saved: 8 days

Impact

Mariana.AI now benefits from consistent, high-quality clinical reports generated by AI, with explainability, benchmarking, and compliance built-in.

  • 82% reduction in manual report verification time due to structured JSON validation and explainability checks.
  • 3x faster faster generation of AI clinical notes over legacy systems
  • 97% adherence to output schema across specialties like cardiology, neurology, and gastroenterology.
  • 65% improvement in response accuracy after benchmarking with real-world inputs using F-score analysis.

About

Location 

United States 

Tech stack 

AWS, Amazon Bedrock, Claude Sonnet 3.5, Python, FastAPI, Amazon RDS, Amazon S3, LangChain, Portkey 

Before Gen AI and after Gen AI

Area 

Before GenAI 

After GenAI 

Clinical documentation 

Existing OpenAI-based clinical note and medical coding workflow 

AWS Bedrock with Claude Sonnet 3.5 generated clinical notes and supported medical coding workflows 

Prompt management 

Existing prompt setup with limited orchestration 

LangChain and Portkey managed advanced prompt orchestration for report generation 

Report generation 

Clinical information lacked the proposed standardized generation pipeline 

Backend APIs generated structured clinical reports in predefined JSON and Markdown formats 

Quality validation 

No automated benchmarking framework identified in the existing setup 

Benchmarking evaluated accuracy, sensitivity, F-score, and output fidelity 

Error handling 

Limited standardized validation across generated outputs 

Automated validation, schema checks, error handling, and logging improved output consistency 

AI infrastructure 

Clinical generation depended on the existing OpenAI architecture 

AWS-based architecture used Bedrock, Claude 3.5, FastAPI, RDS, and S3 for the clinical documentation workflow 

“With this migration wasn’t just about switching APIs, it was about engineering trust, speed, and structure into every AI-generated report”

Prashanna Rao, Head of Engineering at GoML.

Common challenges

  • Strong accuracy, compliance and scalability controls are needed in clinical documentation systems.
  • Preparing AI clinical notes requires proper validation to reduce manual review and QA effort.
  • Improper outputs increase risk of uneven clinical documentation
  • Managing different documents and specialty requirements requires orchestration of prompt workflows.
  • AI agents need separation between generation, validation, and explainability.
  • Clinical teams need accurate methods for measuring output quality before using AI-generated systems.

Practical guidance

  • Begin with continuous clinical documentation tasks that suit AI automation.
  • Use schema validation to keep every GenAI output accurate and consistent.
  • Apply benchmarking to measure accuracy and documentation quality.
  • Use multi-agent frameworks to separate generation, validation, and explainability workflows.
  • Add RAG with validation layers to improve the reliability of generated clinical outputs.
  • Use automated prompt orchestration and specialty-focused agents to reduce manual editing and clinical QA cycles.

Ready to modernize clinical documentation with AI

Partner with GoML to build accurate, structured, and scalable AI clinical notes and medical coding workflows on AWS with AI Matic.

‍

Outcomes

82%
Reduction in manual report verification time
97%
Adherence to output schema
65%
Improvement in response accuracy