Intrinsic Evaluation of RAG Systems for Deep-Logic Questions

Junyi Hu, You Zhou, Jie Wang
10/3/2024
cs.AI

No confident code implementation found for this paper.

Abstract

We introduce the Overall Performance Index (OPI), an intrinsic metric to evaluate retrieval-augmented generation (RAG) mechanisms for applications involving deep-logic queries. OPI is computed as the harmonic mean of two key metrics: the Logical-Relation Correctness Ratio and the average of BERT embedding similarity scores between ground-truth and generated answers. We apply OPI to assess the performance of LangChain, a popular RAG tool, using a logical relations classifier fine-tuned from GPT-4o on the RAG-Dataset-12000 from Hugging Face. Our findings show a strong correlation between BERT embedding similarity scores and extrinsic evaluation scores. Among the commonly used retrievers, the cosine similarity retriever using BERT-based embeddings outperforms others, while the Euclidean distance-based retriever exhibits the weakest performance. Furthermore, we demonstrate that combining multiple retrievers, either algorithmically or by merging retrieved sentences, yields superior performance compared to using any single retriever alone.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2024intrinsic,
  title  = {Intrinsic Evaluation of RAG Systems for Deep-Logic Questions},
  author = {Junyi Hu and You Zhou and Jie Wang},
  year   = {2024},
  eprint = {2410.02932},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02932v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.02932.svg)](https://codeofpaper.com/paper/2410.02932)

Discussion