Developing a Multilingual Ayurvedic Medical LLM: Challenges and Learnings

trigent_software · Healthcare · 2023 · source Agentic: no · promotional bias: low · 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: Multilingual medical-domain LLM adaptation

Trigent tried to build a multilingual Ayurvedic medical LLM that could preserve ancient medical concepts, regional language nuance, cultural context, and modern diagnostic terminology, but the available data and modeling approach were not sufficient for the ambition.

Constraints:

Architecture

The team assembled Ayurvedic books, PubMed data, chatbot data, and synthetic patient interactions, initially aiming for a multilingual RAG/fine-tuning setup. After the multilingual plan became too difficult, they pivoted to English, fine-tuned GPT-2 Medium with about 347 million parameters on roughly 150,000 validated rows/draws of data, and treated the prototype as a learning step toward future data collection and academic collaboration.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  ayurvedic-source-corpus["Ayurvedic source corpus"] --> data-preparation-pipeline["Data preparation pipeline"]
  chatbot-and-pubmed-datasets["Chatbot and PubMed datasets"] --> data-preparation-pipeline["Data preparation pipeline"]
  synthetic-patient-interactions["Synthetic patient interactions"] --> data-preparation-pipeline["Data preparation pipeline"]
  data-preparation-pipeline --> gpt-2-medium-fine-tuning["GPT-2 Medium fine-tuning"]
  gpt-2-medium-fine-tuning --> ayurvedic-consultation-prototype["Ayurvedic consultation prototype"]
  ayurvedic-consultation-prototype --> future-regional-data-program["Future regional data program"]
  future-regional-data-program --> ayurvedic-source-corpus["Ayurvedic source corpus"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Ayurvedic source corpus Public-domain Ayurveda books and domain texts used to capture concepts and terminology. Data preparation pipeline
Chatbot and PubMed datasets Structured rows of medical/chatbot data used as training material. Data preparation pipeline
Synthetic patient interactions Generated symptom and disease utterances in target languages and English. Data preparation pipeline
Data preparation pipeline Data cleaning, translation/neutralization, contextualization, summarization, and validation process. GPT-2 Medium fine-tuning
GPT-2 Medium fine-tuning Fine-tuned model prototype with 347 million parameters. Ayurvedic consultation prototype
Ayurvedic consultation prototype Prototype meant to respond to symptoms, doshas, imbalances, and treatment/lifestyle questions. Future regional data program
Future regional data program Planned collaboration to gather more targeted cultural and regional data. Ayurvedic source corpus

Data flow

Domain data came from chatbot rows, PubMed rows, public-domain Ayurvedic books, and synthetic patient interactions. The team intended to use multilingual and RAG-style data to inject terminology and context, then pivoted to English-only to make progress. The final training path fine-tuned GPT-2 Medium over a validated dataset and used the results to identify missing regional and cultural data.

“we had Aura books that we had gathered most of them in the public domain available for usage we collected all of those we had close to about 2 GB of those which we were deciding to use as part of rag logic”transcript, stated
“we decided to stick to English plain and simple keep it moving so that we could make progress”transcript, stated

Why this architecture

The team started with multilingual domain adaptation because Ayurveda depends on regional language, cultural nuance, and specialized medical concepts. They pivoted to English-only and a smaller GPT-2 Medium fine-tune because multilingual contextual accuracy was too hard with the available data.

“cultural nuances in the diagnosis was something that was very native to us when we were thinking through the bits so we wanted it to be colloquial”transcript, stated
“didn't work out there were limitations there were difficulty in generating contextual accurate cultural responses”transcript, stated

Models used: GPT-2 Medium · IRGPT / Ayur GPT prototype · Synthetic data generation pipeline · RAG logic planned but not completed

Scale

Alternatives considered (roads not taken)

Build the multilingual version immediately

Rejected because: The team could not generate sufficiently contextual and culturally accurate regional-language responses.

“didn't work out there were limitations there were difficulty in generating contextual accurate cultural responses”transcript, stated

Continue with full RAG/domain-text injection first

Rejected because: Although the team collected roughly 2GB of books for RAG logic, the roadblock came before the broader multilingual setup was solved.

“we had close to about 2 GB of those which we were deciding to use as part of rag logic so that we are able to inject the terminologies”transcript, stated

Present the work as a success story

Rejected because: The presenter explicitly frames it as a lessons/failure story to drive continued iteration.

“this presentation is not a success story this presentation is the learnings that we achieved while we were trying to solve something that has not been solved”transcript, stated

Patterns

fine-tuning-adaptation (model-ops)

The team fine-tuned GPT-2 Medium for an Ayurvedic medical-domain prototype.

“we started fine-tuning the model nothing new something that you guys have seen we chose our Mighty gpt2 medium”transcript, stated

synthetic-data-generation (data)

Synthetic patient interactions were generated to cover disease and symptom phrasings in colloquial target languages.

“we also had generated synthetic data of about 35,000 rows um essentially patient interactions saying deason and symptoms in various ways in colloquial ways”transcript, stated

rag-retrieval (retrieval)

The team planned RAG-style use of public-domain Ayurveda books to inject terminology and context, though this remained part of the learning path rather than a successful deployment.

“we had close to about 2 GB of those which we were deciding to use as part of rag logic so that we are able to inject the terminologies”transcript, stated

data-quality-loop (data)

The main lesson was that more targeted regional and cultural data is needed before the medical multilingual model can be reliable.

“we could conclude that we need more targeted data uh we need more Regional cultural nuances to be captured probably in a different way”transcript, stated

Tradeoffs

Pivot from multilingual to English

Chose English-only prototype over Immediate Kannada/Tamil/Malayalam multilingual support.

Rationale: The multilingual version could not yet produce culturally and contextually accurate responses, so narrowing scope enabled learning progress.

“we decided to Pivot Go Back to Basics”transcript, stated

Fine-tune GPT-2 Medium

Chose A 347-million-parameter GPT-2 Medium prototype over Waiting for a larger or perfect medical LLM stack.

Rationale: The team prioritized getting a learning prototype working over claiming production success.

“we chose our Mighty gpt2 medium”transcript, stated

Continue after an unsuccessful first version

Chose More targeted data and academic collaboration over Stopping after the failed multilingual attempt.

Rationale: The team viewed the failure as a step toward a better context-aware Ayurveda model.

“we are not stopping here we are sure that there is lot to be done with ayurveda there is a lot that we can achieve with it”transcript, stated

Gotchas (what bit them)

Multilingual medical domain adaptation failed on cultural/contextual accuracy.

Root cause: The data did not capture enough regional language nuance, cultural context, and Ayurvedic terminology.

Resolution: Pivot to English-only for the prototype and plan targeted regional data collection with academic partners.

“we decided to stick to English plain and simple keep it moving so that we could make progress”transcript, stated

Volume alone did not solve domain quality.

Root cause: The team had many rows and books, but culturally correct, contextual response generation remained hard.

Resolution: Treat the corpus as a starting point and return to targeted data design.

“The Good Bad and the Ugly the good was we had the volume to get started so there was a large enough data set that we felt was good enough”transcript, stated

Medical-cultural terminology created translation and diagnosis risk.

Root cause: Ayurvedic concepts, modern medical terminology, symptoms, doshas, and local dialect all had to align.

Resolution: Simplify scope, preserve context-aware response goals, and iterate with better cultural data.

“we wanted to have integration of modern medical terminology also be there at the at as the base because as part of Aura while the ayurva consultation is going on”transcript, stated

Evaluation

The source describes validation of a roughly 150,000-row dataset and qualitative learning from prototype limitations, but no production benchmark or clinical evaluation is provided.

Metrics: Dataset volume/validation · Contextual response accuracy · Cultural/regional nuance coverage · Ability to generate diagnosis/treatment/lifestyle responses · Prototype learning rather than production success

“150,000 draws of data that was good enough for us to go ahead and high trade and see through it was validated to a great extent”transcript, stated
“didn't work out there were limitations there were difficulty in generating contextual accurate cultural responses”transcript, stated

Outcomes

The prototype used about 150,000 data rows/draws, 35,000 synthetic patient interaction rows, roughly 2GB of public-domain Ayurvedic books, and a 347-million-parameter GPT-2 Medium model.

3 supporting quotes
“Using GPT-2 Medium with 347 million parameters trained on approximately 150,000 validated samples, they achieved a working prototype but acknowledged the project as a learning experience”summary, stated
“hopefully we should be able to collaborate with uh uh our academic partners and get more diverse data probably by December 2024”transcript, stated
“we'll focus on the context aware responses for the diag nois probably iterate through that”transcript, stated