Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records

Angelo Ziletti, Leonardo D'Ambrosi
3/14/2024
cs.CL

No official code found. Best implementation: Bayer-Group/text-to-sql-epi-ehr-naacl2024 (24 stars, MIT, last commit 2024-05-15).

Abstract

Electronic health records (EHR) and claims data are rich sources of real-world data that reflect patient health status and healthcare utilization. Querying these databases to answer epidemiological questions is challenging due to the intricacy of medical terminology and the need for complex SQL queries. Here, we introduce an end-to-end methodology that combines text-to-SQL generation with retrieval augmented generation (RAG) to answer epidemiological questions using EHR and claims data. We show that our approach, which integrates a medical coding step into the text-to-SQL process, significantly improves the performance over simple prompting. Our findings indicate that although current language models are not yet sufficiently accurate for unsupervised use, RAG offers a promising direction for improving their capabilities, as shown in a realistic industry setting.

View on arXivView PDF

Code Implementations(1)

MIT

Code for Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records

248PythonApr 22, 20242 years agoMIT
generative-aillmragtext-generationtext-to-sql

Similar Papers

Cite this paper

@article{ziletti2024retrieval,
  title  = {Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records},
  author = {Angelo Ziletti and Leonardo D'Ambrosi},
  year   = {2024},
  eprint = {2403.09226},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.09226v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.09226.svg)](https://codeofpaper.com/paper/2403.09226)

Discussion