Quivr/CRAG
Datasets are taken from Facebook's CRAG: Comprehensive RAG Benchmark, see their arXiv paper for details about the dataset construction. CRAG Sampler We have added a simple Python tool for performing stratified sampling on CRAG data. Installation Local Development Install (Recommended) git clone https://huggingface.co/Quivr/CRAG.git cd CRAG pip install -r requirements.txt # Install dependencies pip install -e . # Install package in development mode… See the full description on the dataset page: https://huggingface.co/datasets/Quivr/CRAG.
Datasets are taken from Facebook's CRAG: Comprehensive RAG Benchmark, see their arXiv paper for details about the dataset construction.
CRAG Sampler
We have added a simple Python tool for performing stratified sampling on CRAG data.
Installation
Local Development Install (Recommended)
git clone https://huggingface.co/Quivr/CRAG.git
cd CRAG
pip install -r requirements.txt # Install dependencies
pip install -e . # Install package in development modeQuick Start
Running the example
python -m examples.basic_samplingCRAG dataset
CRAG (Comprehensive RAG Benchmark) is a rich and comprehensive factual question answering benchmark designed to advance research in RAG. The public version of the dataset includes:
- 2706 Question-Answer pairs
- 5 domains: Finance, Sports, Music, Movie, and Open domain
- 8 types of questions (see image below): simple, simple with condition, set, comparison, aggregation, multi-hop, post-processing heavy, and false premise
The datasets crag_task_1_and_2_dev_v4_subsample_*.json.bz2 have been created from the dataset crag_task_1_and_2_dev_v4.jsonl.bz2 available on CRAG's GitHub repository. For an easier handling and download of the dataset, we have used our CRAG sampler to split the 2706 rows of the original file in 5 subsamples, following the procedure below:
- We have created a new label
answer_type, classifying the answers in 3 categories: invalidfor any answer == "invalid question"no_answerfor any answer == "i don't know"validfor any other answer- We have considered the labels
answer_type,domain,question_typeandstatic_or_dynamicand performed stratified sampling, splitting the datasets in 5 subsamples. Each subsample has thus the same statistical properties of the full dataset.
We report below the data schema as provided in CRAG's GitHub repository.
