RETA-LLM: A Retrieval-Augmented Large Language Model Toolkit

Auteurs : Jiongnan Liu, Jiajie Jin, Zihan Wang, Jiehan Cheng, Zhicheng Dou, Ji-Rong Wen

Soumis à arXiv le 08 Jui. 2023
Licence : CC BY-NC-SA 4.0
Résumé scientifique

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.

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Très proche Autre approche du problème
    RaLLe: A Framework for Developing and Evaluating Retrieval-Augmented Large Language Models
    Yasuto Hoshi, D. Miyashita, Youyang Ng et al. · 2023 · Conference on Empirical Methods in Natural Language Processing · cité 19 fois · Pas encore résumé

    RaLLe propose un cadre pour développer, évaluer et optimiser les systèmes RAG, tandis que RETA-LLM fournit un pipeline modulaire pour les construire.

    Résumé scientifique

    Retrieval-augmented large language models (R-LLMs) combine pre-trained large language models (LLMs) with information retrieval systems to improve the accuracy of factual question-answering. However, current libraries for building R-LLMs provide high-level abstractions without sufficient transparency for evaluating and optimizing prompts within specific inference processes such as retrieval and generation. To address this gap, we present RaLLe, an open-source framework designed to facilitate the development, evaluation, and optimization of R-LLMs for knowledge-intensive tasks. With RaLLe, developers can easily develop and evaluate R-LLMs, improving hand-crafted prompts, assessing individual i…

  2. Très proche Autre approche du problème
    Self-Retrieval: Building an Information Retrieval System with One Large Language Model
    Qiaoyu Tang, Jiawei Chen, Bowen Yu et al. · 2024 · Information Retrieval · cité 15 fois · Résumé IA disponible

    Self-Retrieval internalise les capacités de recherche dans un seul LLM, tandis que RETA-LLM assemble des modules distincts de récupération et de génération.

    Résumé scientifique

    The rise of large language models (LLMs) has transformed the role of information retrieval (IR) systems in the way to humans accessing information. Due to the isolated architecture and the limited interaction, existing IR systems are unable to fully accommodate the shift from directly providing information to humans to indirectly serving large language models. In this paper, we propose Self-Retrieval, an end-to-end, LLM-driven information retrieval architecture that can fully internalize the required abilities of IR systems into a single LLM and deeply leverage the capabilities of LLMs during IR process. Specifically, Self-retrieval internalizes the corpus to retrieve into a LLM via a natura…

  3. Très proche Autre approche du problème
    DeepRetrieval: Hacking Real Search Engines and Retrievers with Large Language Models via Reinforcement Learning
    Pengcheng Jiang, Jiacheng Lin, Lang Cao et al. · 2025 · Information Retrieval · preprint, non relu par les pairs · cité 77 fois · Pas encore résumé

    DeepRetrieval entraîne par renforcement un LLM à générer des requêtes efficaces, alors que RETA-LLM propose un pipeline modulaire de génération augmentée.

    Résumé scientifique

    Information retrieval systems are crucial for enabling effective access to large document collections. Recent approaches have leveraged Large Language Models (LLMs) to enhance retrieval performance through query augmentation, but often rely on expensive supervised learning or distillation techniques that require significant computational resources and hand-labeled data. We introduce DeepRetrieval, a reinforcement learning (RL) approach that trains LLMs for query generation through trial and error without supervised data (reference query). Using retrieval metrics as rewards, our system generates queries that maximize retrieval performance. DeepRetrieval outperforms leading methods on literatu…

  4. Très proche Article de revue
    RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing
    Yu-Cheng Hu, Yuxing Lu · 2024 · arXiv.org · preprint, non relu par les pairs · cité 57 fois · Pas encore résumé

    RAG and RAU passe en revue les paradigmes, l’évolution et les applications des modèles de langage augmentés par récupération, domaine auquel appartient RETA-LLM.

    Résumé scientifique

    Large Language Models (LLMs) have catalyzed significant advancements in Natural Language Processing (NLP), yet they encounter challenges such as hallucination and the need for domain-specific knowledge. To mitigate these, recent methodologies have integrated information retrieved from external resources with LLMs, substantially enhancing their performance across NLP tasks. This survey paper addresses the absence of a comprehensive overview on Retrieval-Augmented Language Models (RALMs), both Retrieval-Augmented Generation (RAG) and Retrieval-Augmented Understanding (RAU), providing an in-depth examination of their paradigm, evolution, taxonomy, and applications. The paper discusses the essen…

  5. Très proche Contexte plus large
    Reliable, Adaptable, and Attributable Language Models with Retrieval
    Akari Asai, Zexuan Zhong, Danqi Chen et al. · 2024 · Computation and Language · preprint, non relu par les pairs · cité 99 fois · Pas encore résumé

    Reliable, Adaptable, and Attributable Language Models with Retrieval défend l’usage de la récupération pour réduire les hallucinations, problème que RETA-LLM traite avec un toolkit.

    Résumé scientifique

    Parametric language models (LMs), which are trained on vast amounts of web data, exhibit remarkable flexibility and capability. However, they still face practical challenges such as hallucinations, difficulty in adapting to new data distributions, and a lack of verifiability. In this position paper, we advocate for retrieval-augmented LMs to replace parametric LMs as the next generation of LMs. By incorporating large-scale datastores during inference, retrieval-augmented LMs can be more reliable, adaptable, and attributable. Despite their potential, retrieval-augmented LMs have yet to be widely adopted due to several obstacles: specifically, current retrieval-augmented LMs struggle to levera…

  6. Très proche Contexte plus large
    Towards Retrieval-Augmented Large Language Models: Data Management and System Design
    Wen-Qi Fan, Pang-Jing Wu, Yujuan Ding et al. · 2025 · IEEE International Conference on Data Engineering · cité 16 fois · Pas encore résumé

    Towards Retrieval-Augmented Large Language Models examine la gestion des données et la conception des systèmes RAG, tandis que RETA-LLM fournit un pipeline modulaire.

    Résumé scientifique

    Retrieval-augmented generation (RAG) has become a transformative approach for enhancing large language models (LLMs) by integrating external, reliable, and up-to-date knowledge. This addresses critical limitations such as hallucinations and outdated internal information. This tutorial delves into the evolution and frameworks of RAG, emphasizing the pivotal role of data management technologies in optimizing query processing, storage, indexing, and efficiency. It explores how RAG systems can deliver high-quality, context-aware outputs through efficient retrieval and integration, covering key topics such as retrieval-augmented LLM (RA-LLM) architectures, retrieval techniques, learning methodolo…

  7. Très proche Même méthode, autre problème Cite cet article
    R-Eval: A Unified Toolkit for Evaluating Domain Knowledge of Retrieval Augmented Large Language Models
    Shangqing Tu, Yuanchun Wang, Ji-Fan Yu et al. · 2024 · Knowledge Discovery and Data Mining · cité 9 fois · Pas encore résumé

    R-Eval fournit un toolkit pour évaluer les workflows RAG, tandis que RETA-LLM outille leur construction avec des modules de récupération et de génération.

    Résumé scientifique

    Large language models have achieved remarkable success on general NLP tasks, but they may fall short for domain-specific problems. Recently, various Retrieval-Augmented Large Language Models (RALLMs) are proposed to address this shortcoming. However, existing evaluation tools only provide a few baselines and evaluate them on various domains without mining the depth of domain knowledge. In this paper, we address the challenges of evaluating RALLMs by introducing the R-Eval toolkit, a Python toolkit designed to streamline the evaluation of different RAG workflows in conjunction with LLMs. Our toolkit, which supports popular built-in RAG workflows and allows for the incorporation of customized …

  8. Très proche Contexte plus large
    Retrieve Anything To Augment Large Language Models
    Peitian Zhang, Shitao Xiao, Zheng Liu et al. · 2023 · Information Retrieval · cité 104 fois · Résumé IA disponible

    Retrieve Anything To Augment Large Language Models étudie la récupération d’assistance externe pour les LLM, comme RETA-LLM, mais vise des retrievers adaptés et polyvalents.

    Résumé scientifique

    Large language models (LLMs) face significant challenges stemming from the inherent limitations in knowledge, memory, alignment, and action. These challenges cannot be addressed by LLMs alone, but should rely on assistance from the external world, such as knowledge base, memory store, demonstration examples, and tools. Retrieval augmentation stands as a vital mechanism for bridging the gap between LLMs and the external assistance. However, conventional methods encounter two pressing issues. On one hand, the general-purpose retrievers are not properly optimized for the retrieval augmentation of LLMs. On the other hand, the task-specific retrievers lack the required versatility, hindering thei…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Même question Utilisé en profondeur par cet article
    REPLUG: Retrieval-Augmented Black-Box Language Models
    Weijia Shi, Sewon Min, Michihiro Yasunaga et al. · 2023 · Computation and Language · cité 1 174 fois · Pas encore résumé

    REPLUG et RETA-LLM augmentent des modèles de langage avec des documents récupérés afin d’améliorer les réponses et les prédictions.

    Résumé scientifique

    We introduce REPLUG, a retrieval-augmented language modeling framework that treats the language model (LM) as a black box and augments it with a tuneable retrieval model. Unlike prior retrieval-augmented LMs that train language models with special cross attention mechanisms to encode the retrieved text, REPLUG simply prepends retrieved documents to the input for the frozen black-box LM. This simple design can be easily applied to any existing retrieval and language models. Furthermore, we show that the LM can be used to supervise the retrieval model, which can then find documents that help the LM make better predictions. Our experiments demonstrate that REPLUG with the tuned retriever signif…

  2. Proche Même question
    Active Retrieval Augmented Generation
    Zhengbao Jiang, Frank F. Xu, Luyu Gao et al. · 2023 · Computation and Language · cité 974 fois · Résumé IA disponible

    Active Retrieval Augmented Generation et RETA-LLM utilisent la récupération externe pour réduire les réponses factuellement erronées des modèles de langage.

    Résumé scientifique

    Despite the remarkable ability of large language models (LMs) to comprehend and generate language, they have a tendency to hallucinate and create factually inaccurate output. Augmenting LMs by retrieving information from external knowledge resources is one promising solution. Most existing retrieval augmented LMs employ a retrieve-and-generate setup that only retrieves information once based on the input. This is limiting, however, in more general scenarios involving generation of long texts, where continually gathering information throughout generation is essential. In this work, we provide a generalized view of active retrieval augmented generation, methods that actively decide when and wh…

  3. Proche Contexte plus large
    Large Language Models are Zero-Shot Rankers for Recommender Systems
    Yupeng Hou, Jun-Jie Zhang, Zi-Han Lin et al. · 2023 · European Conference on Information Retrieval · cité 692 fois · Pas encore résumé

    Large Language Models are Zero-Shot Rankers for Recommender Systems applique les LLM au classement de recommandations, plutôt qu’à la génération augmentée par récupération de RETA-LLM.

    Résumé scientifique

    Recently, large language models (LLMs) (e.g., GPT-4) have demonstrated impressive general-purpose task-solving abilities, including the potential to approach recommendation tasks. Along this line of research, this work aims to investigate the capacity of LLMs that act as the ranking model for recommender systems. We first formalize the recommendation problem as a conditional ranking task, considering sequential interaction histories as conditions and the items retrieved by other candidate generation models as candidates. To solve the ranking task by LLMs, we carefully design the prompting template and conduct extensive experiments on two widely-used datasets. We show that LLMs have promising…

  4. Proche Contexte plus large
    Recommendation as Instruction Following: A Large Language Model Empowered Recommendation Approach
    Jun-Jie Zhang, Ruo-Bing Xie, Yupeng Hou et al. · 2023 · ACM Trans. Inf. Syst. · cité 439 fois · Résumé IA disponible

    Recommendation as Instruction Following emploie les LLM pour suivre des instructions de recommandation, un usage distinct du pipeline RAG de RETA-LLM.

    Résumé scientifique

    In the past few decades, recommender systems have attracted much attention in both research and industry communities. Existing recommendation models mainly learn the underlying user preference from historical behavior data (typically in the forms of item IDs), and then estimate the user–item matching relationships for recommendations. Inspired by the recent progress on large language models (LLMs), we develop a different recommendation paradigm, considering recommendation as instruction following by LLMs. The key idea is that the needs of a user can be expressed in natural language descriptions (called instructions), so that LLMs can understand and further execute the instruction for fulfill…

  5. Proche Contexte plus large
    Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agent
    Weiwei Sun, Lingyong Yan, Xinyu Ma et al. · 2023 · Conference on Empirical Methods in Natural Language Processing · cité 711 fois · Pas encore résumé

    Is ChatGPT Good at Search? évalue le classement de passages par LLM dans la recherche d’information, tandis que RETA-LLM combine récupération et génération.

    Résumé scientifique

    Large Language Models (LLMs) have demonstrated remarkable zero-shot generalization across various language-related tasks, including search engines. However, existing work utilizes the generative ability of LLMs for Information Retrieval (IR) rather than direct passage ranking. The discrepancy between the pre-training objectives of LLMs and the ranking objective poses another challenge. In this paper, we first investigate generative LLMs such as ChatGPT and GPT-4 for relevance ranking in IR. Surprisingly, our experiments reveal that properly instructed LLMs can deliver competitive, even superior results to state-of-the-art supervised methods on popular IR benchmarks. Furthermore, to address c…

Les articles qui le citent

  1. Proche Prolonge cet article Utilise cet article en profondeur
    ERAGent: Enhancing Retrieval-Augmented Language Models with Improved Accuracy, Efficiency, and Personalization
    Yunxiao Shi, Xing Zi, Zijing Shi et al. · 2024 · European Conference on Artificial Intelligence · cité 23 fois · Pas encore résumé

    ERAGent cite RETA-LLM et propose un cadre RAG visant la précision, l’efficacité et la personnalisation.

    Résumé scientifique

    Retrieval-augmented generation (RAG) for language models significantly improves language understanding systems. The basic retrieval-then-read pipeline of response generation has evolved into a more extended process due to the integration of various components, sometimes even forming loop structures. Despite its advancements in improving response accuracy, challenges like poor retrieval quality for complex questions that require the search of multifaceted semantic information, inefficiencies in knowledge re-retrieval during long-term serving, and lack of personalized responses persist. Motivated by transcending these limitations, we introduce ERAGent, a cutting-edge framework that embodies an…

  2. Proche Prolonge cet article
    CorpusLM: Towards a Unified Language Model on Corpus for Knowledge-Intensive Tasks
    Xiaoxi Li, Zhi-Cheng Dou, Yu-Jia Zhou et al. · 2024 · Annual International ACM SIGIR Conference on Research and Development in Information Retrieval · cité 35 fois · Pas encore résumé

    CorpusLM cite RETA-LLM et propose un modèle unifié de récupération générative pour les tâches riches en connaissances.

    Résumé scientifique

    Large language models (LLMs) have gained significant attention in various fields but prone to hallucination, especially in knowledge-intensive (KI) tasks. To address this, retrieval-augmented generation (RAG) has emerged as a popular solution to enhance factual accuracy. However, traditional retrieval modules often rely on large document index and disconnect with generative tasks. With the advent of generative retrieval (GR), language models can retrieve by directly generating document identifiers (DocIDs), offering superior performance in retrieval tasks. However, the potential relationship between GR and downstream tasks remains unexplored. In this paper, we propose CorpusLM, a unified lan…

  3. Proche Prolonge cet article
    SuRe: Summarizing Retrievals using Answer Candidates for Open-domain QA of LLMs
    Jaehyung Kim, Jaehyun Nam, Sangwoo Mo et al. · 2024 · International Conference on Learning Representations · cité 107 fois · Pas encore résumé

    SuRe cite RETA-LLM et améliore la réponse aux questions ouvertes en résumant les passages récupérés sans ajustement supplémentaire.

    Résumé scientifique

    Large language models (LLMs) have made significant advancements in various natural language processing tasks, including question answering (QA) tasks. While incorporating new information with the retrieval of relevant passages is a promising way to improve QA with LLMs, the existing methods often require additional fine-tuning which becomes infeasible with recent LLMs. Augmenting retrieved passages via prompting has the potential to address this limitation, but this direction has been limitedly explored. To this end, we design a simple yet effective framework to enhance open-domain QA (ODQA) with LLMs, based on the summarized retrieval (SuRe). SuRe helps LLMs predict more accurate answers fo…

  4. Proche Prolonge cet article
    Enhancing Retrieval and Managing Retrieval: A Four-Module Synergy for Improved Quality and Efficiency in RAG Systems
    Yunxiao Shi, Xing Zi, Zijing Shi et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 40 fois · Pas encore résumé

    Enhancing Retrieval and Managing Retrieval cite RETA-LLM et développe la réécriture de requêtes ainsi que la gestion modulaire de la récupération.

    Résumé scientifique

    Retrieval-augmented generation (RAG) techniques leverage the in-context learning capabilities of large language models (LLMs) to produce more accurate and relevant responses. Originating from the simple 'retrieve-then-read' approach, the RAG framework has evolved into a highly flexible and modular paradigm. A critical component, the Query Rewriter module, enhances knowledge retrieval by generating a search-friendly query. This method aligns input questions more closely with the knowledge base. Our research identifies opportunities to enhance the Query Rewriter module to Query Rewriter+ by generating multiple queries to overcome the Information Plateaus associated with a single query and by r…

  5. Proche Prolonge cet article
    DomainRAG: A Chinese Benchmark for Evaluating Domain-specific Retrieval-Augmented Generation
    Shuting Wang, Jiongnan Liu, Jiehan Cheng et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 25 fois · Pas encore résumé

    DomainRAG cite RETA-LLM et évalue la génération augmentée par récupération dans un contexte spécialisé d’admission universitaire.

    Résumé scientifique

    Retrieval-Augmented Generation (RAG) offers a promising solution to address various limitations of Large Language Models (LLMs), such as hallucination and difficulties in keeping up with real-time updates. This approach is particularly critical in expert and domain-specific applications where LLMs struggle to cover expert knowledge. Therefore, evaluating RAG models in such scenarios is crucial, yet current studies often rely on general knowledge sources like Wikipedia to assess the models' abilities in solving common-sense problems. In this paper, we evaluated LLMs by RAG settings in a domain-specific context, college enrollment. We identified six required abilities for RAG models, including…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 5 novembre 2026.

Le guide illustré des articles autour d’un article