The Dataset Viewer has been disabled on this dataset.

PTwikiRAG: European Portuguese RAG Evaluation Benchmark

PTwikiRAG is a dedicated Retrieval-Augmented Generation (RAG) evaluation benchmark tailored for European Portuguese (pt-PT). It consists of a 92-document retrieval corpus and two parallel evaluation splits (1,006 instances each) designed to assess both retrieval accuracy and generation quality across varying levels of linguistic naturalness and question complexity.

Background

This dataset was developed as part of Nuno Marques' Computer Science MSc thesis dissertation "Enhancing LLMs Performance through Fine-tuning and RAG" at the Faculty of Sciences of the University of Lisbon (FCUL) and is released as an open contribution to the European Portuguese NLP research community. It is licensed under CC-BY-SA 4.0.

Quick Start

from datasets import load_dataset

# Load the evaluation splits
synthetic_qa = load_dataset("<HF_USERNAME>/PTwikiRAG", name="SyntheticQA", split="test")
natural_qa   = load_dataset("<HF_USERNAME>/PTwikiRAG", name="NaturalQA",   split="test")

# Load the knowledge corpus
corpus = load_dataset("<HF_USERNAME>/PTwikiRAG", name="corpus", split="corpus")

Dataset Overview

Structure & Splits

Config Split Size Description
SyntheticQA test 1,006 LLM-generated questions with gold answers and supporting context citations, manually verified for correctness
NaturalQA test 1,006 Human rephrasings of the synthetic questions to reflect authentic European Portuguese syntax, idioms, and query formulations while reducing lexical overlap with the supporting context
corpus corpus 92 Reference Wikipedia documents providing the ground-truth knowledge base for retrieval

Question Types

Question Type Flag (is_multihop) Count Description
Single-Hop "FALSE" 928 Answerable from a single localized context passage
Multi-Hop "TRUE" 55 Requires synthesizing evidence across multiple passages or documents
Interchangeable "INTER" 23 Multiple passages from the source document can each independently answer the question — no reasoning chain is required; any single flagged passage in isolation is sufficient evidence to derive the correct answer

Data Schema

QA Splits (SyntheticQA and NaturalQA)

Each instance contains the following fields:

Field Type Description
q_id string Unique question identifier (e.g. "q_0042")
doc_id list of strings Source document identifier(s) (e.g. ["doc_001"]; multi-document entries have more than one element)
question string The evaluation query — LLM-generated in SyntheticQA, human-rephrased in NaturalQA
answer string Gold reference answer used for generation evaluation
context list of strings Verbatim citation(s) from the source document(s) supporting the answer
is_multihop string Complexity flag: "FALSE", "TRUE", or "INTER"
hop_level int Number of reasoning hops required (0 for single-hop)
hops list of strings Individual supporting passages for multi-hop questions (empty list for single-hop)

Example entry:

{
  "q_id": "q_0005",
  "doc_id": ["doc_001"],
  "question": "Como é que as mudanças climáticas influenciaram o furacão Helene e qual foi o resultado em termos de destruição?",
  "answer": "Aumentaram as chuvas em 10%, os ventos em 21 km/h resultando no dobro da destruição.",
  "context": [
    "Em uma avaliação científica, os pesquisadores descobriram que Helene tinha 10% mais chuva, ventos que eram 21 km/h mais intensos ...",
    "Estes \"21 km/h\" significam que a velocidade do vento aumentou 11% ..."
  ],
  "is_multihop": "TRUE",
  "hop_level": 2,
  "hops": [
    "Em uma avaliação científica, os pesquisadores descobriram que Helene tinha 10% mais chuva ...",
    "Estes \"21 km/h\" significam que a velocidade do vento aumentou 11% ..."
  ]
}

Corpus (corpus)

Field Type Description
doc_id string Unique document identifier (e.g. "doc_001")
doc_name string Original source filename
link string Source Wikipedia URL
content string Full article text in European Portuguese

Intended Use & Evaluation Tasks

  • Retrieval Evaluation: Evaluate dense/sparse retrieval and reranking systems using doc_id and passage-level context alignment. Because citations can be matched verbatim against the source documents, retrieval accuracy can be measured with metrics such as MRR@k or MAP@k using simple string containment.

  • Generation Evaluation: Benchmark RAG generation against answer using metrics such as ROUGE-L, BERTScore, or LLM-as-a-judge frameworks for faithfulness and answer relevance.

  • Lexical Bias Robustness: Compare pipeline performance on SyntheticQA versus NaturalQA to measure system sensitivity to lexical overlap and authentic pt-PT phrasing.

Dataset Statistics

  • 92 Wikipedia documents — knowledge cut-off after December 2023; topics do not overlap with WikipediaPT training data
  • 1,006 synthetic questions — generated with GPT-4, manually verified
  • 1,006 natural questions — manually rewritten by Nuno Marques

Limitations

  • The retrieval corpus is constrained to 92 documents, making it ideal for targeted, dense evaluation rather than open-web retrieval at scale.
  • Questions labeled with "INTER" have multiple interchangeable supporting passages, each independently sufficient to answer the question. Retrieval evaluation for these entries should account for the fact that any one of the flagged passages constitutes a correct retrieval.

Citation

@dataset{ptwikirag2026,
  title  = {PTwikiRAG: A European Portuguese Benchmark for Retrieval-Augmented Generation},
  author = {Nuno Marques},
  year   = {2026},
  publisher = {Hugging Face}
}
Downloads last month
34