Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM67270
Volume:
10 |
9 |
Sep 2026
Pages:
1-10
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of Information Technology and computer applications
Andhra University College of Engineering
Department of Information Technology and computer applications
Andhra University College of Engineering
Department of Information Technology and computer applications
Andhra University College of Engineering
Modern question answering systems oriented on biomedical applications become increasingly crucial regarding making medical knowledge available in a timely fashion. Even though advanced capabilities of Large Language Models (LLM) in terms of natural language understanding and generation enable tremendous improvements, such models generate incorrect or even hallucinated answers when handling specific biomedical questions due to a lack of credibility of external evidence. Thus, Retrieval-Augmented Generation (RAG) may serve as a solution regarding grounding generated answers with the help of external knowledge. Nevertheless, contemporary solutions for RAG mainly use either semantic vector retrieval or lexical retrieval techniques that might not be sufficient for the effective retrieval of information regarding medical questions. Moreover, most existing frameworks do not have an option for the modular deployment, incrementally updating knowledge base, and adaptation of answer generation. This paper provides the implementation of a modular framework for biomedical Retrieval-Augmented Generation to be used for the grounded medical question answering through the implementation of a persistent document modular framework and adaptive language model routing. It is based on the FastAPI service architecture and comprises the following modules: document ingestion (PDF), semantic text chunking, dense embedding generation through a locally running Sentence Transformer model, persistent vector storage through ChromaDB, lexical retrieval with the use of the TF-IDF algorithm. Candidates retrieved in the process are then reranked by a CrossEncoder reranker and grounded with the help of context evidence before being passed to Gemini large language model for generating answers. In case the required evidence is not available, the framework allows switching to a general language model to keep the conversation fluent.
KEYWORDS
This paper presented the design of a modular biomedical question-answering system built around a FastAPI service layer, a hybrid retrieval pipeline combining ChromaDB-based semantic search with BM25 lexical search, a cross-encoder reranking stage, and an adaptive threshold-based mechanism for routing between grounded and fallback generation modes. The architecture separates ingestion, retrieval, reranking, and generation into independent, replaceable services, and supports incremental knowledge base construction from both uploaded PDF documents and PubMed abstracts. By explicitly distinguishing between queries that can be answered from retrieved evidence and those that cannot, the system aims to reduce the risk of presenting ungrounded content as though it were evidence-based, addressing a concern that is not fully resolved by hybrid retrieval alone. The immediate next step for this work is the completion of controlled empirical evaluation using the metrics and table structures defined in Sections XI and XII, followed by threshold calibration against labeled data. Longer-term extensions toward knowledge-graph integration, multimodal retrieval, and federated search offer a path toward broader clinical and research applicability.
[1] Singhal, K., Tu, T., Gottweis, J., Sayres, R., Wulczyn, E., Hou, L., Clark, K., Pfohl, S., Cole-Lewis, H., Neal, D., Schaekermann, M., Wang, A., Amin, M., Lachgar, S., Mansfield, P., Prakash, S., Green, B., Dominowska, E., Arcas, B. A., Tomasev, N., Liu, Y., Wong, R., Semturs, C., Mahdavi, S. S., Barral, J., Webster, D., Corrado, G. S., Matias, Y., Azizi, S., Karthikesalingam, A., & Natarajan, V. (2023). Towards expert-level medical question answering with large language models. arXiv preprint arXiv:2305.09617. [2] Asai, A., Zhong, Z., Chen, D., Koh, P. W., Zettlemoyer, L., Hajishirzi, H., & Yih, W. (2024). Reliable, adaptable, and attributable language models with retrieval. arXiv preprint arXiv:2403.03187. [3] Tonmoy, S. M. T. I., Zaman, S. M. M., Jain, V., Rani, A., Rawte, V., Chadha, A., & Das, A. (2024). A comprehensive survey of hallucination mitigation techniques in large language models. arXiv preprint arXiv:2401.01313. [4] Alonso, I., Oronoz, M., & Agerri, R. (2024). MedExpQA: Multilingual benchmarking of large language models for medical question answering. arXiv preprint arXiv:2404.05590. [5] Xiong, G., Jin, Q., Lu, Z., & Zhang, A. (2024). Benchmarking retrieval-augmented generation for medicine. arXiv preprint arXiv:2402.13178. [6] Robertson, S., & Zaragoza, H. (2009). The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, 3(4), 333–389. [7] Lee, J., Yoon, W., Kim, S., Kim, D., Kim, S., So, C. H., & Kang, J. (2020). BioBERT: A pre-trained biomedical language representation model for biomedical text mining. Bioinformatics, 36(4), 1234–1240. https://doi.org/10.1093/bioinformatics/btz682 [8] Jin, Q., Kim, W., Chen, Q., Comeau, D. C., Yeganova, L., Wilbur, W. J., & Lu, Z. (2023). MedCPT: Contrastive pre-trained transformers with large-scale PubMed search logs for zero-shot biomedical information retrieval. Bioinformatics, 39(11), btad651. [9] Ma, X., Yang, Z., & Zhang, H. (2020). A hybrid first-stage retrieval model for biomedical literature. Proceedings of the CEUR Workshop on Biomedical Information Retrieval. https://ceur-ws.org/Vol-2696/paper_92.pdf [10] Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W., Rocktäschel, T., Riedel, S., & Kiela, D. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459–9474.
Publication Date
9/13/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
5
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...