Retrieval-Augmented Generation (RAG) enhances large language models (LLMs) by improving their access to relevant information. However, current RAG models face challenges in matching complex semantic relationships and adapting to diverse contexts. These issues arise from the reliance on simple matching strategies, such as cosine similarity, which are limited in capturing intricate non-linear interactions between queries and documents. In this paper, we propose NeuRAG, a novel approach to RAG that adapts to diverse contexts using a trainable similarity model. NeuRAG employs neural network structures to match complex semantic relationships, enhancing retrieval and generation consistency. Our experiments demonstrate that NeuRAG as a promising approach to enhance retrieval effectiveness and improve answer generation in RAG systems.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

NeuRAG: Retrieval-Augmented Generation based on Dynamic Neural Matching

  • Mengjie Li,
  • Shuang Song,
  • Neng Gao,
  • Yifei Zhang

摘要

Retrieval-Augmented Generation (RAG) enhances large language models (LLMs) by improving their access to relevant information. However, current RAG models face challenges in matching complex semantic relationships and adapting to diverse contexts. These issues arise from the reliance on simple matching strategies, such as cosine similarity, which are limited in capturing intricate non-linear interactions between queries and documents. In this paper, we propose NeuRAG, a novel approach to RAG that adapts to diverse contexts using a trainable similarity model. NeuRAG employs neural network structures to match complex semantic relationships, enhancing retrieval and generation consistency. Our experiments demonstrate that NeuRAG as a promising approach to enhance retrieval effectiveness and improve answer generation in RAG systems.