López et al. 2025 show that feeding whole clinical notes is both inefficient and harmful—LLM reasoning degrades as input length grows—and that entity-based retrieval beats both embedding RAG and full-note input, with F1 scores of 0.90 versus 0.86 and 0.79 respectively.
The cited chunks state that LLM performance degrades on reasoning tasks as input length increases (so long EHR excerpts can reduce performance) and report F1 scores of 0.90, 0.86, and 0.79 for CLEAR, embedding RAG, and full-note approaches, with full-note being the slowest and most token-intensive.
Written by Kimi K3 via Ollama Cloud · checked by GLM-5.3 via Ollama Cloud · 2 Oct, 04:40
Source chain
AEvery quote below was checked, without a model, to appear verbatim in its source.
- 01
“LLM performance has been shown to degrade on reasoning tasks as input length increases, even on models with large context windows”
Full-text passage · no page number · evidence E15
Naive approaches like truncation or selecting only documents that fit within the context window risk excluding valuable information4,39,41. Dividing a note into smaller chunks with adjoining strides can address context window limits but still requires multiple LLM queries per patient, which can be computationally expensive. In addition, LLM performance has been shown to degrade on reasoning tasks as input length increases, even on models with large context windows42–45, suggesting that inputting long EHR excerpts containing extraneous information can reduce performance. Retrieval-augmented generation (RAG) attempts to address this limitation by retrieving and appending query-relevant information to the input context. The retriever typically uses an encoder model to represent both the query and reference information in embedding space and retrieve information whose embeddings are close to that of the query46. Some RAG workflows embed small chunks of text that can fit within the model’s context window and store those embeddings in a database for downstream retrieval.
Passage read from www.ebi.ac.uk, which may be a preprint rather than the published version.
- 02
“Average F1 scores were 0.90, 0.86, and 0.79; inference times were 4.95, 17.41, and 20.08 s per note”
Full-text passage · no page number · evidence E16
Clinical entity augmented retrieval for clinical information extraction Abstract Large language models (LLMs) with retrieval-augmented generation (RAG) have improved information extraction over previous methods, yet their reliance on embeddings often leads to inefficient retrieval. We introduce CLinical Entity Augmented Retrieval (CLEAR), a RAG pipeline that retrieves information using entities. We compared CLEAR to embedding RAG and full-note approaches for extracting 18 variables using six LLMs across 20,000 clinical notes. Average F1 scores were 0.90, 0.86, and 0.79; inference times were 4.95, 17.41, and 20.08 s per note; average model queries were 1.68, 4.94, and 4.18 per note; and average input tokens were 1.1k, 3.8k, and 6.1k per note for CLEAR, embedding RAG, and full-note approaches, respectively. In conclusion, CLEAR utilizes clinical entities for information retrieval and achieves >70% reduction in token usage and inference time with improved performance compared to modern methods. Subject terms: Machine learning, Data mining Introduction
Passage read from www.ebi.ac.uk, which may be a preprint rather than the published version.