RATIONALE-GUIDED RETRIEVAL AND ADAPTIVE CONTEXT SELECTION FOR INDONESIAN MEDICAL QUESTION ANSWERING: FINE-TUNED VERSUS ZERO-SHOT MISTRAL-7B
DOI:
https://doi.org/10.36563/2yr20y64Keywords:
retrieval-augmented generation;, Indonesian medical question answering;, QLoRA fine-tuning;, rationale-guided retrieval;, adaptive context selectionAbstract
Retrieval-augmented generation (RAG) is widely used to ground large language models
(LLMs) in medical knowledge, yet most evidence comes from English benchmarks, and it is
unclear how retrieval design, rationale-guided querying, and domain fine-tuning interact in a
lower-resource language. This study evaluates an Indonesian medical and nutritional question
answering system built on Mistral-7B-Instruct across 20 configurations: two generators
(QLoRA fine-tuned on 9,664 doctor-answered questions versus zero-shot), two query modes
(the original question versus an LLM-generated rationale), and five context-selection
strategies (closed-book, naive RAG, reranking, a proposed reranker with a minimum-score
threshold and gradient cut-off, and SAGE). Retrieval drew on 31,683 passages from five
Indonesian corpora indexed as propositions. On 150 held-out questions, answers were scored
with ROUGE-L, BLEU-1, BLEU-4, and METEOR, complemented by retrieval and truncation
diagnostics and paired bootstrap tests. Fine-tuning was the dominant and consistently
significant factor, raising ROUGE-L by 2.6–5.8 points and METEOR by 5.3–8.9 points under
every retrieval strategy. The fine-tuned model with rationale queries and the proposed selector
achieved the highest scores (ROUGE-L 16.32, BLEU-4 4.43, METEOR 18.85) while passing
about one passage per question, although its margins over the other fine-tuned variants were
not significant. For the zero-shot model, reranking with rationale queries was the most stable
low-cost option, with the highest zero-shot BLEU-1 (17.69) and a truncation rate below 1%.
For Indonesian medical RAG, supervised fine-tuning yields larger gains than elaborate context
selection.
Downloads
References
Adane, P., Deshpande, N., Sheikh, A., & Dhawan, V. (2026). A perspective on fine-tuning and
RAG techniques for Indic language applications. In Proceedings of the 17th
International Conference on Advances in Computing, Control, and Telecommunication
Technologies (ACT 2026) (Vol. 2, pp. 6073–6080).
Agrawal, R., Asrani, M., Youssef, H., & Narayan, A. (2025). SCMRAG: Self-corrective
multihop retrieval augmented generation system for LLM agents. In Proceedings of the
International Joint Conference on Autonomous Agents and Multiagent Systems
(AAMAS) (pp. 50–58).
Banerjee, S., & Lavie, A. (2005). METEOR: An automatic metric for MT evaluation with
improved correlation with human judgments. In Proceedings of the ACL Workshop on
Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or
Summarization (pp. 65–72).
Chen, J., Xiao, S., Zhang, P., Luo, K., Lian, D., & Liu, Z. (2024). M3-Embedding: Multilinguality, multi-functionality, multi-granularity text embeddings through selfknowledge distillation. In Findings of the Association for Computational Linguistics:
ACL 2024 (pp. 2318–2335). https://doi.org/10.18653/v1/2024.findings-acl.137
Chen, S., Liu, Y., Hou, K., Cai, Y., Huang, J., & Jin, R. (2026). RICO-Mem: Conflict-aware
memory management for long-term LLM agents. In 2026 6th International Conference
on Computer Science and Blockchain (CCSB 2026) (pp. 516–526).
https://doi.org/10.1109/CCSB71176.2026.11716419
Chen, T., Wang, H., Chen, S., Yu, W., Ma, K., Zhao, X., Zhang, H., & Yu, D. (2024). Dense X
retrieval: What retrieval granularity should we use? In Proceedings of the 2024
Conference on Empirical Methods in Natural Language Processing (pp. 15159–15177).
https://doi.org/10.18653/v1/2024.emnlp-main.845
Chen, Y., Ye, Y., & Wei, X. (2026). DARF-RAG: A retrieval-augmented generation document
filtering algorithm based on deep attention of language models. In 2026 6th
International Conference on Consumer Electronics and Computer Engineering
(ICCECE 2026) (pp. 303–307). https://doi.org/10.1109/ICCECE69169.2026.11399818
Dettmers, T., Pagnoni, A., Holtzman, A., & Zettlemoyer, L. (2023). QLoRA: Efficient
finetuning of quantized LLMs. In Advances in Neural Information Processing Systems
36 (NeurIPS 2023) (pp. 10088–10115).
Glass, M., Rossiello, G., Chowdhury, M. F. M., Naik, A., Cai, P., & Gliozzo, A. (2022).
Re2G: Retrieve, rerank, generate. In Proceedings of the 2022 Conference of the North
American Chapter of the Association for Computational Linguistics: Human Language
Technologies (pp. 2701–2715). https://doi.org/10.18653/v1/2022.naacl-main.194
Holtzman, A., Buys, J., Du, L., Forbes, M., & Choi, Y. (2020). The curious case of neural text
degeneration. In Proceedings of the 8th International Conference on Learning
Representations (ICLR 2020).
Hong, Y., Zou, Y., Hu, L., Zeng, Z., Wang, D., & Yang, H. (2024). Dissecting fine-tuning
unlearning in large language models. In Proceedings of the 2024 Conference on
Empirical Methods in Natural Language Processing (pp. 3933–3941).
https://doi.org/10.18653/v1/2024.emnlp-main.228
Jang, J., & Li, W.-S. (2024). AU-RAG: Agent-based universal retrieval augmented
generation. In Proceedings of the 2024 Annual International ACM SIGIR Conference
on Research and Development in Information Retrieval in the Asia Pacific Region
(SIGIR-AP 2024) (pp. 2–11). https://doi.org/10.1145/3673791.3698416
Jeong, S., Baek, J., Cho, S., Hwang, S. J., & Park, J. C. (2024). Adaptive-RAG: Learning to
adapt retrieval-augmented large language models through question complexity. In
Proceedings of the 2024 Conference of the North American Chapter of the Association
for Computational Linguistics: Human Language Technologies (pp. 7036–7050).
https://doi.org/10.18653/v1/2024.naacl-long.389
Jia, P., Xu, D., Li, X., Du, Z., Li, X., Wang, Y., Wang, Y., Liu, Q., Wang, M., Guo, H., Tang,
R., & Zhao, X. (2025). Bridging relevance and reasoning: Rationale distillation in
retrieval-augmented generation. In Findings of the Association for Computational
Linguistics: ACL 2025 (pp. 4242–4256). https://doi.org/10.18653/v1/2025.findingsacl.220
Jiang, A. Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D. S., de las Casas, D.,
Bressand, F., Lengyel, G., Lample, G., Saulnier, L., Lavaud, L. R., Lachaux, M.-A.,
Stock, P., Le Scao, T., Lavril, T., Wang, T., Lacroix, T., & El Sayed, W. (2023). Mistral
7B (arXiv:2310.06825). arXiv. https://doi.org/10.48550/arXiv.2310.06825
Kamalipour, A. A., Asadi, S., & Amiri Chimeh, M. M. (2026). From vectors to knowledge
graphs: A comprehensive analysis of modern retrieval-augmented generation
architectures. Computer Science Review, 61, 100925.
https://doi.org/10.1016/j.cosrev.2026.100925
Koursaris, A., Livieris, I. E., Apostolopoulou, A., Kanaris, K., Tsakalidis, D., Domalis, G., &
Karacapilidis, N. (2026). KG-Tune: Improving embedding models for domain-specific
RAG via knowledge graph-driven fine-tuning. Journal of Intelligent Information
Systems, 64(5), 2339–2360. https://doi.org/10.1007/s10844-026-01054-7
Lai, X., Bai, X., Wang, X., & Zhang, G. (2025). DoR-RAG: An adaptive decompose-orrewrite module for retrieval-augmented generation. In 2025 5th International
Conference on Artificial Intelligence, Robotics, and Communication (ICAIRC 2025)
(pp. 904–908). https://doi.org/10.1109/ICAIRC68035.2025.11385192
Lee, D., Jo, Y., Park, H., & Lee, M. (2025). Shifting from ranking to set selection for retrieval
augmented generation. In Proceedings of the 63rd Annual Meeting of the Association
for Computational Linguistics (Vol. 1, pp. 17606–17619).
https://doi.org/10.18653/v1/2025.acl-long.861
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. In Advances in Neural Information
Processing Systems 33 (NeurIPS 2020) (pp. 9459–9474).
Li, Y., Dong, B., Guerin, F., & Lin, C. (2023). Compressing context to enhance inference
efficiency of large language models. In Proceedings of the 2023 Conference on
Empirical Methods in Natural Language Processing (pp. 6342–6353).
https://doi.org/10.18653/v1/2023.emnlp-main.391
Lin, C.-Y. (2004). ROUGE: A package for automatic evaluation of summaries. In Text
Summarization Branches Out (pp. 74–81). Association for Computational Linguistics.
Ma, Y., Nie, H., Chen, C., Zhang, J., Jiang, J., Wang, B., & Xia, Y. (2025). A survey of
retrieval-augmented generation (RAG) for large language models. In 2025
International Conference on Trustworthy Big Data and Artificial Intelligence (ICTBAI
2025) (pp. 7–13). https://doi.org/10.1109/ICTBAI68361.2025.00008
Papineni, K., Roukos, S., Ward, T., & Zhu, W.-J. (2002). BLEU: A method for automatic
evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the
Association for Computational Linguistics (pp. 311–318).
https://doi.org/10.3115/1073083.1073135
Reimers, N., & Gurevych, I. (2019). Sentence-BERT: Sentence embeddings using Siamese
BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in
Natural Language Processing and the 9th International Joint Conference on Natural
Language Processing (EMNLP-IJCNLP) (pp. 3982–3992).
https://doi.org/10.18653/v1/D19-1410
Reimers, N., & Gurevych, I. (2020). Making monolingual sentence embeddings multilingual
using knowledge distillation. In Proceedings of the 2020 Conference on Empirical
Methods in Natural Language Processing (EMNLP) (pp. 4512–4525).
https://doi.org/10.18653/v1/2020.emnlp-main.365
Sohn, J., Park, Y., Yoon, C., Park, S., Hwang, H., Sung, M., Kim, H., & Kang, J. (2025).
Rationale-guided retrieval augmented generation for medical question answering. In
Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the
Association for Computational Linguistics: Human Language Technologies (Vol. 1, pp.
12739–12753). https://doi.org/10.18653/v1/2025.naacl-long.635
Song, Z., Kong, X., Bao, X., Zhou, Y., Jiao, J., Liu, S., Zhou, Y., & Qi, H. (2026). LLMconfidence reranker: A training-free approach for enhancing retrieval-augmented
generation systems. Expert Systems with Applications, 314, 131627.
https://doi.org/10.1016/j.eswa.2026.131627
Szep, M., Rueckert, D., von Eisenhart-Rothe, R., & Hinterwimmer, F. (2026). Fine-tuning
large language models with limited data: A survey and practical guide. Transactions of
the Association for Computational Linguistics, 14, 341–377.
https://doi.org/10.1162/TACL.a.627
Vahaj, M., Raza, S. M., & Nehra, V. (2025). Retrieval augmented generation (RAG) using
LLMs. In Annual International Conference on Data Science, Machine Learning and
Blockchain Technology (AICDMB 2025).
https://doi.org/10.1109/AICDMB64359.2025.11277692
Wang, B., Zhou, G., Yu, W., & Zhang, X. (2025). DFV-RAG: Dual-perspective fast
verification for retrieval-augmented generation. In 2025 3rd International Conference
on Artificial Intelligence and Automation Control (AIAC 2025) (pp. 312–316).
https://doi.org/10.1109/AIAC68175.2025.11332372
Wang, Q., Lyu, D., & Chen, Q. (2026). Retrieval-augmented generation strategies for library
knowledge services: A stage-wise study. In International Conference on Big Data and
Information Analytics (BigDIA) (pp. 250–257).
https://doi.org/10.1109/BigDIA71496.2026.11684601
Wang, R., Wang, J., Huang, Y., Guo, H., & Pang, J. (2026). A survey on medical multimodal
retrieval-augmented generation (RAG). High-Confidence Computing, 6(4), 100415.
https://doi.org/10.1016/j.hcc.2026.100415
Wang, S., & Xiong, Y. (2025). MHGA-RAG: Multi-hop graph-attention synergy for
enhanced retrieval-augmented generation. Communications in Computer and
Information Science, 2573, 503–515. https://doi.org/10.1007/978-981-96-9994-0_42
Wu, J., Li, J., Ning, Z., & Wang, L. (2026). From relevance to utility: Faith-Rank for utilitydriven evidence re-ranking and reliable answering in retrieval-augmented generation.
Machine Learning, 115(8), 191. https://doi.org/10.1007/s10994-026-07109-8
Xu, H., & Wang, H. (2026). Fine-tuned retrieval-augmented generation: A RAG method
using fine-tuned models and deep entity retrieval. In Proceedings of the 2026 2nd
International Conference on Artificial Intelligence and Computational Intelligence
(AICI 2026) (pp. 869–877). https://doi.org/10.1145/3810280.3810410
Yildiz, E., & Bozkir, A. S. (2025). Learning to fuse retrieval signals: A lightweight meta
relevance classifier for RAG pipelines. Procedia Computer Science, 269, 1434–1443.
https://doi.org/10.1016/j.procs.2025.09.085
Zhai, W. (2025). SAM-RAG: A self-adaptive framework for multimodal retrieval-augmented
generation. In Proceedings of the International Joint Conference on Neural Networks
(IJCNN). https://doi.org/10.1109/IJCNN64981.2025.11227819
Zhang, B., Li, J., Peng, K., Zheng, S., & Meng, K. (2025). Prolog-RAG: A symbolic
reasoning approach to retrieval-augmented generation. In 2025 6th International
Conference on Computer Engineering and Application (ICCEA 2025) (pp. 1814–1819).
https://doi.org/10.1109/ICCEA65460.2025.11103126
Zhang, H., Chen, J., Jiang, F., Yu, F., Chen, Z., Li, J., Chen, G., Wu, X., Zhang, Z., Xiao, Q.,
Wan, X., Wang, B., & Li, H. (2023). HuatuoGPT, towards taming language models to
be a doctor. In Findings of the Association for Computational Linguistics: EMNLP
2023 (pp. 10859–10885). https://doi.org/10.18653/v1/2023.findings-emnlp.725
Zhang, J. (2025). SAGE: A framework of precise retrieval for RAG. In 2025 IEEE 41st
International Conference on Data Engineering (ICDE) (pp. 1388–1401).
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
