arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14167cs.IR
收藏

利用 Elasticsearch 优化检索增强生成以提升问答系统性能

Optimizing Retrieval-Augmented Generation with Elasticsearch for Enhanced Question-Answering Systems

Jiajing Chen, Runyuan Bao, Hongye Zheng, Zhen Qi, Jianjun Wei, Jiacheng Hu

AI总结:

本文提出 ES-RAG 方案,将 Elasticsearch 集成到 RAG 框架中,在 SQuAD 2.0 上相比 TF-IDF-RAG 准确率提升 0.51 个百分点,并展现出更优的检索效率与复杂查询处理能力。

摘要:

本研究旨在通过将 Elasticsearch 集成到检索增强生成(RAG)框架中,提高大规模语言模型(LLMs)在回答问题时的准确性和质量。实验使用斯坦福问答数据集(SQuAD)2.0 版本作为测试数据集,并比较了不同检索方法的性能,包括基于关键词匹配或语义相似度计算的传统方法、BM25-RAG 和 TF-IDF-RAG,以及新提出的 ES-RAG 方案。结果表明,ES-RAG 不仅在检索效率上具有明显优势,而且在准确率等关键指标上表现良好,其准确率比 TF-IDF-RAG 高出 0.51 个百分点。此外,Elasticsearch 强大的搜索能力和丰富的配置选项使整个问答系统能够更好地处理复杂查询,并根据用户的多样化需求提供更灵活、更高效的响应。未来的研究方向可以进一步探索如何优化 Elasticsearch 与 LLM 之间的交互机制,例如引入更高层次的语义理解和上下文感知能力,以实现更智能、更人性化的问答体验。

英文摘要:

This study aims to improve the accuracy and quality of large-scale language models (LLMs) in answering questions by integrating Elasticsearch into the Retrieval Augmented Generation (RAG) framework. The experiment uses the Stanford Question Answering Dataset (SQuAD) version 2.0 as the test dataset and compares the performance of different retrieval methods, including traditional methods based on keyword matching or semantic similarity calculation, BM25-RAG and TF-IDF- RAG, and the newly proposed ES-RAG scheme. The results show that ES-RAG not only has obvious advantages in retrieval efficiency but also performs well in key indicators such as accuracy, which is 0.51 percentage points higher than TF-IDF-RAG. In addition, Elasticsearch's powerful search capabilities and rich configuration options enable the entire question-answering system to better handle complex queries and provide more flexible and efficient responses based on the diverse needs of users. Future research directions can further explore how to optimize the interaction mechanism between Elasticsearch and LLM, such as introducing higher-level semantic understanding and context-awareness capabilities, to achieve a more intelligent and humanized question-answering experience.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑