Lessons Learned on Information Retrieval in Electronic Health Records: A Comparison of Embedding Models and Pooling Strategies
Not on the map. Why?
Abstract (arXiv)
Objective: Applying large language models (LLMs) to the clinical domain is challenging due to the context-heavy nature of processing medical records. Retrieval-augmented generation (RAG) offers a solution by facilitating reasoning over large text sources. However, there are many parameters to optimize in just the retrieval system alone. This paper presents an ablation study exploring how different embedding models and pooling methods affect information retrieval for the clinical domain. Methods: Evaluating on three retrieval tasks on two electronic health record (EHR) data sources, we compared seven models, including medical- and general-domain models, specialized encoder embedding models, and off-the-shelf decoder LLMs. We also examine the choice of embedding pooling strategy for each model, independently on the query and the text to retrieve. Results: We found that the choice of embedding model significantly impacts retrieval performance, with BGE, a comparatively small general-domain model, consistently outperforming all others, including medical-specific models. However, our findings also revealed substantial variability across datasets and query text phrasings. We also determined the best pooling methods for each of these models to guide future design of retrieval systems. Discussion: The choice of embedding model, pooling strategy, and query formulation can significantly impact retrieval performance and the performance of these models on other public benchmarks does not necessarily transfer to new domains. Further studies such as this one are vital for guiding empirically-grounded development of retrieval frameworks, such as in the context of RAG, for the clinical domain.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 11 of its 23 references that are in the map. First posted on arXiv 23 Sep 2024.
Builds on
11 of 23 references.
References · 11
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Mistral 7Bcited by 3,164
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 723
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 348
- 2024Benchmarking Retrieval-Augmented Generation for Medicinecited by 331
- 2023Improving Text Embeddings with Large Language Modelscited by 303
- 2022GatorTron: A Large Clinical Language Model to Unlock Patient Information from Unstructured Electronic Health Recordscited by 238
Built on by
Citing papers per year: 2025: 5.
5 papers.
- 2025Evaluating Retrieval-Augmented Generation vs. Long-Context Input for Clinical Reasoning over EHRscited by 4
- 2025CliniQ: A Multi-faceted Benchmark for Electronic Health Record Retrieval with Semantic Match Assessmentcited by 3
- 2025Towards Efficient LLM-aware Heterogeneous Graph Learningcited by 2
- 2025DR.EHR: Dense Retrieval for Electronic Health Record with Knowledge Injection and Synthetic Datacited by 0
- 2025Investigating LLM Capabilities on Long Context Comprehension for Medical Question Answeringcited by 0
- 2025Towards Efficient LLM-aware Heterogeneous Graph Learning22 Nov 2025
- 2025Investigating LLM Capabilities on Long Context Comprehension for Medical Question Answering21 Oct 2025
- 2025Evaluating Retrieval-Augmented Generation vs. Long-Context Input for Clinical Reasoning over EHRs20 Aug 2025
- 2025DR.EHR: Dense Retrieval for Electronic Health Record with Knowledge Injection and Synthetic Data24 Jul 2025
- 2025CliniQ: A Multi-faceted Benchmark for Electronic Health Record Retrieval with Semantic Match Assessment10 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024Development and Testing of Retrieval Augmented Generation in Large Language Models -- A Case Study Report
- 2026EHR-RAG: Bridging Long-Horizon Structured Electronic Health Records and Large Language Models via Enhanced Retrieval-Augmented Generation
- 2025Retrieval-Augmented Generation in Medicine: A Scoping Review of Technical Implementations, Clinical Applications, and Ethical Considerations
- 2025Grounding Large Language Models in Clinical Evidence: A Retrieval-Augmented Generation System for Querying UK NICE Clinical Guidelines
- 2026Harnessing Large Language Models for Precision Querying and Retrieval-Augmented Knowledge Extraction in Clinical Data Science
- 2026A Systematic Study of Retrieval Pipeline Design for Retrieval-Augmented Medical Question Answering
- 2025Leveraging Language Models and RAG for Efficient Knowledge Discovery in Clinical Environments
- 2026Benchmarking Retrieval Strategies for Biomedical Retrieval-Augmented Generation: A Controlled Empirical Study