{"doi":"10.1002/2056-4538.70013","title":"Authors' reply: Re: Koga <i>et al</i>. Retrieval‐augmented generation versus document‐grounded generation: a key distinction in large language models","abstract":"We thank Koga et al for their knowledgeable comments on our work. Their letter highlights a valid question that requires clarification [1]. Our study assessed the ability of three large language models (LLMs) to diagnose neuropathology cases from free-text descriptions of adult-type diffuse gliomas, for which we compared two methodologies. The first method provided each model with the free-text tumor descriptions alone, while the second approach additionally provided the models with a Word document of the WHO CNS5. We termed these approaches zero-shot and retrieval-augmented generation (RAG), respectively [2]. Koga et al point out that the methodology we describe in our paper as RAG, may be better described as document-grounded generation, or in-context learning. While we agree with the definition of RAG provided in the letter as it was initially defined [3], the field has evolved significantly since the approach was first proposed by Lewis et al in 2020. Three paradigms of RAG are now increasingly recognized: naive RAG, advanced RAG, and modular RAG [4]. Naive RAG is an approach where the data for indexing are generally obtained offline and converted into a format such as PDF or Word, and uploaded with the query via the context window. Advanced RAG and modular RAG offer specific improvements to address the limitations of naive RAG; however, to achieve this, they utilize more technical approaches. The intention for our paper was to use naive RAG. We chose this approach as it leverages the easiest possible way for improving an LLM response that would be reproducible by doctors, considering that most doctors would be unable to utilize the application programming interface and programmatically build a RAG pipeline. As discussed by Koga et al, the key difference between naive RAG and document-grounding lies in how the document is utilized when the model retrieves its response [5]. Document-grounding submits the document with the user query and is equivalent to inserting the entire document text into the context window [5]. Whereas with naive RAG, relevant parts of the document are identified by the model and used with the query to dynamically search its database [4]. Both approaches are examples of in-context learning as they acquire additional knowledge from the prompt without requiring parameter updates [6]. Bereft of transparency from the LLM providers regarding how they process the document once it has been submitted via the graphical user interface, it is difficult to know whether naive RAG or document-grounding was used to formulate a response. To our knowledge, details regarding how appended documents are utilized during a query are not freely available online by ChatGPT, Llama, or Claude. Furthermore, due to the speed of development in the field, technical aspects of how documents are utilized may have changed since our experiments were conducted earlier this year. Nonetheless, we contacted ChatGPT, Anthropic, and Poe for assistance in clarifying this point. All three providers confirmed that documents uploaded with a query are used for RAG. However, the responses from ChatGPT and Anthropic were both generated by bots, demonstrating the need for more reliable and greater transparency about the actual technical methods used. We are grateful for your endorsement of our conclusions and appreciate the opportunity to address this important distinction. Further clarification and transparency are needed to definitively distinguish the mechanisms employed by specific LLM platforms, particularly regarding how appended documents are processed. We proffer that our work uses in-context learning, as both RAG and document-grounding are methods of this broader paradigm. Nevertheless, we remain committed to clarifying this matter and thank Koga et al for their engagement and valuable input. JNK is supported by the German Cancer Aid (DECADE, 70115166), the German Federal Ministry of Education and Research (PEARL, 01KD2104C; CAMINO, 01EO210","journal":"The Journal of Pathology Clinical Research","year":2025,"id":557124,"datarank":0.0,"base_score":0.0,"endowment":0.0,"self_citation_contribution":0.0,"citation_network_contribution":0.0,"self_endowment_contribution":0.0,"citer_contribution":0.0,"corpus_percentile":null,"corpus_rank":null,"citation_count":1,"citer_count":0,"citers_with_citation_signal":0,"citers_with_endowment":0,"datacite_reuse_total":0,"is_dataset":false,"is_dataset_confidence":0.9586,"is_data_producer":false,"deposit_databanks":null,"is_oa":true,"file_count":0,"downloads":0,"has_version_chain":false,"published_date":"2025-01-01","fair_score":null,"fair_percentile":null,"algorithm_id":"datarank_citation_only_1hop_v6","ranking_scope":"data_only","authors":[{"id":1201166,"name":"Isabella C. Wiest","orcid":"0009-0004-4848-614X","position":1,"is_corresponding":false},{"id":110000,"name":"Jakob Nikolas Kather","orcid":"0000-0002-3730-5348","position":2,"is_corresponding":false},{"id":1219773,"name":"Katherine Hewitt","orcid":"0000-0001-6602-0141","position":0,"is_corresponding":true}],"reference_count":6,"raw_metadata":null,"created_at":"2026-07-19T02:55:13.130091Z","pmid":"39835649","pmcid":null,"fwci":null,"citation_percentile":null,"influential_citations":0,"oa_status":null,"license":null,"views":0,"total_file_size_bytes":0,"version_count":0,"fair_f":null,"fair_a":null,"fair_i":null,"fair_r":null,"fair_zscore":null,"fair_rationale":null,"fair_model":null,"fair_agent_version":null,"fair_fulltext_source":null,"fair_has_llm":null,"fair_computed_at":null,"clinical_trials":[],"software_tools":[],"db_accessions":[],"linked_datasets":[],"topics":[]}