工具调用:通过检索增强大型语言模型增强药物咨询
Tool Calling: Enhancing Medication Consultation via Retrieval-Augmented Large Language Models
AI总结:
本文针对医疗领域知识密集型任务,提出Distill-Retrieve-Read框架,利用工具调用机制优化检索查询,并在多轮对话基准MedicineQA上显著提升了证据检索准确率。
摘要:
大规模语言模型(LLMs)在各种语言任务上取得了显著成功,但存在幻觉和时间错配问题。为了缓解这些缺陷,检索增强生成(RAG)被用于提供外部知识以促进答案生成。然而,由于缺乏领域特定知识以及现实场景的复杂性,将此类模型应用于医疗领域面临诸多挑战。在本研究中,我们探索了在医疗领域知识密集型任务中使用带有 RAG 框架的 LLMs。为了评估 LLMs 的能力,我们引入了 MedicineQA,这是一个多轮对话基准,模拟了现实世界的药物咨询场景,并要求 LLMs 利用从药物数据库检索到的证据进行回答。MedicineQA 包含 300 个多轮问答对,每个都嵌入在详细的对话历史中,突显了这项知识密集型任务对当前 LLMs 带来的挑战。我们进一步提出了一种新的 Distill-Retrieve-Read 框架,以替代以往的 Retrieve-then-Read 框架。具体而言,蒸馏和检索过程利用工具调用机制来制定搜索查询,模拟搜索引擎中使用的基于关键字的查询。实验结果表明,我们的框架带来了显著的性能提升,并在证据检索准确率方面超越了先前的同类方法。这一进展为将 RAG 应用于医疗领域提供了启示。
英文摘要:
Large-scale language models (LLMs) have achieved remarkable success across various language tasks but suffer from hallucinations and temporal misalignment. To mitigate these shortcomings, Retrieval-augmented generation (RAG) has been utilized to provide external knowledge to facilitate the answer generation. However, applying such models to the medical domain faces several challenges due to the lack of domain-specific knowledge and the intricacy of real-world scenarios. In this study, we explore LLMs with RAG framework for knowledge-intensive tasks in the medical field. To evaluate the capabilities of LLMs, we introduce MedicineQA, a multi-round dialogue benchmark that simulates the real-world medication consultation scenario and requires LLMs to answer with retrieved evidence from the medicine database. MedicineQA contains 300 multi-round question-answering pairs, each embedded within a detailed dialogue history, highlighting the challenge posed by this knowledge-intensive task to current LLMs. We further propose a new \textit{Distill-Retrieve-Read} framework instead of the previous \textit{Retrieve-then-Read}. Specifically, the distillation and retrieval process utilizes a tool calling mechanism to formulate search queries that emulate the keyword-based inquiries used by search engines. With experimental results, we show that our framework brings notable performance improvements and surpasses the previous counterparts in the evidence retrieval process in terms of evidence retrieval accuracy. This advancement sheds light on applying RAG to the medical domain.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。