---
language:
- es
license: cc-by-nc-4.0
task_categories:
- text-retrieval
pretty_name: MessIRve
dataset_info:
- config_name: ar
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 12917011
    num_examples: 22560
  - name: test
    num_bytes: 3178494
    num_examples: 5481
  download_size: 21681786
  dataset_size: 16095505
- config_name: bo
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 14612600
    num_examples: 24912
  - name: test
    num_bytes: 2797324
    num_examples: 4810
  download_size: 23155666
  dataset_size: 17409924
- config_name: cl
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 12880656
    num_examples: 22486
  - name: test
    num_bytes: 3102500
    num_examples: 5408
  download_size: 21305157
  dataset_size: 15983156
- config_name: co
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 15097852
    num_examples: 25914
  - name: test
    num_bytes: 3298913
    num_examples: 5667
  download_size: 24839923
  dataset_size: 18396765
- config_name: cr
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 13784753
    num_examples: 23662
  - name: test
    num_bytes: 3292259
    num_examples: 5690
  download_size: 23823727
  dataset_size: 17077012
- config_name: cu
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 12750160
    num_examples: 22071
  - name: test
    num_bytes: 2799328
    num_examples: 4787
  download_size: 21107441
  dataset_size: 15549488
- config_name: do
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 16397979
    num_examples: 27830
  - name: test
    num_bytes: 3132225
    num_examples: 5359
  download_size: 26694657
  dataset_size: 19530204
- config_name: ec
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 16312780
    num_examples: 27599
  - name: test
    num_bytes: 3606915
    num_examples: 6074
  download_size: 27581918
  dataset_size: 19919695
- config_name: es
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: test
    num_bytes: 4344109
    num_examples: 7509
  - name: train
    num_bytes: 13536323
    num_examples: 23476
  download_size: 22112966
  dataset_size: 17880432
- config_name: full
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  - name: id_country
    dtype: float64
  splits:
  - name: train
    num_bytes: 333360243
    num_examples: 571120
  - name: test
    num_bytes: 95641160
    num_examples: 160099
  download_size: 181672348
  dataset_size: 429001403
- config_name: gt
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 13488775
    num_examples: 23311
  - name: test
    num_bytes: 2522413
    num_examples: 4290
  download_size: 14238600
  dataset_size: 16011188
- config_name: hn
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 15268575
    num_examples: 26736
  - name: test
    num_bytes: 3356442
    num_examples: 5690
  download_size: 17198684
  dataset_size: 18625017
- config_name: mx
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 18443191
    num_examples: 31957
  - name: test
    num_bytes: 4907428
    num_examples: 8400
  download_size: 21625674
  dataset_size: 23350619
- config_name: ni
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 16007834
    num_examples: 28064
  - name: test
    num_bytes: 3427465
    num_examples: 5902
  download_size: 18075240
  dataset_size: 19435299
- config_name: no_country
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 206535557
    num_examples: 358014
  - name: test
    num_bytes: 59243367
    num_examples: 99385
  download_size: 114445241
  dataset_size: 265778924
- config_name: pa
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 14785430
    num_examples: 25760
  - name: test
    num_bytes: 3411953
    num_examples: 5801
  download_size: 16896864
  dataset_size: 18197383
- config_name: pe
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 14663157
    num_examples: 25531
  - name: test
    num_bytes: 3392379
    num_examples: 5804
  download_size: 15811974
  dataset_size: 18055536
- config_name: pr
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 15346938
    num_examples: 26672
  - name: test
    num_bytes: 3681957
    num_examples: 6280
  download_size: 17739824
  dataset_size: 19028895
- config_name: py
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 14178292
    num_examples: 24717
  - name: test
    num_bytes: 3145829
    num_examples: 5474
  download_size: 15787492
  dataset_size: 17324121
- config_name: sv
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 14769527
    num_examples: 25920
  - name: test
    num_bytes: 3392693
    num_examples: 5821
  download_size: 16835738
  dataset_size: 18162220
- config_name: us
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 13381212
    num_examples: 23197
  - name: test
    num_bytes: 2663961
    num_examples: 4535
  download_size: 13487908
  dataset_size: 16045173
- config_name: uy
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 11850558
    num_examples: 20856
  - name: test
    num_bytes: 3147987
    num_examples: 5571
  download_size: 14105612
  dataset_size: 14998545
- config_name: ve
  features:
  - name: id
    dtype: int64
  - name: query
    dtype: string
  - name: docid
    dtype: string
  - name: docid_text
    dtype: string
  - name: query_date
    dtype: date32
  - name: answer_date
    dtype: date32
  - name: match_score
    dtype: float32
  - name: expanded_search
    dtype: bool
  - name: answer_type
    dtype: string
  splits:
  - name: train
    num_bytes: 15672822
    num_examples: 26730
  - name: test
    num_bytes: 3680937
    num_examples: 6126
  download_size: 17526276
  dataset_size: 19353759
configs:
- config_name: ar
  data_files:
  - split: train
    path: ar/train-*
  - split: test
    path: ar/test-*
- config_name: bo
  data_files:
  - split: train
    path: bo/train-*
  - split: test
    path: bo/test-*
- config_name: cl
  data_files:
  - split: train
    path: cl/train-*
  - split: test
    path: cl/test-*
- config_name: co
  data_files:
  - split: train
    path: co/train-*
  - split: test
    path: co/test-*
- config_name: cr
  data_files:
  - split: train
    path: cr/train-*
  - split: test
    path: cr/test-*
- config_name: cu
  data_files:
  - split: train
    path: cu/train-*
  - split: test
    path: cu/test-*
- config_name: do
  data_files:
  - split: train
    path: do/train-*
  - split: test
    path: do/test-*
- config_name: ec
  data_files:
  - split: train
    path: ec/train-*
  - split: test
    path: ec/test-*
- config_name: es
  data_files:
  - split: train
    path: es/train-*
  - split: test
    path: es/test-*
- config_name: full
  data_files:
  - split: train
    path: full/train-*
  - split: test
    path: full/test-*
- config_name: gt
  data_files:
  - split: train
    path: gt/train-*
  - split: test
    path: gt/test-*
- config_name: hn
  data_files:
  - split: train
    path: hn/train-*
  - split: test
    path: hn/test-*
- config_name: mx
  data_files:
  - split: train
    path: mx/train-*
  - split: test
    path: mx/test-*
- config_name: ni
  data_files:
  - split: train
    path: ni/train-*
  - split: test
    path: ni/test-*
- config_name: no_country
  data_files:
  - split: train
    path: no_country/train-*
  - split: test
    path: no_country/test-*
- config_name: pa
  data_files:
  - split: train
    path: pa/train-*
  - split: test
    path: pa/test-*
- config_name: pe
  data_files:
  - split: train
    path: pe/train-*
  - split: test
    path: pe/test-*
- config_name: pr
  data_files:
  - split: train
    path: pr/train-*
  - split: test
    path: pr/test-*
- config_name: py
  data_files:
  - split: train
    path: py/train-*
  - split: test
    path: py/test-*
- config_name: sv
  data_files:
  - split: train
    path: sv/train-*
  - split: test
    path: sv/test-*
- config_name: us
  data_files:
  - split: train
    path: us/train-*
  - split: test
    path: us/test-*
- config_name: uy
  data_files:
  - split: train
    path: uy/train-*
  - split: test
    path: uy/test-*
- config_name: ve
  data_files:
  - split: train
    path: ve/train-*
  - split: test
    path: ve/test-*
---

# Dataset Card for MessIRve

<!-- Provide a quick summary of the dataset. -->

**MessIRve** is a **large-scale dataset for Spanish IR**, designed to better capture the information needs of Spanish speakers across different countries.

Queries are obtained from Google's autocomplete API (www.google.com/complete), and relevant documents are Spanish Wikipedia paragraphs containing answers from Google Search "featured snippets". This data collection strategy is inspired by [GooAQ](https://github.com/allenai/gooaq/tree/main).

The files presented here are the qrels. The style in which they are displayed makes them easier to explore, as it includes the full texts of documents and queries. 

* For the conventional TREC-style topics and qrels files, refer to https://huggingface.co/datasets/spanish-ir/messirve-trec
* The corpus of documents that accompanies this dataset is https://huggingface.co/datasets/spanish-ir/eswiki_20240401_corpus


## Dataset Details

### Dataset Description

<!-- Provide a longer summary of what this dataset is. -->

- **Language(s) (NLP):** Spanish
- **License:** CC BY-NC 4.0. The dataset should not be used for any commercial purpose.


### Dataset Sources

<!-- Provide the basic links for the dataset. -->

- **Repository:** TBA
- **Paper:** [MessIRve: A Large-Scale Spanish Information Retrieval Dataset](http://arxiv.org/abs/2409.05994)


## Uses

The dataset is meant to be used to train and evaluate Spanish IR models.


## Dataset Structure

<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->

### Data Instances

A typical instance of one subset of the dataset looks like:

```
{
  'id': 4918739,
  'query': 'a cual dedo se pone el anillo de compromiso',
  'docid': '956254#2',
  'docid_text': 'Pero desde hace cientos de años, se dice que la vena amoris pasa por el dedo anular izquierdo que conecta directamente al corazón (téngase en cuenta que la vena amoris no existe realmente). Tradicionalmente, es ofrecido por el hombre como regalo a su novia mientras o cuando ella accede a la proposición de matrimonio. Representa una aceptación formal del futuro compromiso.',
  'query_date': "2024-03-30",
  'answer_date': "2024-04-19",
  'match_score': 0.74,
  'expanded_search': false,
  'answer_type': 'feat_snip'
}
```


### Data Fields

- `id`: query id
- `query`: query text
- `docid`: relevant document id in the corpus
- `docid_text`: relevant document text
- `query_date`: date the query was extracted
- `answer_date`: date the answer was extracted
- `match_score`: the longest string in the SERP answer that is a substring of the matched document text, as a ratio of the length of the SERP answer
- `expanded_search`: if the SERP returned a message indicating that the search was "expanded" with additional results ("se incluyen resultados de...")
- `answer_type`: type of answer extracted (`feat_snippet`, featured snippets, are the most important)

<!-- Note that the descriptions can be initialized with the **Show Markdown Data Fields** output of the [Datasets Tagging app](https://huggingface.co/spaces/huggingface/datasets-tagging), you will then only need to refine the generated descriptions. -->



### Data Splits

We extract queries from Google's autocomplete API for 20 countries with Spanish as an official language, plus the United States. Equatorial Guinea was the only country left out because it doesn't have a Google domain.

Some API results were independent of the country-specific domain, many queries are not specific of any country. These are included under the country label _none_.

Queries from _none_ were combined with the set of unique queries from all countries and included in the _full_ subset. Unlike the country-specific sets, in the _full_ set some queries can have multiple relevant documents because the same query may return different featured snippets in different country domains. 

The dataset is partitioned into training and test queries in such a way that the Wikipedia article to which the paragraph belongs is present in only one of the splits. The partitioning was done by country, with about 20\% of the articles assigned to the test set. Moreover, test instances always have match_score = 1 and expanded_search = False.

For further detail, such as statistics for each subset and split, see the paper.


## Citation

<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->

**BibTeX:**

```bibtex
@article{valentini2024messirve,
      title={MessIRve: A Large-Scale Spanish Information Retrieval Dataset}, 
      author={Francisco Valentini and Viviana Cotik and Damián Furman and Ivan Bercovich and Edgar Altszyler and Juan Manuel Pérez},
      year={2024},
      eprint={2409.05994},
      journal={arxiv:2409.05994},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2409.05994}, 
}
```

**APA:**

Francisco Valentini, Viviana Cotik, Damián Furman, Ivan Bercovich, Edgar Altszyler, & Juan Manuel Pérez (2024). MessIRve: A Large-Scale Spanish Information Retrieval Dataset. arxiv:2409.05994.