WSEAS Transactions on Information Science and Applications
Print ISSN: 1790-0832, E-ISSN: 2224-3402
Volume 23, 2026
Enhancing Language Models with Retrieval-Augmented Generation for Accurate and Contextual Responses
Author:
Search Articles
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.
Keywords:
RAG, Information Retrieval, Large Language Models (LLMs), Vector Embeddings, Cosine Similarity, Contextual Relevance, Multi-modal Embeddings, Retrieval Pipeline, Semantic Search, Long-Context Models
Pages: 230-236
DOI: 10.37394/23209.2026.23.17