AnswerThisView only
Shared answer · view only
VCShared by Vipin Chaudhary · Sep 1
LoginSign up
Other/What is retrieval augmented generation
What is retrieval augmented generation?

Retrieval-augmented generation (RAG) is a way to make a large language model answer with information retrieved from an external knowledge source rather than relying only on facts stored in its parameters. The source might be a document collection, database, structured dataset, or web index. RAG combines a retriever, which finds relevant information, with a generator, which uses that information to compose the response. (Cheng, 2025) (Yu, 2024)

A typical RAG workflow is: (1) receive a user question, (2) search an indexed knowledge corpus for relevant passages, and (3) place the retrieved passages alongside the question in the generator’s prompt. The language model then produces an answer conditioned on that retrieved context. (Yu, 2024) This lets organizations use private or domain-specific material and update the answerable knowledge base without retraining the model whenever the underlying documents change. (Cheng, 2025) (Yu, 2024)

RAG can improve factuality and contextual relevance, but it is not a guarantee of truth. Its performance depends on retrieving the right evidence and aligning that evidence with the generator’s objective; irrelevant or incomplete retrieval can still produce a poor answer. (Cheng, 2025) Evidence from a medical question-answering evaluation likewise found that RAG’s gains weakened when the retrieval corpus did not match the target domain, showing why corpus quality and query–document fit matter. (Kökver, 2026) In short, RAG is “search first, then generate”: retrieval supplies potentially relevant evidence, and the language model turns that evidence into a readable response.

Follow-up

Save

Citation Lists

Yunus Kökver · 2026 · PeerJ Computer Science

Shi Yu, Chaoyue Tang, Bokai Xu, Junbo Cui, J. Ran, Yukun Yan, Zhenghao Liu, Shuo Wang, Xu Han, Zhiyuan Liu, Maosong Sun · 2024 · International Conference on Learning Representations

Mingyue Cheng, Yucong Luo, Ouyang Jie, Qi Liu, Huijie Liu, Li Li, Shuo Yu, Bohou Zhang, Jiawei Cao, Jie Ma, Daoyu Wang, Enhong Chen · 2025 · ACM Transactions on Information Systems

Suggested next steps

Run a sensitivity analysisTurn this into a reportAnalyze an uploaded PDFEdit the draftExport the extraction table
TRY:
History

Loading sources…

Q1

What is retrieval augmented generation?

Abstract
Relevant extracts
Source 1: Retrieval-augmented generation for medical question answering: a multi-metric performance evaluation

Yunus Kökver · 2026 · PeerJ Computer Science

10.7717/peerj-cs.4053

The integration of large language models (LLMs) into healthcare is hindered by their tendency to generate hallucinations, a critical issue in medical question answering (MedQA). Retrieval-Augmented Generation (RAG) frameworks address this limitation by grounding LLM outputs in external, verifiable knowledge sources. In this study, RAG pipeline implemented without fine-tuning the base model is eval…

Not available
Source 2: VisRAG: Vision-based Retrieval-augmented Generation on Multi-modality Documents

Shi Yu, Chaoyue Tang, +9 · 2024 · International Conference on Learning Representations · 266 citations

10.48550/arXiv.2410.10594

Retrieval-augmented generation (RAG) is an effective technique that enables large language models (LLMs) to utilize external knowledge sources for generation. However, current RAG systems are solely based on text, rendering it impossible to utilize vision information like layout and images that play crucial roles in real-world multi-modality documents. In this paper, we introduce VisRAG, which tac…

a function G : (q, DR) →a, where a represents the answer and G denotes the LLM generator. This is achieved by prompting the LLM with the query and the retrieved units DR to generate an answer. As shown in Figure 2 (left), traditional RAG frameworks (TextRAG) typically utilize text-based units for retrieval and generation. However, in real-world scenarios, data often appear in complex, multi-modal…

Source 3: A Survey on Knowledge-Oriented Retrieval-Augmented Generation

Mingyue Cheng, Yucong Luo, +10 · 2025 · ACM Transactions on Information Systems · 72 citations

10.1145/3833415

Retrieval-Augmented Generation (RAG) has gained significant attention in recent years for its potential to enhance natural language understanding and generation by combining large-scale retrieval systems with generative models. RAG leverages external knowledge sources, such as documents, databases, or structured data, to improve model performance and generate more accurate and contextually relevan…

Not available
3 sources · 0 selected
1 / 1