Hybrid Retrieval-Augmented Generation (RAG) System for Intelligent Question Answering

Document Type : Original Article

Authors
1 CSE / AIML, Uttarakhand Technical University Dehradun Campus institute Dr. APJ AKIT Tanakpur Champawat
2 Department of Computer Science and Engineering, Dr. A.P.J Abdul Kalam Institute of Technology, Tanakpur Champawat, India
Abstract
Retrieval-Augmented Generation (RAG) has emerged as an effective approach for improving the accuracy and reliability of Large Language Models (LLMs) by integrating external knowledge retrieval with text generation. However, traditional RAG systems often suffer from limitations such as static retrieval mechanisms, poor context adaptation, and reduced efficiency when handling complex queries. To address these challenges, this paper proposes an Adaptive Hybrid Retrieval-Augmented Generation Framework for context-aware question answering and intelligent response generation.

The proposed system combines sparse retrieval techniques using BM25 with dense retrieval through vector-based semantic search to improve document relevance and retrieval accuracy. An adaptive retrieval mechanism dynamically selects suitable retrieval strategies based on query complexity and contextual requirements. Retrieved documents are further processed through a context fusion and ranking module to construct high-quality contextual information for the Large Language Model. The framework supports both offline and online deployment modes, enabling efficient operation in local as well as cloud-based environments.

The proposed Hybrid RAG architecture enhances semantic understanding, reduces hallucination, improves response consistency, and provides real-time access to updated knowledge sources. Experimental analysis demonstrates improved retrieval efficiency, response relevance, and scalability compared to traditional retrieval-generation approaches. The system can be effectively applied in intelligent chatbots, domain-specific question answering, educational assistants, healthcare information systems, and enterprise knowledge management applications.
Keywords

[1] Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio         Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In NeurIPS.
[2] Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense Passage Retrieval for Open-Domain Question Answering. In EMNLP.
[3] Wenqi Fan, Yujuan Ding, Liangbo Ning, Shijie Wang, Hengyun Li, Dawei Yin, Tat-Seng Chua, and Qing Li. 2024. A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models. arXiv:2405.06211.
[4] Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, and Haofen Wang. 2023. Retrieval-Augmented Generation for Large Language Models: A Survey. arXiv:2312.10997.
[5] Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2023. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. In ICLR.
[6] Gautier Izacard and Edouard Grave. 2021. Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering. In EACL.
[7] Gautier Izacard and Edouard Grave. 2021. Distilling Knowledge from Reader to Retriever for Question Answering. In ICLR.
[8] Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval Augmented Language Model Pre-training. In ICML.
[9] Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Van Den Driessche, et al. 2022. Improving Language Models by Retrieving from Trillions of Tokens. In ICML.
[10] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, et al. 2020. Language Models are Few-Shot Learners. In NeurIPS.
[11] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In NAACL-HLT.
[12] Nils Reimers and Iryna Gurevych. 2019. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In EMNLP-IJCNLP.
[13] Stephen Robertson and Hugo Zaragoza. 2009. The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval.
[14] Stefan Büttcher, Charles L. A. Clarke, and Gordon V. Cormack. 2016. Information Retrieval: Implementing and Evaluating Search Engines. MIT Press.
[15] Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading Wikipedia to Answer Open-Domain Questions. In ACL.
[16] Omar Khattab and Matei Zaharia. 2020. ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT. In SIGIR.
[17] Zhengbao Jiang, Frank F. Xu, Luyu Gao, Zhiqing Sun, Qian Liu, Jane Dwivedi-Yu, et al. 2023. Active Retrieval Augmented Generation. In EMNLP.
[18] Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-context Retrieval-Augmented Language Models. Transactions of the Association for Computational Linguistics, 11, 1316–1331.
[19] Shamane Siriwardhana, Rivindu Weerasekera, Elliott Wen, Tharindu Kaluarachchi, Rajib Rana, and Suranga Nanayakkara. 2023. Improving the Domain Adaptation of Retrieval Augmented Generation (RAG) Models for Open Domain Question Answering. Transactions of the Association for Computational Linguistics, 11, 1–17.
[20] Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Ju Hwang, and Jong C. Park. 2024. Adaptive-RAG: Learning to Adapt Retrieval-Augmented Large Language Models through Question Complexity. In NAACL 2024.
[21] Mohamed Abo El-Enen, Sally Saad, and Taymoor Nazmy. 2025. A Survey on Retrieval-Augmentation Generation (RAG) Models for Healthcare Applications. Neural Computing and Applications.
[22] Yucheng Hu and Yuxing Lu. 2025. RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing. arXiv:2404.19543.
[23] Akari Asai, Sewon Min, Zexuan Zhong, and Danqi Chen. 2023. Retrieval-based Language Models and Applications. In ACL Tutorial.
[24] Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, et al. 2020. BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. In ACL.
[25] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, et al. 2023. GPT-4 Technical Report. arXiv:2303.08774.