arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.00057cs.CLcs.LG
收藏

迈向具备上下文和时间敏感长期记忆的对话智能体

Toward Conversational Agents with Context and Time Sensitive Long-term Memory

Zyphra(齐弗拉)

Nick Alonso, Tomás Figliolia, Anthony Ndirango, Beren Millidge

AI总结:

本文提出了一种结合链式表格搜索、向量数据库检索和查询消歧提示的新颖检索模型,以解决长篇对话中基于时间/事件和模糊查询的检索难题,并构建了新数据集作为基准。

摘要:

近年来,人们对具备长期记忆的对话智能体的兴趣日益浓厚,这促使使用检索增强生成(RAG)的语言模型得到了快速发展。直到最近,大多数关于 RAG 的工作都集中在从大型文本数据库(如 Wikipedia)中检索信息,而不是从长篇对话中检索信息。在本文中,我们认为,与静态数据库检索相比,从长篇对话数据中进行有效检索面临两个独特的问题:1)基于时间/事件的查询,这要求模型根据时间或对话事件的顺序(例如,周二的第三次对话)检索关于先前对话的信息;2)模糊查询,需要周围的对话上下文才能理解。为了更好地开发能够应对这些挑战的基于 RAG 的智能体,我们基于最近的一个长篇模拟对话数据集,生成了一个包含模糊和基于时间问题的新数据集,并证明标准的基于 RAG 的方法在处理此类问题时表现不佳。随后,我们开发了一种新颖的检索模型,该模型结合了链式表格搜索方法、标准向量数据库检索以及一种用于消除查询歧义的提示方法,并证明该方法在解决这些任务方面比现有方法有显著改进。我们相信,这个新数据集和更先进的 RAG 智能体可以作为关键基准和垫脚石,推动可用于各种 AI 应用的有效记忆增强对话智能体的发展。

英文摘要:

There has recently been growing interest in conversational agents with long-term memory which has led to the rapid development of language models that use retrieval-augmented generation (RAG). Until recently, most work on RAG has focused on information retrieval from large databases of texts, like Wikipedia, rather than information from long-form conversations. In this paper, we argue that effective retrieval from long-form conversational data faces two unique problems compared to static database retrieval: 1) time/event-based queries, which requires the model to retrieve information about previous conversations based on time or the order of a conversational event (e.g., the third conversation on Tuesday), and 2) ambiguous queries that require surrounding conversational context to understand. To better develop RAG-based agents that can deal with these challenges, we generate a new dataset of ambiguous and time-based questions that build upon a recent dataset of long-form, simulated conversations, and demonstrate that standard RAG based approaches handle such questions poorly. We then develop a novel retrieval model which combines chained-of-table search methods, standard vector-database retrieval, and a prompting method to disambiguate queries, and demonstrate that this approach substantially improves over current methods at solving these tasks. We believe that this new dataset and more advanced RAG agent can act as a key benchmark and stepping stone towards effective memory augmented conversational agents that can be used in a wide variety of AI applications.

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

↑