基于大语言模型及改进RAG的智能问答系统
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

黑龙江省优秀青年教师基础研究支持计划 (YQJH2023073);


Intelligent Question-answering System Based on Large Language Model and Improved RAG
Author:
Affiliation:

Fund Project:

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

    随着大语言模型(large language model, LLM)在自然语言处理领域的广泛应用, 但其在专业领域长上下文理解等方面仍存在局限. 检索增强生成(retrieval augmented generation, RAG)技术有效提升了问答系统的准确性与可靠性, 然而传统RAG技术多依赖单一检索路径, 在处理复杂查询时存在语义偏差、检索覆盖不足等问题. 本文提出一种基于Haystack框架的改进RAG智能问答系统, 核心贡献包括: 一是采用提示工程的多维查询泛化策略, 对原始查询进行语义扩展与重构, 生成多样化的查询变体以提升检索覆盖范围; 二是设计并行双路召回机制, 结合稠密检索与稀疏检索的优势, 从语义与词汇层面分别捕捉查询相关性, 提高检索精度与召回率; 三是通过融合与重排序模块筛选高质量文档片段, 最终输入大语言模型生成准确答案. 在PubMedQA医学数据集上的实验结果表明, 所提方法显著提升了问答系统的检索效果与生成质量, 验证了其在专业领域问答任务中的有效性与优越性.

    Abstract:

    Although large language models (LLMs) are widely used in natural language processing, they still face limitations in long-context comprehension, especially in specialized domains. Retrieval augmented generation (RAG) can improve the accuracy and reliability of question-answering systems. However, traditional RAG approaches often rely on a single retrieval path, which can cause semantic bias and limited retrieval coverage when processing complex queries. This study proposes an improved RAG intelligent question-answering system based on the Haystack framework. Its core innovations include: first, a multidimensional query generalization strategy based on prompt engineering is adopted to semantically expand and reconstruct original queries, generating diverse query variants to broaden retrieval coverage; second, a parallel dual-path recall mechanism is designed, combining the strengths of dense retrieval and sparse retrieval to capture query relevance at both semantic and lexical levels, thus improving retrieval precision and recall; third, a fusion and reranking module selects high-quality document fragments, which are then fed into a large language model to generate accurate answers. Experimental results on the PubMedQA medical dataset demonstrate that the proposed method significantly improves the retrieval effectiveness and generation quality of the question-answering system, validating its effectiveness and superiority in specialized-domain question-answering tasks.

    参考文献
    相似文献
    引证文献
引用本文

张强,曲鹏宇,左立娜.基于大语言模型及改进RAG的智能问答系统.计算机系统应用,,():1-10

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2026-03-10
  • 最后修改日期:2026-04-20
  • 录用日期:
  • 在线发布日期: 2026-07-17
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62661041 传真: Email:csa@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号