Skip to main content
QUICK REVIEW

[Paper Review] RETA-LLM: A Retrieval-Augmented Large Language Model Toolkit

Jiongnan Liu, Jiajie Jin|arXiv (Cornell University)|Jun 8, 2023
Topic ModelingComputer Science12 citations
TL;DR

RETA-LLM provides a modular retrieval-augmented LLM toolkit with five plug-in components to improve factuality and enable in-domain question answering through external knowledge retrieval. It offers a complete pipeline and open-source availability for building customized in-domain LLM systems.

ABSTRACT

Although Large Language Models (LLMs) have demonstrated extraordinary capabilities in many domains, they still have a tendency to hallucinate and generate fictitious responses to user requests. This problem can be alleviated by augmenting LLMs with information retrieval (IR) systems (also known as retrieval-augmented LLMs). Applying this strategy, LLMs can generate more factual texts in response to user input according to the relevant content retrieved by IR systems from external corpora as references. In addition, by incorporating external knowledge, retrieval-augmented LLMs can answer in-domain questions that cannot be answered by solely relying on the world knowledge stored in parameters. To support research in this area and facilitate the development of retrieval-augmented LLM systems, we develop RETA-LLM, a {RET}reival-{A}ugmented LLM toolkit. In RETA-LLM, we create a complete pipeline to help researchers and users build their customized in-domain LLM-based systems. Compared with previous retrieval-augmented LLM systems, RETA-LLM provides more plug-and-play modules to support better interaction between IR systems and LLMs, including {request rewriting, document retrieval, passage extraction, answer generation, and fact checking} modules. Our toolkit is publicly available at https://github.com/RUC-GSAI/YuLan-IR/tree/main/RETA-LLM.

Motivation & Objective

  • Motivate the need for reducing hallucinations in LLMs by leveraging external information retrieval.
  • Propose a retrieval-augmented LLM toolkit focused on in-domain applications beyond generic LLM capabilities.
  • Provide a plug-and-play architecture that cleanly disentangles IR systems from LLMs for easier customization.
  • Deliver a complete usage pipeline enabling researchers to build domain-specific LLM services from HTML resources.

Proposed method

  • Introduce five modular plug-ins: request rewriting, document retrieval, passage extraction, answer generation, and fact checking.
  • Describe a retrieval-augmented generation workflow where retrieved documents guide answer production.
  • Use a sliding window strategy to extract relevant passages from retrieved documents for reference synthesis.
  • Disentangle IR and LLM components to facilitate customization of search engines and LLMs.
  • Offer a ready-to-use pipeline for converting HTML resources into a dense/sparse retrieval setup and LLM question answering.
  • Provide an example deployment (RUC-enrollment-assistant) using YuLan-13B as the backbone.

Experimental results

Research questions

  • RQ1How can retrieval-augmented LLMs be designed to minimize hallucinations while remaining flexible for in-domain questions?
  • RQ2What modular design and workflow best support interaction between external retrieval systems and LLMs?
  • RQ3Can a complete, easy-to-use pipeline enable researchers to build domain-specific LLM services from HTML resources?
  • RQ4What is the impact of disentangling IR and LLM components on customization and performance in in-domain applications?

Key findings

  • Five independent modules enable modular interaction between IR systems and LLMs.
  • A complete pipeline helps users build in-domain LLM-based systems from their own repositories.
  • The system demonstrates a case study (RUC-enrollment-assistant) using dense retrieval and YuLan-13B as the backbone.
  • The approach emphasizes disentanglement of IR and LLMs to facilitate customization of search engines and LLMs.
  • The toolkit is open source and intended to evolve with contributions and future retrieval strategies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.