基于DFR-RAG的校园大语言模型智能问答系统研究
CSTR:
作者:
作者单位:

1.大连理工大学;2.浙江大学

作者简介:

通讯作者:

中图分类号:

基金项目:

国家社会科学(20BTQ074)


Research on Campus Large Language Model Intelligent Question Answering System Based on DFR-RAG
Author:
Affiliation:

1.Zhejiang University;2.Dalian University of Technology

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对大语言模型(Large Language Models,LLMs)在校园问答系统应用中暴露的幻觉问题,本文设计并研发一个更具可信度的模型。本文结合低秩自适应(Low-Rank Adaptation,LoRA)微调技术与检索增强生成(Retrieval-Augmented Generation, RAG)技术,在朴素RAG(Naive RAG)的基础上提出了一种DFR-RAG(Decompose Filter Rewrite-RAG)方法。通过新增拆解器、过滤器与改写器组件,利用智能体实现功能,同时借助LangChain与LangGraph框架,基于Baichuan2-7B-Chat模型构建了新型校园智能问答系统。测试结果表明,在原始模型、仅LoRA、仅DFR-RAG以及LoRA+DFR-RAG这4种策略中,LoRA+DFR-RAG策略表现最佳,F1值达到了0.8017。消融实验进一步证实,与Naive RAG相比,DFR-RAG的效果提升了1.76%。对4种策略生成的答案进行了实例分析,与传统检索型问答系统进行了对比。构建基于DFR-RAG的校园大语言模型智能问答系统能有效提高问答任务质量,为大语言模型在特定知识密集场景下的落地应用提供了可复刻的解决方案与实践范式。

    Abstract:

    To address the hallucination problem inherent in Large Language Models (LLMs) applied to campus Q&A (Question-and-Answer) systems, a more credible model is desgned and developed. Specifically, LoRA (Low-Rank Adaptation) fine-tuning is combined with Retrieval-Augmented Generation (RAG) techniques, proposing a novel DFR-RAG (Decompose Filter Rewrite-RAG) method that improves upon Naive RAG. This method incorporates novel decomposer, filter, and rewriter components, implemented within an agent-based framework. Leveraging the Lang Chain and Lang Graph frameworks, an intelligent campus Q&A system is constructed based on the Baichuan2-7B-Chat model. Experimental results show that among the four strategies under our evaluation (original model, LoRA-only, DFR-RAG-only, and LoRA+DFR-RAG), the LoRA+DFR-RAG strategy performs the best, achieving an F1-score of 0.8017. Ablation studies further demonstrate that DFR-RAG improves performance by 1.76% compared to Naive RAG. Additionally, a case analysis of the answers generated by the four strategies in provided and a comparison is made with those from traditional retrieval-based Q&A systems. The implementation of the DFR-RAG method effectively enhances the quality of LLM-based campus Q&A tasks, The proposed DFR-RAG-based system not only effectively enhances the quality of campus Q&A tasks but also offers a replicable solution and practical paradigm for the deployment of LLMs in knowledge-intensive domains.

    参考文献
    相似文献
    引证文献
引用本文
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-10-22
  • 最后修改日期:2025-11-21
  • 录用日期:
  • 在线发布日期: 2026-01-12
  • 出版日期:
文章二维码