Crossref DOIMemberCiteFactoropen accessissn
SJIF Impact Factor 8.659 | ISSN: 2582-3930
IJSREM Logo

International Journal of Scientific Research in Engineering and Management

(Gateway to Global Scholars - An International, Scholarly, Multi-Disciplinary, Open Access Journal)

Peer-Reviewed Journal Designed to Meet UGC's Quality Parameters

HomeCurrent IssuePast IssuesPay OnlineConferencesEditorial BoardAbout UsContact Us
IJSREM

Loading article...

Follow Us

  • Google Scholar
  • ResearchGate
  • Academia.edu
  • Mendeley
  • LinkedIn
  • Facebook
  • Instagram

Journal Policies

  • Peer Review Policy
  • Publication Ethics
  • Copyright Infringement
  • Refund & Cancellation Policy
  • Terms and Conditions
  • Privacy Policy

Journal Identifiers & Licenses

  • ISSN Verified: 2582-3930ISSN Verified: 2582-3930
  • Crossref DOI: 10.55041Crossref DOI: 10.55041
  • SJIF Ranking: 08.659SJIF Ranking: 08.659
  • Licensed under CC BY 4.0Licensed under CC BY 4.0
  • ISO Certification: 9001:2015ISO Certification: 9001:2015
  • Indexed & Cited In: Google ScholarIndexed & Cited In: Google Scholar

Contact Us

International Journal of Scientific Research in Engineering and Management (IJSREM)

#62/1, New No 7, 1st Cross, 2nd Main, Ganganagar, R T Nagar, Bangalore North, Bangalore, Karnataka, India – 560032
[email protected]+91 93911 67991
logos
logos
Working Hours

Mon – Sat: 9:00 AM – 6:00 PM

Sunday: 10:00 AM – 4:00 PM

+91 93911 67991

© 2026 IJSREM – International Journal of Scientific Research in Engineering and Management. This is an open-access journal. Articles are published under the Creative Commons Attribution (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

DisclaimerPrivacy PolicyTerms and Conditions
ArticlePeer ReviewedOpen AccessPlagiarism Passed
Paper ID:IJSREM67270

A Hybrid Retrieval-Augmented Generation Architecture for Biomedical Question Answering Using FastAPI, ChromaDB, and Adaptive Threshold-Based Response Routing

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM67270

Volume:

10 |

9 |

Sep 2026

Pages:

1-10

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
10.55041/IJSREM67270

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.

Share this article:

Authors

VD

Veeranjaneyulu Dasi

Department of Information Technology and computer applications

Andhra University College of Engineering

Download Author Certificate
V

V.NagaRaju

Department of Information Technology and computer applications

Andhra University College of Engineering

Download Co-Author Certificate
MNVM

Manne Naga VJ Manikanth

Department of Information Technology and computer applications

Andhra University College of Engineering

Download Co-Author Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

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

BM25 ChromaDB Cross-Encoder Reranking FastAPI Gemini Hybrid Retrieval Retrieval-Augmented Generation Vector Database

Cite This Article

Veeranjaneyulu Dasi, V.NagaRaju, Manne Naga VJ Manikanth, "A Hybrid Retrieval-Augmented Generation Architecture for Biomedical Question Answering Using FastAPI, ChromaDB, and Adaptive Threshold-Based Response Routing," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 9, pp. 1-10, Sep 2026. https://doi.org/10.55041/IJSREM67270

Full Article/Conclusion

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.

References

[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.

Editorial & Review Transparency

Publication Date

9/13/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

0

Total views since publication

PDF Downloads

5

Total downloads since publication

Geographic Reach

5

Indexing, Archiving & Preservation

Google Scholar
Academia
ResearchGate
Crossref
SSRN
Semantic Scholar
Thomson Reuters
WorldCat
Mendeley
OpenAlex
EBSCO
Zenodo

Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.

Ethics, Compliance & Transparency

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.

Similar & Recommended Articles

Similar Articles by Topic

Related research in the same subject area

Loading similar articles...