Published on in Vol 9 (2023)

Preprints (earlier versions) of this paper are available at, first published .
Anki Tagger: A Generative AI Tool for Aligning Third-Party Resources to Preclinical Curriculum

Anki Tagger: A Generative AI Tool for Aligning Third-Party Resources to Preclinical Curriculum

Anki Tagger: A Generative AI Tool for Aligning Third-Party Resources to Preclinical Curriculum

Authors of this article:

Tricia Pendergrast 1 Author Orcid Image ;   Zachary Chalmers 2 Author Orcid Image

Research Letter

1Department of Anesthesiology, University of Michigan Medicine, Ann Arbor, MI, United States

2Northwestern University Feinberg School of Medicine, Chicago, IL, United States

*all authors contributed equally

Corresponding Author:

Zachary Chalmers, PhD

Northwestern University Feinberg School of Medicine

303 E Chicago Ave

Morton 1-670

Chicago, IL, 60611

United States

Phone: 1 3125038194


ChatGPT is a natural language processing tool that uses deep learning to generate responses to questions from human users [1]. ChatGPT has many possible applications in health care and medical education [2].

Medical students complete much of their preclinical didactic learning outside of the classroom, with the assistance of third-party resources such as Anki flashcard decks, instead of traditional lectures [3]. Anki flashcard decks use the principle of spaced repetition to improve memorization [4,5]. Medical students found Anki flashcards produced for their specific curriculum helpful and believed that these flashcards reduced anxiety. However, most medical students use open-sourced flashcards available online [6]. These decks are maintained by medical students who collaborate using the social media platform Reddit (/r/medicalschoolanki) [7] and through a subscription-based web application that facilitates crowdsourced peer review of flashcard content [8]. Medical students work together to address errors in the flashcards and update them as needed.

Use of crowdsourced flashcard decks eliminates the investment of time required upfront to produce flashcards for each lecture, but these flashcards are not specific to the user’s medical school curriculum [4]. A mechanism to match existing flashcards, created and vetted by medical students within the Reddit and AnkiHub communities, to the learning goals of didactic lectures delivered by medical school faculty members would be less time-intensive for faculty and students. In this research letter, we describe a novel method to efficiently select relevant flashcards from existing Anki decks and associate those cards with individual lectures within the user’s medical school curriculum.

There are 4 core steps in the workflow (Figure 1). The cards of a target Anki deck are embedded in a large language model (LLM). The gpt-3.5-turbo-16k model summarizes the learning guide into a set of comprehensive learning questions. Cards are presorted for their relevance to the learning question, using the LLM deck embedding, and then gpt-3.5-turbo scores the relevance of these cards to the learning question, which continues until a user-defined query limit for the learning question has been reached. Finally, cards are tagged in the original Anki file, stratified into “highly relevant,” “somewhat relevant,” or “minimally relevant” categories. Technical documentation and scripts are deposited in GitHub [9].

Figure 1. Workflow schematic.

Using the method described above, we selected flashcards from the AnKing flashcard deck that contained 35,152 flashcards and tagged them to our institution’s preclinical curriculum (Figure 2) [8]. We obtained a total of 465 science of medicine lecture guides spanning the 15 system-based modules at Feinberg School of Medicine for the 2022-2023 academic year. For each lecture guide, an average of 13 (range 5-34) summary learning questions were generated by our algorithm. For example, a lecture on central nervous system cancers, might include the following questions: “How do we diagnose and treat gliomas?” and “What genetic syndromes are associated with benign and malignant tumors in the brain?” After generating 4918 unique learning questions, the selection algorithm yielded a total of 21,400 flashcards from the AnKing deck, of which 16,113 were designated as highly relevant to a learning question. On average, 88 (range 11-221) flashcards were selected per lecture. Upon inspection of a sample of lectures, the quality of selections was considered high, with >90% of cards appearing highly relevant. The process developed is highly scalable, with individual lecture guides processed in minutes at minimal computational cost.

Figure 2. Hierarchical tag structure.

It is up to medical schools to decide how to adapt to a status quo increasingly defined by student-driven medical education. One possibility is for medical schools to align the student-driven curriculum with the instructor-led curriculum and consider the incorporation of vetted, third-party resources, such as Anki, into didactic learning [3].

Using large language models, we developed a method to efficiently query flashcards in existing widely used libraries and select those most relevant to an individual's medical school curricula. The feasibility of implementing a ChatGPT flashcard generation into pre-clerkship medical school curricula has not been evaluated and is an area of future study, with algorithmic fine-tuning and prompt optimization likely to further increase the specificity of selections Subsequently, a comparison of medical students’ satisfaction with self-made Anki flashcards compared to ChatGPT-tagged Anki flashcard decks should be conducted.

Conflicts of Interest

None declared.

  1. Gilson A, Safranek CW, Huang T, Socrates V, Chi L, Taylor RA, 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. Feb 08, 2023;9:e45312. [FREE Full text] [CrossRef] [Medline]
  2. Ayoub NF, Lee Y, Grimm D, Balakrishnan K. Comparison between ChatGPT and Google Search as sources of postoperative patient instructions. JAMA Otolaryngol Head Neck Surg. Jun 01, 2023;149(6):556-558. [CrossRef] [Medline]
  3. Wu JH, Gruppuso PA, Adashi EY. The self-directed medical student curriculum. JAMA. Nov 23, 2021;326(20):2005-2006. [CrossRef] [Medline]
  4. Wothe JK, Wanberg LJ, Hohle RD, Sakher AA, Bosacker LE, Khan F, et al. Academic and wellness outcomes associated with use of Anki spaced repetition software in medical school. J Med Educ Curric Dev. May 08, 2023;10:23821205231173289. [FREE Full text] [CrossRef] [Medline]
  5. Jape D, Zhou J, Bullock S. A spaced-repetition approach to enhance medical student learning and engagement in medical pharmacology. BMC Med Educ. May 02, 2022;22(1):337. [FREE Full text] [CrossRef] [Medline]
  6. Rana T, Laoteppitaks C, Zhang G, Troutman G, Chandra S. An investigation of Anki Flashcards as a study tool among first year medical students learning anatomy. The FASEB Journal. Apr 20, 2020;34(S1):1-1. [CrossRef]
  7. Medical School Anki. Reddit. URL: [accessed 2023-06-22]
  8. AnkiHub. URL: [accessed 2023-06-24]
  9. zachalmers - Anki_Tagger. GitHub. URL: [accessed 2023-09-15]

LLM: large language model

Edited by G Eysenbach, T de Azevedo Cardoso; submitted 06.07.23; peer-reviewed by B Senst, S Arya; comments to author 26.07.23; revised version received 01.08.23; accepted 17.08.23; published 20.09.23.


©Tricia Pendergrast, Zachary Chalmers. Originally published in JMIR Medical Education (, 20.09.2023.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Education, is properly cited. The complete bibliographic information, a link to the original publication on, as well as this copyright and license information must be included.