Skip to main content
QUICK REVIEW

[Paper Review] RAGged Edges: The Double-Edged Sword of Retrieval-Augmented Chatbots

Philip Feldman. James R. Foulds, Foulds, James R.|arXiv (Cornell University)|Mar 2, 2024
AI in Service InteractionsComputer Science5 citations
TL;DR

The paper empirically evaluates retrieval-augmented generation (RAG) for reducing LLM hallucinations using context prompts from researchers’ CVs; context dramatically improves accuracy but can still yield errors, highlighting nuanced error types in RAG systems.

ABSTRACT

Large language models (LLMs) like ChatGPT demonstrate the remarkable progress of artificial intelligence. However, their tendency to hallucinate -- generate plausible but false information -- poses a significant challenge. This issue is critical, as seen in recent court cases where ChatGPT's use led to citations of non-existent legal rulings. This paper explores how Retrieval-Augmented Generation (RAG) can counter hallucinations by integrating external knowledge with prompts. We empirically evaluate RAG against standard LLMs using prompts designed to induce hallucinations. Our results show that RAG increases accuracy in some cases, but can still be misled when prompts directly contradict the model's pre-trained understanding. These findings highlight the complex nature of hallucinations and the need for more robust solutions to ensure LLM reliability in real-world applications. We offer practical recommendations for RAG deployment and discuss implications for the development of more trustworthy LLMs.

Motivation & Objective

  • Motivate why RAG is used to counteract hallucinations in LLMs.
  • Investigate how context prompting affects accuracy when retrieving external information.
  • Assess types of errors that persist even with context in RAG setups.

Proposed method

  • Conduct a human-in-the-loop experiment where academics provide CVs and prompts are augmented with or without CV context.
  • Use OpenAI gpt-3.5-turbo-16k-0613 to answer prompts about publications for named academics.
  • Have participants classify each response as Hallucination, Partial, Accurate, or Unhelpful.
  • Compare accuracy and error types across contextual and non-contextual prompts.

Experimental results

Research questions

  • RQ1Does adding retrieved context to prompts improve the accuracy of LLM responses in a CV-based information task?
  • RQ2What categories of errors persist when using context in RAG-based prompts?
  • RQ3How does context prompting affect the rate of hallucinations and unhelpful outputs in practice.

Key findings

  • Context dramatically increases accuracy: about 94% accurate with context versus 7.31% accurate without context.
  • Across 1,125 contexted items, 93.95% were Accurate and 2.04% Hallucinations, with 2.31% Unhelpful and 1.68% Partial.
  • Across 793 non-context items, 7.31% were Accurate, 55.35% Hallucinations, 28.87% Unhelpful, and 8.44% Partial.
  • Overall, context prompts reduced hallucinations and improved navigation of retrieved text by approximately 18x.
  • Five error categories observed: Noisy Context, Mismatch between instruction and context, Context-based Synthesis, Unusual Formatting, and Incomplete Context.
  • In 6.04% of items, responses were incorrect despite context, driven by the cited error categories.

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.