Enhancing Language Models with Retrieval-Augmented Generation for Accurate and Contextual Responses

0Citations
Citations of this article
8Readers
Mendeley users who have this article in their library.

Abstract

Large language models (LLMs), now also used in production environments, are susceptible to significant inaccuracies and errors, particularly when very specific topics in sectoral domains are involved. Incorrect responses produced by generative systems can cause many problems for non-expert users who, unfamiliar with the specific field of knowledge, are unable to assess the reliability of the responses generated. This problem further amplifies the errors of generative platforms. This paper explores how to mitigate such issues using Retrieval-Augmented Generation (RAG), a technique that enhances LLMs by integrating external information retrieval. RAG helps reduce hallucinations by grounding responses in relevant, retrieved content. The study examines the architecture and implementation of a RAG system and evaluates its effectiveness in improving response accuracy through simple experimental examples. It also investigates techniques and mathematical models to enhance the relevance of retrieved information and discusses the flow of structured and unstructured data into a vector database. This case study uses an open-source framework to demonstrate the design, implementation, and configuration of a RAG-based architecture using cloud infrastructure.

Cite

CITATION STYLE

APA

Mazzei, M. (2026). Enhancing Language Models with Retrieval-Augmented Generation for Accurate and Contextual Responses. WSEAS Transactions on Information Science and Applications, 23, 230–236. https://doi.org/10.37394/23209.2026.23.17

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free