CRAG Dataset Documentation
June 13, 2025 ยท View on GitHub
Overview
The CRAG dataset is designed to support the development and evaluation of Retrieval-Augmented Generation (RAG) models. It consists of two main types of data:
- Question Answering Pairs: Pairs of questions and their corresponding answers.
- Retrieval Contents: Contents for information retrieval to support answer generation.
Retrieval contents are divided into two types to simulate practical scenarios for RAG:
- Web Search Results: For each question, up to
50full HTML pages are stored, retrieved using the question text as a search query. For Task 1 & 2,5 pagesare randomly selected from thetop-10 pages. These pages are likely relevant to the question, but relevance is not guaranteed. - Mock KGs and APIs: The Mock API is designed to mimic real-world Knowledge Graphs (KGs) or API searches. Given some input parameters, they output relevant results, which may or may not be helpful in answering the user's question.
Download CRAG Data
- Task #1: QA Pairs & Retrieval Contents
- Task #2: QA Pairs & Retrieval Contents, Mock KGs and APIs
- Task #3: QA Pairs & Retrieval Contents (download part 1, 2, 3, and 4; then merge them by
cat crag_task_3_dev_v4.tar.bz2.part* > crag_task_3_dev_v4.tar.bz2), Mock KGs and APIs
Data Schema
| Field Name | Type | Description |
|---|---|---|
interaction_id | string | A unique identifier for each example. |
query_time | string | Date and time when the query and the web search occurred. |
domain | string | Domain label for the query. Possible values: "finance", "music", "movie", "sports", "open". "Open" includes any factual queries not among the previous four domains. |
question_type | string | Type label about the query. Possible values include: "simple", "simple_w_condition", "comparison", "aggregation", "set", "false_premise", "post-processing", "multi-hop". |
static_or_dynamic | string | Indicates whether the answer to a question changes and the expected rate of change. Possible values: "static", "slow-changing", "fast-changing", and "real-time". |
query | string | The question for RAG to answer. |
answer | string | The gold standard answer to the question. |
alt_ans | list | Other valid gold standard answers to the question. |
split | integer | Data split indicator, where 0 is for validation and 1 is for the public test. |
popularity | string | Popularity category of the entity mentioned in the question, with "head", "torso" and "tail" corresponding to the top, middle, and bottom popularity. We defined popularity based on heuristics for each entity type and created a roughly equal number of questions for each bucket. All questions with popularity labels non-empty are Knowledge Graph (KG) questions - questions with answers coming from the KG. When popularity is an empty string, it means the answer to the question comes from the web. |
search_results | list of JSON | Contains up to k HTML pages for each query (k=5 for Task #1 and k=50 for Task #3), including page name, URL, snippet, full HTML, and last modified time. |
Search Results Detail
| Key | Type | Description |
|---|---|---|
page_name | string | The name of the webpage. |
page_url | string | The URL of the webpage. |
page_snippet | string | A short paragraph describing the major content of the page. |
page_result | string | The full HTML of the webpage. |
page_last_modified | string | The time when the page was last modified. |