PreprintCited by 512Artificial Intelligence in Healthcare and EducationArtificial Intelligence in HealthcareTopic Modeling

ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledge

Open access
Li, Yunxiang, Li, Zihan, Zhang, Kai, Dan, Ruilong, Jiang, Steve, Zhang, You·2023·arXiv

Abstract

The primary aim of this research was to address the limitations observed in the medical knowledge of prevalent large language models (LLMs) such as ChatGPT, by creating a specialized language model with enhanced accuracy in medical advice. We achieved this by adapting and refining the large language model meta-AI (LLaMA) using a large dataset of 100,000 patient-doctor dialogues sourced from a widely used online medical consultation platform. These conversations were cleaned and anonymized to respect privacy concerns. In addition to the model refinement, we incorporated a self-directed information retrieval mechanism, allowing the model to access and utilize real-time information from online sources like Wikipedia and data from curated offline medical databases. The fine-tuning of the model with real-world patient-doctor interactions significantly improved the model's ability to understand patient needs and provide informed advice. By equipping the model with self-directed information retrieval from reliable online and offline sources, we observed substantial improvements in the accuracy of its responses. Our proposed ChatDoctor, represents a significant advancement in medical LLMs, demonstrating a significant improvement in understanding patient inquiries and providing accurate advice. Given the high stakes and low error tolerance in the medical field, such enhancements in providing accurate and reliable information are not only beneficial but essential.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2303.14070

Cites

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Existing work has explored how AI may empower healthcare work for providers, focusing on Clinical Decision Support Systems (CDSS) and clinical practices, highlighting how AI may assist human experts throughout medical diagnosis and treatments.

    “Existing work has explored how AI may empower healthcare work for providers, focusing on Clinical Decision Support Systems (CDSS) and clinical practices, highlighting how AI may assist human experts throughout medical diagnosis and treatments [41,73,76,115,127].”

    From Talk2Care: An LLM-based Voice Assistant for Communication between Healthcare Providers and Older Adults (2024) · cites this paper as [127]

    Split into 2 atoms — 1 confirmed, 1 partially supported, 0 disputed, 0 misattributed, 0 unverifiable. Expand the claim to see per-atom verdicts.

    Experimental — accuracy not yet measured
  • ChatDoctor adapts LLM-based agents to the medical domain; it fine-tunes an acquisition process to retrieve external knowledge from Wikipedia and medical databases.

    “ChatDoctor [115] adapts LLM-based agents to the medical domain. It fine-tunes an acquisition process to retrieve external knowledge from Wikipedia and medical databases.”

    From A Survey on the Memory Mechanism of Large Language Model-based Agents (2025) · cites this paper as [115]

    The Introduction says ChatDoctor fine-tunes an LLM for medical use, and the Development of autonomous ChatDoctor with knowledge brain section describes retrieval from Wikipedia or a custom medical database. That section says the retrieval process uses prompts and term matching, not that the acquisition process itself was fine-tuned. (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • In medicine, most previous works empower LLM-based agents with external knowledge in their memory.

    “In the field of medicine, most of the previous works empower LLM-based agents with external knowledge in their memory [107, 129, 132, 151, 115].”

    From A Survey on the Memory Mechanism of Large Language Model-based Agents (2025) · cites this paper as [115]

    The Creation of external knowledge database and Development of autonomous ChatDoctor with knowledge brain sections describe ChatDoctor using an external medical knowledge database. They support this paper as an example, but do not establish that most previous medical LLM works used external knowledge in memory. (LLM, conf=0.83)

    Experimental — accuracy not yet measured
  • When LLMs are confronted with tasks requiring domain-specific expertise, such as medical and legal questions, they may exhibit pronounced hallucinations, often manifesting as factual fabrication.

    “This limitation becomes particularly evident when LLMs are confronted with tasks that require domain-specific expertise, such as medical [179, 279] and legal [149, 353] questions, these models may exhibit pronounced hallucinations, often manifesting as factual fabrication.”

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

No references could be resolved yet.

Research works printed but not linked: 16

  1. Training language models to follow instructions with human feedback . (2022). Accessed: April 3, 2023: http://arXiv:2203.02155.
  2. Self-instruct: aligning language model with self generated instructions . (2022). Accessed: December 20, 2022: http://arXiv:2212.10560.
  3. Aidan Gilson, Conrad W Safranek, Thomas Huang, et al.: How does chatgpt perform on the united states medical licensing examination? the implications of large language models for medical education and knowledge assessment. JMIR Med Educ. 2023, 9:45312-2023.
  4. Abacha AB, Zweigenbaum P: Means: a medical question-answering system combining NLP techniques and semantic web technologies. Inf Process Manag. 2015, 51:570-94.
  5. Bertscore: Evaluating text generation with bert . (2020). Accessed: April 21, 2020: http://arXiv:1904.09675.
  6. Gessain A, Nakoune E, Yazdanpanah Y: Monkeypox. N Engl J Med. 2022, 387:1783-93. 10.1056/NEJMra2208860 · DOI
  7. A multitask, multilingual, multimodal evaluation of chatgpt on reasoning, hallucination, and interactivity . (2023). Accessed: February 8, 2023: http://arXiv:2302.04023.
  8. Selfcheckgpt: zero-resource black-box hallucination detection for generative large language models . (2023). Accessed: March 15, 2023: http://arXiv:2303.08896.
  9. Salvagno M, Taccone FS, Gerli AG: Artificial intelligence hallucinations. Crit Care. 2023, 27:180. 10.1186/s13054-023-04473-y · DOI · Paper page
  10. Beutel G, Geerits E, Kielstein JT: Artificial hallucination: GPT on LSD? . Crit Care. 2023, 27:148. 10.1186/s13054-023-04425-6 · DOI · Paper page
  11. LLaMA: open and efficient foundation language models. (2023). Accessed: February 27, 2023: http://arXiv:2302.13971.
  12. Raise a child in large language model: towards effective and generalizable fine-tuning . (2021). Accessed: September 13, 2021: http://arXiv:2109.05687.
  13. Hammerling JA: A review of medical errors in laboratory diagnostics and where we are today . Laboratory Med. 2012, 43:41-4. 10.1309/LM6ER9WJR1IHQAUY · DOI
  14. Lee P, Bubeck S, Petro J: Benefits, limits, and risks of GPT-4 as an AI chatbot for medicine . New England J Med. 2023, 388:1233-9. · DOI · Paper page
  15. Vaishya R, Misra A, Vaish A: ChatGPT: is this version good for healthcare and research? . Diabet Metabol Syndr. 2023, 17:102744.
  16. Hatherley JJ: Limits of trust in medical AI. J Med Ethics. 2020, 46:478-81. 10.1136/medethics-2019-105935 · DOI

Cited by

Sorted by citations

Authors
Li, Y., Li, Z., Zhang, K., Dan, R., Jiang, S., & Zhang, Y.
Affiliations
University of Illinois Urbana-Champaign (US)
Corresponding author
Zhang, You
Venue
arXiv
Publisher
arXiv
Published
2023
Volume
15
Issue
6
Pages
e40895-e40895
ISSN
2168-8184 (ISSN-L)
OpenAlex
W4381930847
Cited by
512
References
0
Citations by year
2026: 90 · 2025: 219 · 2024: 164 · 2023: 39
FWCI
20.45
Type
journal article
Language
en
Open access
Locations
  • Cureus (publishedVersion, cc-by)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • arXiv (Cornell University) (cc-by)
Funders
National Cancer Institute (R01CA240808, R01CA258987)
Topics
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Health Sciences › Health Professions › Health Information Management › Artificial Intelligence in Healthcare
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
healthcare chatbots, LLaMA fine-tuning, large language models in healthcare

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review