Developing a Retrieval-Augmented Question-Answering System Using Large Language Models

Main Article Content

Pasiyeva Aygul

Abstract

Retrieval-augmented generation (RAG) connects large language models with collections that can be inspected, updated, and cited. A dependable system, however, requires coordinated decisions about cleaning, metadata, retrieval, context selection, citation, and abstention. This article presents a lightweight, model-agnostic RAG architecture for small digital-humanities collections. The prototype combines word and character retrieval, curator-defined query expansion, and weighted reciprocal rank fusion. Source-labelled passages are passed to an instruction-tuned model under a prompt contract that permits only evidence-based answers. A reproducible synthetic corpus of 16 archival records and 48 questions was divided into 12 development and 36 held -out questions. On the held-out set, the hybrid method reached Recall@1 of 0.861, Recall@3 of 0.944, and mean reciprocal rank of 0.911. Character retrieval was the strongest individual method for OCR-like noise. These figures measure retrieval, not end-to-end generation.

Downloads

Download data is not yet available.

Article Details

Data Availability Statement

All data supporting the findings of this study are presented in the text of the scientific work.

Section

Information and Web technologies

Author Biography

Pasiyeva Aygul, University of Turin

Master’s Student in Language Technologies and Digital Humanities

How to Cite

Pasiyeva, A. (2026). Developing a Retrieval-Augmented Question-Answering System Using Large Language Models. Scientific Collection «InterConf», 308, 108–116. https://interconf.openpubarchive.com/index.php/proceeding/article/view/84

References

Jiang, Z., Xu, F., Gao, L., Sun, Z., Liu, Q., Dwivedi -Yu, J., Yang, Y., Callan, J., & Neubig, G. (2023). Active Retrieval Augmented Generation. Proceedings of EMNLP 2023, 7969 –7992. https://doi.org/10.18653/v1/2023.emnlp-main.495

Gao, T., Yen, H., Yu, J., & Chen, D. (2023). Enabling Large Language Models to Generate Text with Citations. Proceedings of EMNLP 2023, 6465–6488. https://doi.org/10.18653/v1/2023.emnlp-main.398

Asai, A., Wu, Z., Wang, Y., Sil, A., & Hajishirzi, H. (2024). Self- RAG: Learning to Retrieve, Generate, and Critique through Self - Reflection. International Conference on Learning Representations (ICLR 2024). https://openreview.net/forum?id=hSyW5go0v8

Jeong, S., Baek, J., Cho, S., Hwang, S. J., & Park, J. (2024). Adaptive-RAG: Learning to Adapt Retrieval -Augmented Large Language Models through Question Complexity. Proceedings of NAACL 2024, 7036– 7050. https://doi.org/10.18653/v1/2024.naacl-long.389

Wang, X., Wang, Z., Gao, X., Zhang, F., Wu, Y., Xu, Z., Shi, T., Wang, Z., Li, S., Qian, Q., Yin, R., Lv, C., Zheng, X., & Huang, X. (2024). Searching for Best Practices in Retrieval -Augmented Generation. Proceedings of EMNLP 2024, 17716 –17736. https://doi.org/10.18653/v1/2024.emnlp-main.981

Cuconasu, F., Trappolini, G., Siciliano, F., Filice, S., Campagnano, C., Maarek, Y., Tonellotto, N., & Silvestri, F. (2024). The Power of Noise: Redefining Retrieval for RAG Systems. Proceedings of SIGIR 2024, 719–729. https://doi.org/10.1145/3626772.3657834

Es, S., James, J., Espinosa Anke, L., & Schockaert, S. (2024). RAGAs: Automated Evaluation of Retrieval Augmented Generation. Proceedings of EACL 2024: System Demonstrations, 150 –158. https://doi.org/10.18653/v1/2024.eacl-demo.16

Saad-Falcon, J., Khattab, O., Potts, C., & Zaharia, M. (2024). ARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems. Proceedings of NAACL 2024, 338 –354. https://doi.org/10.18653/v1/2024.naacl-long.20

Ru, D., Qiu, L., Hu, X., Zhang, T., Shi, P., Chang, S., Jiayang, C., Wang, C., Sun, S., Li, H., Zhang, Z., Wang, B., Jiang, J., He, T., Wang, Z., Liu, P., Zhang, Y., & Zhang, Z. (2024). RAGChecker: A Fine- grained Framework for Diagnosing Retrieval -Augmented Generation. Advances in Neural Information Processing Systems, 37. https://doi.org/10.52202/079017-0692

Niu, C., Wu, Y., Zhu, J., Xu, S., Shum, K., Zhong, R., Song, J., & Zhang, T. (2024). RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models. Proceedings of ACL 2024, 10862–10878. https://doi.org/10.18653/v1/2024.acl-long.585

Gao, Y., Winiger, F., Montjourides, P., Shaitarova, A., Gu, N., Peng- Keller, S., & Schneider, G. (2025). SpiritRAG: A Q&A System for Religion and Spirituality in the United Nations Archive. Proceedings of EMNLP 2025: System Demonstrations, 26 –41. https://doi.org/10.18653/v1/2025.emnlp-demos.3

Bian, D., Puren, M., & Cafiero, F. (2026). How to Efficiently Explore Noisy Historical Data? Leveraging Corpus Pre -Targeting to Enhance Graph-based RAG. Proceedings of the 10th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Lit erature, 241 –250. https://doi.org/10.18653/v1/2026.latechclfl-1.23