面向高校课程问答的检索增强生成设计
Retrieval-Augmented Generation Design for University Course Question Answering
摘要: 针对高校课程资料分散、版本并存和回答依据难以追溯的问题,提出一种检索增强生成系统设计。系统以课程资源审核和版本管理为基础,连接权限过滤、混合检索、证据组织与回答核验,使生成内容能够定位到具体资料;通过证据不足、资料冲突和服务异常分流,明确自动回答的适用边界。采用构造情境分析版本替换、权限撤销和冲突处理,并提出覆盖检索质量、证据一致性、拒答行为及运行成本的评价方案,补充故障恢复与分阶段错误归因方法。本文形成可用于开发与测试的架构和验收条件,实际问答效果仍需在真实课程数据上验证。
Abstract: This paper proposes a retrieval-augmented generation design for university course question answering to address dispersed resources, coexisting document versions, and poorly traceable answers. The system combines resource review, version snapshots, access filtering, hybrid retrieval, and citation verification. Stable evidence identifiers link answers to the materials used, while separate response states handle insufficient evidence, conflicting resources, and service failures. Constructed scenarios examine document replacement and permission revocation, showing the need to maintain evidence validity before and after generation. An evaluation protocol covers retrieval quality, citation support, refusal behavior, and operational cost, with procedures for fault recovery and error attribution across processing stages. The contribution is a system architecture and testable engineering requirements; actual performance and educational value remain to be verified with real course data.
文章引用:魏明, 刘晨熙, 韩英男, 向志华. 面向高校课程问答的检索增强生成设计[J]. 软件工程与应用, 2026, 15(6): 787-793. https://doi.org/10.12677/sea.2026.156073

参考文献

[1] Lewis, P., Perez, E., Piktus, A., et al. (2020) Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33, 9459-9474.
https://proceedings.neurips.cc/paper/2020/hash/6b493230205f780e1bc26945df7481e5-Abstract.html
[2] Gao, T., Yen, H., Yu, J. and Chen, D. (2023) Enabling Large Language Models to Generate Text with Citations. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Singapore, 6-10 December 2023, 6465-6488.
https://doi.org/10.18653/v1/2023.emnlp-main.398
[3] Liu, N.F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., et al. (2024) Lost in the Middle: How Language Models Use Long Contexts. Transactions of the Association for Computational Linguistics, 12, 157-173.
https://doi.org/10.1162/tacl_a_00638
[4] Wang, X., Wang, Z., Gao, X., Zhang, F., Wu, Y., Xu, Z., et al. (2024) Searching for Best Practices in Retrieval-Augmented Generation. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Miami, 12-16 November 2024, 17716-17736.
https://doi.org/10.18653/v1/2024.emnlp-main.981
[5] Cormack, G.V., Clarke, C.L.A. and Buettcher, S. (2009) Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Learning Methods. Proceedings of the 32nd International ACM SIGIR Conference on Research and Development in Information Retrieval, Boston, 19-23 July 2009, 758-759.
https://doi.org/10.1145/1571941.1572114
[6] Es, S., James, J., Espinosa Anke, L. and Schockaert, S. (2024) RAGAs: Automated Evaluation of Retrieval Augmented Generation. Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics: System Demonstrations, St. Julians, 16 March 2024, 150-158.
https://doi.org/10.18653/v1/2024.eacl-demo.16
[7] Saad-Falcon, J., Khattab, O., Potts, C. and Zaharia, M. (2024) ARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), Mexico City, 16-21 June 2024, 338-354.
https://doi.org/10.18653/v1/2024.naacl-long.20