Skip to main content
QUICK REVIEW

[Paper Review] Design and Evaluation of a Retrieval-Augmented Generation Architecture for OWASP Security Data

Es, Shahul, Jithin James|arXiv (Cornell University)|Sep 26, 2023
Topic ModelingComputer Science65 citations
TL;DR

RAGAs introduces a reference-free evaluation framework for retrieval-augmented generation (RAG) systems, complemented by WikiEval dataset, and demonstrates alignment with human judgments, especially for faithfulness and answer relevance.

ABSTRACT

Project Description This archive contains a research artifact for the design, implementation, and evaluation of a Retrieval-Augmented Generation (RAG) system in the domain of application security. The artifact provides a complete, self-contained snapshot of the system architecture, curated evaluation data, and automated benchmarking pipelines. RAG System Architecture The archive includes a fully implemented RAG pipeline designed to ground large language model outputs in authoritative security documentation. The system follows a modular architecture with clearly separated components for document ingestion, semantic retrieval, and answer generation. The knowledge base is derived from OWASP Cheat Sheet Series and related security guidance, enabling security-focused question answering with reduced risk of hallucinated responses. Ground Truth Dataset A ground truth dataset is included to support systematic evaluation. The dataset consists of security-relevant questions and corresponding reference information derived from OWASP materials. It is intended exclusively for offline evaluation and benchmarking of RAG behavior and is not meant to serve as training data.

Motivation & Objective

  • Motivate automated, ground-truth-free evaluation of RAG systems across multiple quality dimensions.
  • Propose metrics to assess faithfulness, answer relevance, and context relevance without ground-truth annotations.
  • Introduce WikiEval dataset for human-backed evaluation of recent textual events beyond model training data.
  • Present RAGAs framework to enable easy integration with common RAG toolchains (llama-index, Langchain).
  • Demonstrate that automated metrics correlate with human judgments, aiding faster RAG development.

Proposed method

  • Define three core quality dimensions for RAG evaluation: faithfulness, answer relevance, and context relevance.
  • Propose prompts and verification steps to estimate each dimension via an LLM (gpt-3.5-turbo-16k).
  • Construct a fully reference-free evaluation protocol that does not rely on ground-truth answers.
  • Create WikiEval dataset with human judgments on faithfulness, answer relevance, and context relevance in a wiki context.
  • Compare RAGAs to two baselines (GPT Score and GPT Ranking) to validate alignment with human judgments.
  • Provide integration with popular RAG frameworks (llama-index, Langchain).

Experimental results

Research questions

  • RQ1Can faithfulness, answer relevance, and context relevance be reliably evaluated for RAG systems without ground-truth references?
  • RQ2Do the proposed RAGAs metrics align with human judgments better than existing baselines for RAG evaluation?
  • RQ3What challenges arise in evaluating context relevance, especially for longer retrieved passages?
  • RQ4Can WikiEval provide a realistic, up-to-date evaluation surface for recent events beyond training data?
  • RQ5Is integration with standard RAG toolchains feasible and beneficial for developers?

Key findings

  • RAGAs achieves high agreement with human judgments on faithfulness (0.95) and competitive alignment on answer relevance (0.78) and context relevance (0.70) in WikiEval.
  • GPT Score and GPT Ranking baselines show substantially lower alignment with human judgments across the three dimensions.
  • Context relevance is the most challenging dimension for automated evaluation, with observed gaps between model judgments and human judgments for longer contexts.
  • WikiEval provides 50-page Wikipedia-focused cases with questions generated from introductory sections and annotated by two human raters.
  • RAGAs demonstrates that automated, reference-free evaluation can be a viable alternative to ground-truth-based evaluation in RAG workflows.
  • RAGAs integrates seamlessly with widely-used tooling to streamline adoption by RAG researchers and practitioners.

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.