Prompt Engineering in Medical Education
Abstract
:1. Introduction
2. Generative Language Models in Medical Education
3. Prompt Engineering in Generative Language Models
4. Types of Prompts
4.1. Zero-Shot and Few-Shot Prompts
4.2. Prompting Levels
- Level 1 prompts ask simple questions like “Tell me about type-2 diabetes.”
- Level 2 prompts add context to Level 1, e.g., “You are to play the role of a Professor of Medicine at Oxford, and I am your student. Tell me about type-2 diabetes.”
- Level 3 prompts involve giving examples of Level 2 prompts. For example, a user may start with this prompt: “I learn best by reading short essays. Here is an example of an essay particularly educational to me: [here cut-n-paste an example essay].” Then, submit the Level 2 prompt previously given, and the output should be closer to the desired result.
4.3. Structured Prompts
4.4. Iterative Prompts
5. Bad Prompts
5.1. Vague, Misleading, and Inappropriate Prompts
5.2. Mathematical Prompts
5.3. Logical Puzzles
5.4. Academic Citations
6. Potential Educational Applications
7. Cheating
8. Discussion
9. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Radford, A.; Narasimhan, K.; Salimans, T.; Sutskever, I. Improving Language Understanding by Generative Pre-Training. Available online: https://web.archive.org/web/20230622213848/https://www.cs.ubc.ca/~amuham01/LING530/papers/radford2018improving.pdf (accessed on 20 June 2023).
- GPT-4—Wikipedia. Available online: https://en.wikipedia.org/wiki/GPT-4 (accessed on 21 June 2023).
- Welcome|Learn Prompting: Your Guide to Communicating with AI. Available online: https://learnprompting.org/docs/intro (accessed on 21 June 2023).
- Khan, R.A.; Jawaid, M.; Khan, A.R.; Sajjad, M. ChatGPT—Reshaping medical education and clinical management. Pak. J. Med. Sci. Q. 2023, 39, 605–607. [Google Scholar] [CrossRef] [PubMed]
- Kung, T.H.; Cheatham, M.; Medenilla, A.; Sillos, C.; De Leon, L.; Elepaño, C.; Madriaga, M.; Aggabao, R.; Diaz-Candido, G.; Maningo, J.; et al. Performance of ChatGPT on USMLE: Potential for AI-assisted medical education using large language models. PLOS Digit. Health 2023, 2, e0000198. [Google Scholar] [CrossRef] [PubMed]
- Gilson, A.; Safranek, C.W.; Huang, T.; Socrates, V.; Chi, L.; Taylor, R.A.; Chartash, D. 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, e45312. [Google Scholar] [CrossRef] [PubMed]
- Sallam, M. Chatgpt utility in healthcare education, research, and practice: Systematic review on the promising perspectives and valid concerns. Healthcare 2023, 11, 887. [Google Scholar] [CrossRef] [PubMed]
- Lee, H. The rise of ChatGPT: Exploring its potential in medical education. Anat. Sci. Educ. 2023; 1–6, online ahead of print. [Google Scholar] [CrossRef]
- Karabacak, M.; Ozkara, B.B.; Margetis, K.; Wintermark, M.; Bisdas, S. The advent of generative language models in medical education. JMIR Med. Educ. 2023, 9, e48163. [Google Scholar] [CrossRef] [PubMed]
- Wang, J.; Shi, E.; Yu, S.; Wu, Z.; Ma, C.; Dai, H.; Yang, Q.; Kang, Y.; Wu, J.; Hu, H.; et al. Prompt Engineering for Healthcare: Methodologies and Applications. arXiv preprint 2023, arXiv:2304.14670. [Google Scholar] [CrossRef]
- Lim, S.; Schmälzle, R. Artificial Intelligence for Health Message Generation: Theory, Method, and an Empirical Study Using Prompt Engineering. arXiv preprint 2022, arXiv:2212.07507. [Google Scholar]
- Lawton Solutions Improve ChatGPT Prompts with Priming. Available online: https://www.youtube.com/watch?v=Uz_DeqGhbjs (accessed on 23 June 2023).
- Parade 25 Logic Puzzles (with Answers) for Adults. Available online: https://parade.com/970343/parade/logic-puzzles/ (accessed on 23 June 2023).
- Sloan, K. A Lawyer Used ChatGPT to Cite Bogus Cases. What Are the Ethics? Available online: https://www.reuters.com/legal/transactional/lawyer-used-chatgpt-cite-bogus-cases-what-are-ethics-2023-05-30/ (accessed on 23 June 2023).
- Baldwin, D.C.; Daugherty, S.R.; Rowley, B.D.; Schwarz, M.D. Cheating in medical school: A survey of second-year students at 31 schools. Acad. Med. 1996, 71, 267–273. [Google Scholar] [CrossRef] [PubMed]
- Kusnoor, A.V.; Falik, R. Cheating in medical school: The unacknowledged ailment. South. Med. J. 2013, 106, 479–483. [Google Scholar] [CrossRef] [PubMed]
- Abu-Naser, S.S.; El-Hissi, H.; Abu-Rass, M.; El-Khozondar, N. An Expert System for Endocrine Diagnosis and Treatments using JESS. J. Artif. Intell. 2010, 3, 239–251. [Google Scholar] [CrossRef]
- Heston, T.F.; Norman, D.J.; Barry, J.M.; Bennett, W.M.; Wilson, R.A. Cardiac risk stratification in renal transplantation using a form of artificial intelligence. Am. J. Cardiol. 1997, 79, 415–417. [Google Scholar] [CrossRef] [PubMed]
- Dumitru, M.; Berghi, O.N.; Taciuc, I.-A.; Vrinceanu, D.; Manole, F.; Costache, A. Could artificial intelligence prevent intraoperative anaphylaxis? Reference review and proof of concept. Medicina 2022, 58, 1530. [Google Scholar] [CrossRef] [PubMed]
- Gupta, M.; Akiri, C.; Aryal, K.; Parker, E.; Praharaj, L. From chatgpt to threatgpt: Impact of generative AI in cybersecurity and privacy. IEEE Access 2023, 11, 80218–80245. [Google Scholar] [CrossRef]
- Heston, T.F.; Khun, C. The good, the bad and the ugly of chat gpt in medical education. Int. J. Curr. Res. 2023, 15, 25496–25499. [Google Scholar] [CrossRef]
Prompt |
---|
Your first response will be to ask me what the prompt should be about. Together, we will create a clear prompt through continual iterations by going through the next steps. Based on my input, you will generate two sections: (a) revised prompt (provide your rewritten prompt. It should be clear, concise, and easily understood by you). (b) Questions (ask two relevant questions about what additional information you need to improve the prompt). We will continue this iterative process with me providing additional information to you and you updating the prompt in the Revised prompt section. When I say we are done, you will reply with the final revised prompt and nothing else. |
Prompt | GPT-3.0 Response |
---|---|
A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there? | Eight blue golf balls. |
A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there? Think step by step. | Step 1: There are 16 balls in total. Step 2: Half of the balls (eight balls) are golf balls. Step 3: Half of the golf balls (four balls) are blue. Therefore, there are four blue golf balls. |
Prompt | Bard Response |
---|---|
You’re at a fork in the road in which one direction leads to the City of Lies (where everyone always lies) and the other to the City of Truth (where everyone always tells the truth). There’s a person at the fork who lives in one of the cities, but you’re not sure which one. What question could you ask the person to find out which road leads to the City of Truth? | The question I would ask the person is: “If I asked you which road leads to the City of Truth, what would you say?” |
Prompt | ChatGPT Response |
---|---|
Format your response in a narrative essay. Give me an approximate 1000-word essay on alcoholic cirrhosis. Be sure to include ten references and cite these references within the body of the essay. The references must be cited in the body of the essay. Use Vancouver Style. | [excerpt] 9. Jairath V, Cortez-Pinto H, Gray A, Patch D, Milicic D, Schepke M, et al. Optimizing cost-effectiveness of drug therapies in the management of alcoholic hepatitis. Aliment Pharmacol Ther. 2014;40(2):181-192. |
Did you make up reference 9? | [excerpt] The references provided in the previous response were meant to illustrate the importance of citing sources in an essay rather than being actual references. |
Prompt |
---|
I am interested in understanding this text, but it is outside my expertise. You are highly knowledgeable in this area, an outstanding teacher, and able to explain complex concepts in an easily understandable yet accurate way. Please summarize the text I will provide and explain it to me as if I were 11 years old. If you understand, please reply with “Please supply the text for me to summarize and explain in layman’s terms” and nothing else. I will then give you the text to summarize. |
Prompt |
---|
Generate a 10-question FAQ on the topic below. You are to generate both the questions and the answers. The questions should be in bold font, and the answers should be in regular font. The answers should focus on giving truthful, evidence-based responses. Remember, you are never allowed to make up anything; everything in the answers should be true. Please be liberal in including specific numbers in the answers. Format your response into a table with two columns and ten rows. Each row contains a question in bold font in column 1 and the answer in regular font in column 2. The topic is: [TOPIC] |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Heston, T.F.; Khun, C. Prompt Engineering in Medical Education. Int. Med. Educ. 2023, 2, 198-205. https://doi.org/10.3390/ime2030019
Heston TF, Khun C. Prompt Engineering in Medical Education. International Medical Education. 2023; 2(3):198-205. https://doi.org/10.3390/ime2030019
Chicago/Turabian StyleHeston, Thomas F., and Charya Khun. 2023. "Prompt Engineering in Medical Education" International Medical Education 2, no. 3: 198-205. https://doi.org/10.3390/ime2030019
APA StyleHeston, T. F., & Khun, C. (2023). Prompt Engineering in Medical Education. International Medical Education, 2(3), 198-205. https://doi.org/10.3390/ime2030019