DinoStackAI/qasper-rag
QASPER RAG Dataset for Retrieval-Augmented Generation (RAG) based on QASPER. Structure Subset Splits Description corpus train (default) Paper chunks (abstract + full-text paragraphs) shared across all query splits queries train, dev, test Information-seeking questions over scientific papers qrels train, dev, test Relevance judgments (query ↔ paragraph chunk) answers train, dev, test Reference answers (longest valid free-form answer) top_ranked… See the full description on the dataset page: https://huggingface.co/datasets/DinoStackAI/qasper-rag.
QASPER RAG
Dataset for Retrieval-Augmented Generation (RAG) based on QASPER.
Structure
Dataset statistics
The corpus is shared across all splits and contains paragraph-level chunks from the abstract and full text of each paper.
- Dev split: mapped from the original
validationsplit - Corpus source: unique papers from train, validation and test splits
- Chunking: one chunk for the abstract (
section_name: abstract) and one chunk per paragraph infull_text
Source
Filtering
Questions are kept only when at least one answer satisfies all of the following:
unanswerableisfalse- the answer has
free_form_answer, non-emptyextractive_spans, oryes_no - after removing evidence items containing
FLOAT SELECTED, at least one answer still has evidence that matches the corpus
Evidence items containing FLOAT SELECTED are removed individually. Questions are omitted only when no valid answer has remaining evidence.
Schema
corpus
{"id": "...", "title": "...", "section_name": "...", "text": "..."}queries
{"id": "...", "text": "..."}qrels
{"query_id": "...", "corpus_id": "...", "score": 1}answers
{"query_id": "...", "answer": "..."}top_ranked
{"query-id": "...", "corpus-ids": ["paper_00000", "paper_00001"]}retrieved_docs
{"query_id": "...", "corpus_id": "...", "rank": 1, "retrieval_score": 0.92, "is_relevant": true}Top-k documents retrieved from the indexed corpus (is_relevant is derived from qrels).
Usage
from datasets import load_dataset
corpus = load_dataset("DinoStackAI/qasper-rag", "corpus")["train"]
queries = load_dataset("DinoStackAI/qasper-rag", "queries")
qrels = load_dataset("DinoStackAI/qasper-rag", "qrels")
answers = load_dataset("DinoStackAI/qasper-rag", "answers")
train_queries = queries["train"]
dev_qrels = qrels["dev"]
test_answers = answers["test"]Citation
QASPER is released under the CC BY 4.0 License.
@inproceedings{Dasigi2021ADO,
title={A Dataset of Information-Seeking Questions and Answers Anchored in Research Papers},
author={Pradeep Dasigi and Kyle Lo and Iz Beltagy and Arman Cohan and Noah A. Smith and Matt Gardner},
year={2021}
}