IP Library › Granted Patent US 12,706,188
Granted Patent B2
US 12,706,188 · App. 18/975,915 · Granted Aug 11, 2026

Medical question answering system

Inventors: Daniel Joseph Nadler (Nassau, BS); Zachary Michael Ziegler (Cambridge, MA); Jonas Sebastian Wulff (Los Angeles, CA); Evan Michael Hernandez (Wimauma, FL); Eric Lehman (Boston, MA); Micah Smith (Boston, MA)
Assignee: OpenEvidence Inc.
G16H10/60G06N3/0475G16H70/20
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,706,188
App. No.
18/975,915
Filed
Dec 10, 2024
Granted
Aug 11, 2026
Kind
B2
Examiner
HUYNH, EMILY
Art Unit
3683
USPC
705/3
Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating answers to medical questions using neural networks and other components. In one aspect, a method includes: receiving, from a user and by way of a user interface presented to the user on a display of a user device, a query for medical information; generating multiple responses to the query from the user by automatically retrieving and parsing data from a corpus of documents; and presenting, by way of the user interface and on the display of the user device: a first user interface element that presents a first response generated based only on clinical practice guideline documents, and a second user interface element that presents a second response generated based at least in part on documents that are not clinical practice guideline documents.

Claims (67)

1 . A method performed by one or more computers for reducing risk of hallucination and reducing latency when generating responses to medical questions using a generative neural network, the method comprising:

receiving, from a user and by way of a user interface presented to the user on a display of a user device, a medical question;

generating multiple answers to the medical question from the user by automatically retrieving and parsing data from a corpus of documents, comprising:

generating, by using an embedding model, a medical question embedding for the medical question;

performing an automated search to identify, from the corpus of documents, document snippets that include information that is relevant to the medical question, wherein performing the automated search comprises:

prior to receiving the medical question:

generating, by using the embedding model, a document snippet embedding for each document snippet of at least a subset of the document snippets, wherein the embedding model has been trained based on generating more training medical question embeddings than training document snippet embeddings during training, and

storing the document snippet embedding for each document snippet of at least the subset of the document snippets, and

after receiving the medical question, performing an embedding-based search that uses the medical question embedding and the document snippet embedding for each document snippet of at least the subset of the document snippets;

partitioning the identified document snippets into first document snippets that are obtained from one or more clinical practice guideline documents and second document snippets that are obtained from one or more other documents that are not clinical practice guideline documents;

generating a first prompt by including (i) the medical question and (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, excluding the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents;

making a first call to a generative neural network to cause the generative neural network to generate a first answer to the medical question based on processing the first prompt that includes (i) the medical question and (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents but excludes the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents, such that the generative neural network generates the first answer without being conditioned on the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents; and

generating a second prompt by including (i) the medical question, (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, and (iii) the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents;

making a second call to the generative neural network to cause the generative neural network to generate a second answer to the medical question based on processing a second prompt that includes (i) the medical question, (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, and (iii) the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents, such that the generative neural network generates the second answer being conditioned at least on the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents; and

presenting, by way of the user interface and on the display of the user device:

a first user interface element that presents the first answer generated by the generative neural network in response to the first call, wherein the first user interface element visually highlights that the first answer is derived only from clinical practice guideline documents and identifies the one or more clinical practice guideline document that were processed by the generative neural network to generate the first answer; and

a second user interface element that presents the second answer generated by the generative neural network in response to the second call.

2 . The method of claim 1 , wherein the first user interface element is presented on top of and temporally before the second user interface element within the user interface.

3 . The method of claim 1 , wherein the first user interface element comprises a walled garden environment presented within the user interface, and wherein the first response generated based only on the clinical practice guideline documents is presented within the walled garden environment.

4 . The method of claim 1 , wherein the first user interface element comprises a header that indicates the first response is generated based only on clinical practice guideline documents.

5 . The method of claim 1 , wherein making the second call to the generative neural network comprises making the second call after the generative neural network has generated the first response in response to the first call.

6 . The method of claim 1 , wherein the second prompt comprises the first response generated by the generative neural network in response to the first call.

7 . A system comprising:

one or more computers; and

one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations for reducing risk of hallucination and reducing latency when generating responses to medical questions using a generative neural network, the operations comprising:

receiving, from a user and by way of a user interface presented to the user on a display of a user device, a medical question;

generating multiple answers to the medical question from the user by automatically retrieving and parsing data from a corpus of documents, comprising:

generating, by using an embedding model, a medical question embedding for the medical question;

performing an automated search to identify, from the corpus of documents, document snippets that include information that is relevant to the medical question, wherein performing the automated search comprises:

prior to receiving the medical question:

generating, by using the embedding model, a document snippet embedding for each document snippet of at least a subset of the document snippets, wherein the embedding model has been trained based on generating more training medical question embeddings than training document snippet embeddings during training, and

storing the document snippet embedding for each document snippet of at least the subset of the document snippets, and

after receiving the medical question, performing an embedding-based search that uses the medical question embedding and the document snippet embedding for each document snippet of at least the subset of the document snippets;

partitioning the identified document snippets into first document snippets that are obtained from one or more clinical practice guideline documents and second document snippets that are obtained from one or more other documents that are not clinical practice guideline documents;

generating a first prompt by including (i) the medical question and (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, excluding the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents;

making a first call to a generative neural network to cause the generative neural network to generate a first answer to the medical question based on processing the first prompt that includes (i) the medical question and (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents but excludes the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents, such that the generative neural network generates the first answer without being conditioned on the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents; and

generating a second prompt by including (i) the medical question, (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, and (iii) the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents;

making a second call to the generative neural network to cause the generative neural network to generate a second answer to the medical question based on processing a second prompt that includes (i) the medical question, (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, and (iii) the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents, such that the generative neural network generates the second answer being conditioned at least on the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents; and

presenting, by way of the user interface and on the display of the user device:

a first user interface element that presents the first answer generated by the generative neural network in response to the first call, wherein the first user interface element visually highlights that the first answer is derived only from clinical practice guideline documents and identifies the one or more clinical practice guideline document that were processed by the generative neural network to generate the first answer; and

a second user interface element that presents the second answer generated by the generative neural network in response to the second call.

8 . The system of claim 7 , wherein the first user interface element is presented on top of and temporally before the second user interface element within the user interface.

9 . The system of claim 7 , wherein the first user interface element comprises a walled garden environment presented within the user interface, and wherein the first response generated based only on the clinical practice guideline documents is presented within the walled garden environment.

10 . The system of claim 7 , wherein the first user interface element comprises a header that indicates the first response is generated based only on clinical practice guideline documents.

11 . The system of claim 7 , wherein making the second call to the generative neural network comprises making the second call after the generative neural network has generated the first response in response to the first call.

12 . The system of claim 7 , wherein the second prompt comprises the first response generated by the generative neural network in response to the first call.

13 . One or more non-transitory computer storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations for reducing risk of hallucination and reducing latency when generating responses to medical questions using a generative neural network, the operations comprising:

receiving, from a user and by way of a user interface presented to the user on a display of a user device, a medical question;

generating multiple answers to the medical question from the user by automatically retrieving and parsing data from a corpus of documents, comprising:

generating, by using an embedding model, a medical question embedding for the medical question;

performing an automated search to identify, from the corpus of documents, document snippets that include information that is relevant to the medical question, wherein performing the automated search comprises:

prior to receiving the medical question:

generating, by using the embedding model, a document snippet embedding for each document snippet of at least a subset of the document snippets, wherein the embedding model has been trained based on generating more training medical question embeddings than training document snippet embeddings during training, and

storing the document snippet embedding for each document snippet of at least the subset of the document snippets, and

after receiving the medical question, performing an embedding-based search that uses the medical question embedding and the document snippet embedding for each document snippet of at least the subset of the document snippets;

partitioning the identified document snippets into first document snippets that are obtained from one or more clinical practice guideline documents and second document snippets that are obtained from one or more other documents that are not clinical practice guideline documents;

generating a first prompt by including (i) the medical question and (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, excluding the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents;

making a first call to a generative neural network to cause the generative neural network to generate a first answer to the medical question based on processing the first prompt that includes (i) the medical question and (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents but excludes the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents, such that the generative neural network generates the first answer without being conditioned on the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents; and

generating a second prompt by including (i) the medical question, (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, and (iii) the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents;

making a second call to the generative neural network to cause the generative neural network to generate a second answer to the medical question based on processing a second prompt that includes (i) the medical question, (ii) the first document snippets that are obtained from the one or more clinical practice guideline documents, and (iii) the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents, such that the generative neural network generates the second answer being conditioned at least on the second document snippets that are obtained from the one or more other documents that are not clinical practice guideline documents; and

presenting, by way of the user interface and on the display of the user device:

a first user interface element that presents the first answer generated by the generative neural network in response to the first call, wherein the first user interface element visually highlights that the first answer is derived only from clinical practice guideline documents and identifies the one or more clinical practice guideline document that were processed by the generative neural network to generate the first answer; and

a second user interface element that presents the second answer generated by the generative neural network in response to the second call.

14 . The computer storage media of claim 13 , wherein the first user interface element is presented on top of and temporally before the second user interface element within the user interface.

15 . The computer storage media of claim 13 , wherein the first user interface element comprises a walled garden environment presented within the user interface, and wherein the first response generated based only on the clinical practice guideline documents is presented within the walled garden environment.

16 . The computer storage media of claim 13 , wherein making the second call to the generative neural network comprises making the second call after the generative neural network has generated the first response in response to the first call.

17 . The computer storage media of claim 13 , wherein the second prompt comprises the first response generated by the generative neural network in response to the first call.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 18, 2025
From: NADLER, DANIEL JOSEPH; ZIEGLER, ZACHARY MICHAEL; WULFF, JONAS SEBASTIAN; HERNANDEZ, EVAN MICHAEL; LEHMAN, ERIC; SMITH, MICAH
To: XYLA INC.
Reel/Frame 073259/0864 →
CHANGE OF NAME Recorded Dec 18, 2025
From: XYLA INC.
To: OPENEVIDENCE INC.
Reel/Frame 074013/0250 →
Continuity (2)
Provisional Application 63695309 · Sep 16, 2024
Related Publication 20260080986A1 · Mar 19, 2026
References Cited (36)
US 10303798B2 · Stubley et al. · 2019 [cited by applicant]
US 20110270843A1 · Albin · 2011 [cited by examiner]
US 20140272885A1 · Allen et al. · 2014 [cited by applicant]
US 20180137249A1 · Eggebraaten et al. · 2018 [cited by applicant]
US 20180336183A1 · Lee et al. · 2018 [cited by applicant]
US 20200097814A1 · Devesa · 2020 [cited by applicant]
US 20200226164A1 · Eifert · 2020 [cited by examiner]
US 20200303069A1 · Mulligan · 2020 [cited by examiner]
US 20210375404A1 · Hu · 2021 [cited by applicant]
US 20230394074A1 · Panda et al. · 2023 [cited by applicant]
US 20240126791A1 · Yopadhyay et al. · 2024 [cited by applicant]
US 20250029720A1 · Sun et al. · 2025 [cited by applicant]
US 20250087372A1 · Bonageri · 2025 [cited by examiner]
JP 2005190055A · 2005 [cited by applicant]
JP 2019125240A · 2019 [cited by applicant]
JP 2023088036A · 2023 [cited by applicant]
JP 2023553401A · 2023 [cited by applicant]
JP 2024021725A · 2024 [cited by applicant]
KR 1020210062809A · 2021 [cited by applicant]
KR 102642488B1 · 2024 [cited by applicant]
WO WO2009083886A1 · 2009 [cited by examiner]
WO WO2020034642A1 · 2020 [cited by applicant]
Hussain, M., Hussain, J., Ali, T., Ali, S. I., Hafiz Syed, M. B., Lee, S., & Chung, T. (2021). Text classification in clinical practice guidelines using machine-learning assisted pattern-based approach. Applied Sciences… [cited by examiner]
Bhandwaldar, “Biomedical question answering, ” Thesis for the degree of Master of Science in Computer Science, UNC Charlotte, College of Computing and Informatics, 2017, 35 pages. [cited by applicant]
Aldhaleei et al., “Gucagon-Like Peptide-1 Receptor Agonists Associated Gastrointestinal Adverse Events: A Cross-Sectional Analysis of the National Institutes of Health All of Us Cohort,” Pharmaceuticals, Feb. 2, 2024, 1… [cited by applicant]
Anil et al., “PaLM 2 Technical Report,” CoRR, submitted on Sep. 13, 2023, arXiv:2305.10403v3, 93 pages. [cited by applicant]
Chen et al., “A Simple Framework for Contrastive Learning of Visual Representations,” Presented at Proceedings of the 37th International Conference on Machine Learning, Vienna, Austria, Jul. 12-18, 2020; PMLR, Nov. 21, … [cited by applicant]
Devlin et al., “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” CoRR, submitted on Oct. 11, 2018, arXiv:1810.04805v1, 14 pages. [cited by applicant]
Hadsell et al., “Dimensionality Reduction by Learning an Invariant Mapping,” Presented at Proceedings of the 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, New York, NY, USA, Jun. 17-2… [cited by applicant]
Jiang et al., “Mistral 7B,” CoRR, submitted on Oct. 10, 2023, arXiv:2310.06825v1, 9 pages. [cited by applicant]
Long et al., “GLP-1 Agonists: A Review for Emergency Clinicians,” The American Journal of Emergency Medicine, Jan. 12, 2024, 78:89-94. [cited by applicant]
Touvron et al., “Llama 2: Open Foundation and Fine-Tuned Chat Models,” CoRR, submitted on Jul. 19, 2023, arXiv:2307.09288v2, 77 pages. [cited by applicant]
International Search Report and Written Opinion in International Appln. No. PCT/US2025/042666, mailed on Dec. 9, 2025, 13 pages. [cited by applicant]
Nguyen et al., “MedRedQA for Medical Consumer Question Answering: Dataset, Tasks, and Neural Baselines,” Paper, Presented at the Proceedings of the 13th International Joint Conference on Natural Language Processing and … [cited by applicant]
Office Action in Japanese Appln. No. 2025-024171, mailed on Oct. 28, 2025, 8 pages (with English translation). [cited by applicant]
Zhang et al., “Ranking Rule-Based Automatic Explanations for Machine Learning Predictions on Asthma Hospital Encounters in Patients With Asthma: Retrospective Cohort Study,” JMIR Medical Informatics, Aug. 2021, 9(8):e28… [cited by applicant]