Seven Failure Points When Engineering a Retrieval Augmented Generation System

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Barnett, Scott, Kurniawan, Stefanus, Thudumu, Srikanth, Brannelly, Zach, Abdelrazek, Mohamed
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909090634006528
author Barnett, Scott
Kurniawan, Stefanus
Thudumu, Srikanth
Brannelly, Zach
Abdelrazek, Mohamed
author_facet Barnett, Scott
Kurniawan, Stefanus
Thudumu, Srikanth
Brannelly, Zach
Abdelrazek, Mohamed
contents Software engineers are increasingly adding semantic search capabilities to applications using a strategy known as Retrieval Augmented Generation (RAG). A RAG system involves finding documents that semantically match a query and then passing the documents to a large language model (LLM) such as ChatGPT to extract the right answer using an LLM. RAG systems aim to: a) reduce the problem of hallucinated responses from LLMs, b) link sources/references to generated responses, and c) remove the need for annotating documents with meta-data. However, RAG systems suffer from limitations inherent to information retrieval systems and from reliance on LLMs. In this paper, we present an experience report on the failure points of RAG systems from three case studies from separate domains: research, education, and biomedical. We share the lessons learned and present 7 failure points to consider when designing a RAG system. The two key takeaways arising from our work are: 1) validation of a RAG system is only feasible during operation, and 2) the robustness of a RAG system evolves rather than designed in at the start. We conclude with a list of potential research directions on RAG systems for the software engineering community.
format Preprint
id arxiv_https___arxiv_org_abs_2401_05856
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Seven Failure Points When Engineering a Retrieval Augmented Generation System
Barnett, Scott
Kurniawan, Stefanus
Thudumu, Srikanth
Brannelly, Zach
Abdelrazek, Mohamed
Software Engineering
Artificial Intelligence
Software engineers are increasingly adding semantic search capabilities to applications using a strategy known as Retrieval Augmented Generation (RAG). A RAG system involves finding documents that semantically match a query and then passing the documents to a large language model (LLM) such as ChatGPT to extract the right answer using an LLM. RAG systems aim to: a) reduce the problem of hallucinated responses from LLMs, b) link sources/references to generated responses, and c) remove the need for annotating documents with meta-data. However, RAG systems suffer from limitations inherent to information retrieval systems and from reliance on LLMs. In this paper, we present an experience report on the failure points of RAG systems from three case studies from separate domains: research, education, and biomedical. We share the lessons learned and present 7 failure points to consider when designing a RAG system. The two key takeaways arising from our work are: 1) validation of a RAG system is only feasible during operation, and 2) the robustness of a RAG system evolves rather than designed in at the start. We conclude with a list of potential research directions on RAG systems for the software engineering community.
title Seven Failure Points When Engineering a Retrieval Augmented Generation System
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2401.05856