Manuscript Offprint

arXiv:2611.03747

Enhancing Stock Market Information Retrieval with Retrieval-Augmented Generation

Huan Phong Thai, Thu Anh Ngoc Le, Nhu Huynh Thi Le, Nhan Huu Tran, Lenh Cong Phan Pham, Hong Nhung Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Natural Language Processing (NLP) has been widely applied in financial domains, enabling automated analysis and retrieval of stock market information. However, traditional NLP-based systems often struggle with maintaining contextual accuracy and generating relevant responses in dynamic financial environments. To address these challenges, Retrieval-Augmented Generation (RAG) models have emerged as a powerful solution, combining retrieval-based methods with generative capabilities to enhance response quality. In this study, we present a Retrieval-Augmented Generation (RAG) system designed to generate responses related to stock market information. The system integrates retrieval-based and generative approaches to enhance the accuracy and relevance of financial text generation. To evaluate its effectiveness, we employ the ROUGE metric, specifically ROUGE-1, ROUGE-2, and ROUGE-L, to measure lexical and structural similarity between generated and reference texts. Experimental results on a dataset of 100 stock market-related queries demonstrate high ROUGE scores, indicating strong alignment with reference documents. Additionally, we assess latency to evaluate the system's responsiveness, achieving an average response time of 1.16 seconds. These findings confirm that our RAG model is capable of providing accurate and timely stock market insights, making

*Corresponding author. Email addresses: huantpce180685@fpt.edu.vn (Huan Phong Thai), thulnace180615@fpt.edu.vn (Thu Anh Ngoc Le), nhulthca182007@fpt.edu.vn (Nhu Huynh Thi Le), nhanthce181655@fpt.edu.vn (Nhan Huu Tran), lenhppcce180059@fpt.edu.vn (Lenh Cong Phan Pham), nhungnguyen.uet@gmail.com (Hong Nhung Nguyen)

Preprint submitted to Expert Systems with Applications

November 4, 2026 it a promising approach for financial information retrieval.

Keywords: RAG, Information Retrieval, Stock Market

1. Introduction

Large Language Models (LLMs) Gemini Team et al. (2023) OpenAI (2023) have made remarkable progress in recent years, establishing themselves as a fundamental component in various natural language processing (NLP) applications. Their ability to understand and generate human-like text has led to significant advancements in tasks such as machine translation, sentiment analysis, question answering, and text summarization. As a result, LLMs have been widely adopted across multiple domains, including education Kasneci et al. (2023), healthcare Sallam (2023), finance Wu et al. (2023), code writing Chen et al. (2021), cybersecurity Franco et al. (2020), the labor market Eloundou et al. (2023), and legal aspects Sun (2023), where they enhance automation, improve decision-making, and enable more natural human-computer interactions. One of the most promising approaches in this domain is Retrieval-Augmented Generation (RAG), which combines the strengths of retrieval-based and generative models to enhance the accuracy and reliability of generated content.

Despite the impressive capabilities of existing LLMs, their development is still constrained by several challenges. One of the most significant issues is the hallucination problem Dale et al. (2022), where models generate responses that are fluent and coherent but factually inaccurate. Another major limitation is the difficulty in updating their knowledge. Since LLMs store information within their internal memory Meng et al. (2022), keeping them up to date requires retraining or fine-tuning with new data—an expensive and resource-intensive process. Additionally, general-purpose LLMs often lack expertise in specialized domains Colombo et al. (2024) Zhang et al. (2023), making them less effective for domain-specific tasks. Developing LLMs tailored to a particular field requires extensive effort in dataset collection and model training, further increasing the complexity of implementation. This makes the deployment of systems for spe-cific tasks costly in terms of both time and resources. Furthermore, collecting and processing training data for each specialized domain can present challenges such as a lack of high-quality data, security requirements, and the complexity of fine-tuning the model to fit the specific context.

Stock markets are highly dynamic, influenced by a wide range of factors, including economic indicators, corporate financial reports, geopolitical events, and investor sentiment. Efficiently retrieving relevant financial information and generating accurate insights is crucial for investors, analysts, and decision-makers. Traditional NLP models often struggle with the complexity and ever-changing nature of financial data, making it challenging to provide real-time, contextually accurate, and explainable outputs. To solve this problem, RAG presents a potential solution by integrating retrieval mechanisms with generative capabilities, allowing models to dynamically fetch the most relevant financial data and generate informed responses.

Figure

Figure 1: System without RAG and System with RAG

Several recent studies Guu et al. (2020) Lewis et al. (2021) have proposed leveraging external knowledge bases to enhance the ability of LLMs to generate better responses, a technique known as Retrieval-Augmented Generation

(RAG). By supplying LLMs with retrieved relevant factual information, the hallucination problem can be alleviated to some extent. Moreover, the knowledge update issue can also be addressed by updating the external knowledge database, allowing LLMs to incorporate up-to-date information. RAG can also transform a general LLM into a domain-specific LLM by constructing and utilizing a specialized knowledge database. Therefore, RAG plays a crucial role in enhancing the functionality of LLMs, making them more accurate, knowledgeable, and reliable across a wide range of applications Wu et al. (2024). Fig. 1 illustrates the fundamental differences in workflow between a system without RAG and a system enhanced with RAG, highlighting the impact of retrieval-augmented knowledge integration.

This study aims to explore the effectiveness of RAG models in processing stock market information. Specifically, we investigate how RAG can enhance the retrieval of information and the generation of responses regarding stock market news published on VnExpress. By leveraging external financial knowledge sources, RAG models may enhance decision-making processes, reduce misinformation, and offer more comprehensive market summaries. In summary, the structure of this paper is as follows: Section 2 reviews related work in financial NLP and RAG applications. Section 3 describes the proposed methodology, including data sources, model architecture, and evaluation metrics. Section 4 presents experimental results and discussions. Finally, Section 5 concludes the paper with key findings and potential future research directions.

References (31)