1. Introduction
In today’s digital health landscape, artificial intelligence (AI) is transforming how medical data is accessed, understood, and communicated [
1]. With the advent of large language models (LLMs), notably, new opportunities for patient education, clinical documentation support, medical question answering, and decision-support workflows arise [
2,
3]. They are appealing for healthcare use cases because they can interpret human language and provide well-structured answers, such as patients describing symptoms, concerns about medications, issues with chronic diseases, or lifestyle questions using natural language. But healthcare is not a typical text generation domain. A medical response needs to be accurate, context aware, clinically cautious, source grounded and understandable to the intended user. This is particularly significant for Turkish, as there is a lack of medical LLM resources adapted to local contexts, clinical language systems in Turkish, and patient-facing medical AI tools when compared to English-based platforms [
4].
The problem addressed in this study is the construction of a Turkish medical LLM that can support clinical decision support and digital health applications while maintaining source grounding, traceability, and safety-aware response behavior. Unlike a general-purpose conversational model, a medical LLM must not only generate fluent language, but also retrieve relevant evidence, remain faithful to the retrieved medical context, avoid unsupported clinical claims, and provide cautious guidance when the available evidence is insufficient. In this study, the problem is therefore treated as a source-grounded medical response generation task in which relevance, faithfulness, clinical caution, and risk reduction are jointly considered. The formal mathematical formulation of this task is provided in
Section 3.1.
This issue is significant as medical language generation can directly impact the understanding of medical-related information by the users. When a patient gives a fluent but unsupported response, it could look like he has a full answer, even if it’s incomplete, outdated or even medically unsafe. These can lead to a medical consultation being delayed, symptoms misunderstood, self-management encouraged or overconfidence in non-professional advice in the context of a digital health intervention. Thus, creating a medical LLM in Turkey requires a unique approach compared to a traditional conversational AI system. It needs to be able to find medical context from the Turkish perspective, maintain a trace of the source, indicate when it is not sure of the evidence, not make a definitive diagnosis and prompt the user to seek advice from a health professional when the condition is potentially serious, or not clear. These requirements prompt the development of a Turkish medical LLM that is grounded on sources and aware of safety.
Consider an application where the proposed system may be used is a Turkish digital health platform where patients, caregivers or health professionals pose medical questions using natural language. Some of the questions asked might be: "Why does the blood glucose rise in diabetes? "What are the signs to be mindful of when it comes to hypertension? "When is it unsafe for children to have a fever? "What are some factors to keep in mind when taking antibiotics? In such situations, the system should present the appropriate information from the medical field in Turkish, formulate the answer in an understandable way, not make assumptions that are not based on evidence and give a warning if a particular medical condition calls for professional attention. The system can be used for mobile health apps, patient education systems in hospitals, clinician-assisted dashboards, systems for education on chronic diseases, as well as Turkish conversational agents for digital health.
There are three general approaches to medical language modeling that have been developed to date. The first approach involves directly utilizing general-purpose LLMs for medical question answering due to their general linguistic and reasoning capabilities. Second direction fine tunes an existing language model on medical question–answer data to enhance domain-specific instruction following. The third direction is retrieval-augmented generation (RAG) that retrieves external medical documents and provides them to the model as context before generating answers. The benefits of these approaches are: General-purpose LLMs offer general knowledge of language, fine-tuning helps to adapt to a specific domain, and RAG allows access to external evidence during inference.
However, there are significant challenges associated with these solutions. General purpose LLMs might not be well suited to capture Turkish medical vocabulary, the style of communication used by patients, or the information needs of the Turkish health care context. The fine-tuned models can learn some useful patterns in the response, but when no medical evidence is retrieved in the inference process, the models may generate unsupported or outdated claims. RAG-based systems enhance grounding, but their effectiveness hinges on the quality of the corpus, chunking approach, embedding model, the vector database, the retriever, and the generation prompt. Moreover, there is a lack of transparency in many medical LLM systems in terms of data ingestion, schema detection, handling duplicates, tracing back to sources, and filtering for data quality. Evaluation is also frequently limited as traditional text generation metrics are not enough for clinical decision support. The assessment of a medical LLM should not just be based on the fluency of the output but also its retrieval relevance, faithfulness, context alignment, source-groundedness, clinical caution, and safety behavior.
There are five research questions that guide this study. The first research question is how to convert heterogenous Turkish medical datasets into a traceable and reusable corpus, so that it can be used to create a supervised fine-tuned model and retrieval-augmented model. The second research question relates to the retrieval of clinically relevant Turkish context for patient-oriented queries using local multilingual embeddings and vector indexing. This study’s third research question is to what degree does retrieval-augmented generation boost source grounded medical response generation for Turkish over a base LLM. The fourth research question is whether medical instruction after fine tuning with QLoRA is better than the base model Qwen3-8B. The fifth research question is whether a multi-layer evaluation protocol with the help of retriever metrics, RAGAS, DeepEval, and clinical safety-oriented graders can be used to more reliably evaluate Turkish medical LLM behavior.
These research questions are followed by the objectives of this study. The first one is to build a multi-source medical corpus in Turkish from question–answer and long-form hospital medical articles, which are processed with source-level traceability. The second goal is to convert this corpus into two partially overlapping corpora - a fine tuning corpus with supervision and a retrieval ready article corpus. The third goal is to develop a local retrieval system for Turkish medical semantic search with BGE-M3 embeddings and ChromaDB. The fourth goal is to create a retrieval-augmented response generation model that takes retrieved Turkish medical context into account while generating answers. The fifth objective is to fine tune Qwen3-8B with QLoRA on the cleaned Turkish medical question–answer corpus. The sixth objective is to assess the system developed in the previous objectives through retriever hit-rate metrics, RAGAS, DeepEval, and custom clinical safety-oriented metrics.
In response to the problem defined, TurkishMedLLM, a source grounded and safety aware Turkish medical large language model for clinical decision support and digital health applications is presented. The overall workflow is broken down into independently auditable modules, such as data ingestion, schema detection, quality filtering, text transformation, embedding generation, vector-store construction, retriever evaluation, response generation, fine-tuning, and safety-aware evaluation, in the proposed system. TurkishMedLLM builds a harmonized Turkish medical corpus and keeps the information about the source level for auditing. It generates 210,791 cleaned Turkish medical question–answer records for supervised fine-tuning, and converts 22,135 article documents to 206,166 retrieval-ready chunks. The chunks are then stored locally via BGE-M3 and Ollama, and indexed in ChromaDB for semantic retrieval. The generative component is based on Qwen3-8B, fine-tuned using QLoRA, which makes it possible to make systematic comparisons between base LLM, base RAG, fine-tuned LLM, fine-tuned RAG, and safety-aware fine-tuned RAG.
This study provides a comprehensive Turkish medical LLM framework, consisting of the 4-step process of corpus traceability, retrieval grounding, fine-tuning, and safety-aware evaluation. Specifically, the study proposes a pipeline for multi-source Turkish medical corpus construction, which includes schema standardization, duplicate removal, and quality filtering; creates distinct resources for retrieval-augmented generation (RAG) and supervised fine-tuning; uses local BGE-M3-based vector indexing with ChromaDB for retrieval performance evaluation; evaluates the retrieval performance on Turkish clinical queries; fine tunes Qwen3-8B using QLoRA; and applies multi-layer evaluation framework based on retriever metrics, RAGAS, DeepEval, and clinical safety oriented evaluation criteria. TurkishMedLLM’s modular design allows for instruction, retrieval of evidence, answer generation, fine-tuning, and safety assessment to be conducted separately, offering a clear and reproducible platform for further research on medical AI in the Turkish context and digital health applications.
The rest of this paper is structured as follows.
Section 2 discusses the related literature on medical LLMs, medical NLP in Turkish, retrieval-augmented generation, vector-based retrieval, fine-tuning methods and assessment of medical conversational AI systems. In
Section 3, the proposed TurkishMedLLM methodology, which encompasses data ingestion, schema standardization, corpus preparation, text splitting, embedding generation, vector-store construction, retriever evaluation, RAG generation, a fine-tuning strategy, and safety-aware evaluation design, is presented.
Section 4 describes the implementation details of the modular software pipeline. Results of corpus construction, retrieval, RAG evaluation, fine-tuning results, ablation results, and safety results are reported and discussed in
Section 5.
Section 6 concludes the paper and discusses limitations and future deployment considerations.