Large Language Models(LLMs)-driven Artificial Intelligence (AI) Agent provide conversational generation AI with human-like decision making and reasoning capabilities and extend them to Retrieval Augmented Generation (RAG) external knowledge base tools. However, the existing research focuses on knowledge coverage, ignores the problem of redundant knowledge accumulation, and fails to take into account the interpretability of LLMs, which limits the application value. In this paper, a dynamic and stepwise enhanced KNN framework, DKCER-Agent, is proposed. The framework effectively reduces redundant information through multi-round dynamic reasoning and gradually queries and generates optimal answers. The redundant information is filtered by the joint retrieval mechanism, and the key information is cleared and filtered by KNN retrieval. In addition, the framework introduces a step-by-step thinking revision mechanism to decompose the problem into sub-problems, which are verified and generated by the LLMs generation strategy, thus enhancing the interpretability of the model. The experimental results show that DKCER-Agent significantly exceeds the baseline model in a wide range of multi-round dialogue dataset tests, and the accuracy is significantly improved.

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

DKCER-Agent: Lightweight and Efficient KNN-Enhanced Dynamic Context Optimization for Stepwise Retrieval Augmented Generation

  • Xueying Liu,
  • Jing Yun,
  • Bo li,
  • Yuying Zhang,
  • Xiaoguo Shi

摘要

Large Language Models(LLMs)-driven Artificial Intelligence (AI) Agent provide conversational generation AI with human-like decision making and reasoning capabilities and extend them to Retrieval Augmented Generation (RAG) external knowledge base tools. However, the existing research focuses on knowledge coverage, ignores the problem of redundant knowledge accumulation, and fails to take into account the interpretability of LLMs, which limits the application value. In this paper, a dynamic and stepwise enhanced KNN framework, DKCER-Agent, is proposed. The framework effectively reduces redundant information through multi-round dynamic reasoning and gradually queries and generates optimal answers. The redundant information is filtered by the joint retrieval mechanism, and the key information is cleared and filtered by KNN retrieval. In addition, the framework introduces a step-by-step thinking revision mechanism to decompose the problem into sub-problems, which are verified and generated by the LLMs generation strategy, thus enhancing the interpretability of the model. The experimental results show that DKCER-Agent significantly exceeds the baseline model in a wide range of multi-round dialogue dataset tests, and the accuracy is significantly improved.