DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ni, Jingwei, Schimanski, Tobias, Lin, Meihong, Sachan, Mrinmaya, Ash, Elliott, Leippold, Markus
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909464092737536
author Ni, Jingwei
Schimanski, Tobias
Lin, Meihong
Sachan, Mrinmaya
Ash, Elliott
Leippold, Markus
author_facet Ni, Jingwei
Schimanski, Tobias
Lin, Meihong
Sachan, Mrinmaya
Ash, Elliott
Leippold, Markus
contents Retrieval Augmented Generation (RAG) is widely employed to ground responses to queries on domain-specific documents. But do RAG implementations leave out important information when answering queries that need an integrated analysis of information (e.g., Tell me good news in the stock market today.)? To address these concerns, RAG developers need to annotate information retrieval (IR) data for their domain of interest, which is challenging because (1) domain-specific queries usually need nuanced definitions of relevance beyond shallow semantic relevance; and (2) human or GPT-4 annotation is costly and cannot cover all (query, document) pairs (i.e., annotation selection bias), thus harming the effectiveness in evaluating IR recall. To address these challenges, we propose DIRAS (Domain-specific Information Retrieval Annotation with Scalability), a manual-annotation-free schema that fine-tunes open-sourced LLMs to consider nuanced relevance definition and annotate (partial) relevance labels with calibrated relevance scores. Extensive evaluation shows that DIRAS enables smaller (8B) LLMs to achieve GPT-4-level performance on annotating and ranking unseen (query, document) pairs, and is helpful for real-world RAG development. All code, LLM generations, and human annotations can be found in \url{https://github.com/EdisonNi-hku/DIRAS}.
format Preprint
id arxiv_https___arxiv_org_abs_2406_14162
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation
Ni, Jingwei
Schimanski, Tobias
Lin, Meihong
Sachan, Mrinmaya
Ash, Elliott
Leippold, Markus
Information Retrieval
Artificial Intelligence
Computation and Language
Retrieval Augmented Generation (RAG) is widely employed to ground responses to queries on domain-specific documents. But do RAG implementations leave out important information when answering queries that need an integrated analysis of information (e.g., Tell me good news in the stock market today.)? To address these concerns, RAG developers need to annotate information retrieval (IR) data for their domain of interest, which is challenging because (1) domain-specific queries usually need nuanced definitions of relevance beyond shallow semantic relevance; and (2) human or GPT-4 annotation is costly and cannot cover all (query, document) pairs (i.e., annotation selection bias), thus harming the effectiveness in evaluating IR recall. To address these challenges, we propose DIRAS (Domain-specific Information Retrieval Annotation with Scalability), a manual-annotation-free schema that fine-tunes open-sourced LLMs to consider nuanced relevance definition and annotate (partial) relevance labels with calibrated relevance scores. Extensive evaluation shows that DIRAS enables smaller (8B) LLMs to achieve GPT-4-level performance on annotating and ranking unseen (query, document) pairs, and is helpful for real-world RAG development. All code, LLM generations, and human annotations can be found in \url{https://github.com/EdisonNi-hku/DIRAS}.
title DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation
topic Information Retrieval
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2406.14162