yixuantt/MultiHop-RAG
소개
「MultiHop-RAG: A Dataset for Evaluating Retrieval-Augmented Generation Across Documents」(COLM 2024)의 리포지토리입니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original💡 MultiHop-RAG
A Dataset for Evaluating Retrieval-Augmented Generation Across Documents
🚀 Overview
MultiHop-RAG: a QA dataset to evaluate retrieval and reasoning across documents with metadata in the RAG pipelines. It contains 2556 queries, with evidence for each query distributed across 2 to 4 documents. The queries also involve document metadata, reflecting complex scenarios commonly found in real-world RAG applications.
📄 Paper Link (Accepted by COLM 2024): MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries
🤗 Hugging Face dataloader

Simple Use Case
1. For Retrieval
Please try 'simple_retrieval.py,' a sample use case demonstrating retrieval using this dataset.
pip install llama-index==0.9.40
# test simple retrieval and save results
python simple_retrieval.py --retriever BAAI/llm-embedder
# test simple retrieval with rerank and save results
python simple_retrieval.py --retriever BAAI/llm-embedder --rerank
2. For QA
Please try 'qa_llama.py,' a sample use case demonstrating query and answer with llama using this dataset.
python qa_llama.py
Evaluation
1. For Retrieval: 'retrieval_evaluate.py'
2. For QA: 'qa_evaluate.py'
python retrieval_evaluate.py --file {saved_file_path}
Construction Pipeline
For research purposes, we open-sourced part of the code to construct the dataset. However, the current structure of the code is not very tidy. We will organize it in the future.
💡 Just For Reference: pipeline/
Citation
@misc{tang2024multihoprag,
title={MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries},
author={Yixuan Tang and Yi Yang},
year={2024},
eprint={2401.15391},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
License
MultiHop-RAG is licensed under ODC-BY
관련 프로젝트 살펴보기
불러오는 중…