Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

CQADupStack Webmasters (BEIR) — duplicate-question retrieval

Dataset description

CQADupStack is a benchmark for community question answering (cQA) built from publicly available Stack Exchange content. It was introduced by Hoogeveen, Verspoor, and Baldwin at ADCS 2015 as a resource for studying duplicate questions: threads are organized so that systems can be trained and evaluated on finding prior questions that match (or semantically duplicate) a newly asked question—central to reducing fragmentation and improving search on Q&A sites.

The original release aggregates material across twelve Stack Exchange forums. The Webmasters slice is drawn from Webmasters Stack Exchange, a community focused on running and growing websites: SEO, hosting and domains, analytics, redirects, CMS configuration, structured data, and related topics. Annotations link questions marked as duplicates in the platform’s moderation workflow, with predefined splits so results stay comparable across papers.

BEIR (Benchmarking IR) repackaged CQADupStack—along with many other public corpora—as a standard retrieval benchmark for zero-shot evaluation of lexical, sparse, dense, and hybrid retrievers across heterogeneous tasks. In the BEIR formulation, CQADupStack (Webmasters) is a duplicate-question retrieval setting: the “documents” are questions (or question-like posts) from the Webmasters corpus, and the task is to rank the true duplicate(s) for each query highly.

This repository (orgrctera/beir_cqadupstack_webmasters) exposes the benchmark in Parquet form for retrieval evaluation pipelines. Each row is one query with relevance judgments (expected_output) pointing at corpus document identifiers, aligned with the BEIR CQADupStack Webmasters test split (exported from Langfuse for CTERA-style evaluation).

Scale (this Hub snapshot)

The published split in this dataset is:

Split Rows
test 506

The underlying corpus in BEIR is large (on the order of many thousands of short “documents” for this forum—typical BEIR CQADupStack sub-corpus scale). Full retrieval evaluation requires indexing that corpus and scoring queries against it; this card describes the query + qrels side packaged as evaluation rows.

Task: retrieval (CQADupStack Webmasters)

The task is information retrieval specialized to duplicate question finding on Webmasters Stack Exchange:

  1. Input: a natural-language question (the query)—as a user would post on the forum.
  2. Output: a ranked list of document IDs from the CQADupStack Webmasters corpus (or scores over the full collection), such that relevant IDs—those in the official qrels—appear at the top.

Standard IR metrics apply (e.g., nDCG@k, Recall@k, MRR), using the provided qrels as ground truth. Some queries may have many duplicate targets in the judgment set (reflecting how duplicates were linked on Stack Exchange).

Note: Align expected_output document IDs with the same BEIR CQADupStack Webmasters corpus you use for indexing (same ID space as the upstream BEIR release).

Data format (this repository)

Each record includes:

Field Description
id UUID for this example row.
input The query text (Webmasters Stack Exchange–style question).
expected_output JSON string: list of objects {"id": "<corpus-doc-id>", "score": <relevance>}. Scores follow the BEIR qrels convention (typically 1 for relevant in binary settings). A query may have one or many relevant documents.
metadata.query_id Original BEIR query identifier (string).
metadata.split Split name; in this dataset, test.

Example 1 (two relevant documents)

{
  "id": "2051816f-1c0f-4665-a65b-bab0242adee3",
  "input": "What are the best ways to start driving traffic to a new website?",
  "expected_output": "[{\"id\": \"9183\", \"score\": 1}, {\"id\": \"6855\", \"score\": 1}]",
  "metadata.query_id": "3242",
  "metadata.split": "test"
}

Example 2 (four relevant documents)

{
  "id": "fb347d25-e680-44de-8f60-e6793b0def93",
  "input": "What to do with discontinued product pages?",
  "expected_output": "[{\"id\": \"5392\", \"score\": 1}, {\"id\": \"56913\", \"score\": 1}, {\"id\": \"50294\", \"score\": 1}, {\"id\": \"22627\", \"score\": 1}]",
  "metadata.query_id": "53626",
  "metadata.split": "test"
}

References

CQADupStack (original dataset)

Doris Hoogeveen, Karin M. Verspoor, Timothy Baldwin
CQADupStack: A Benchmark Data Set for Community Question-Answering Research
Proceedings of the 20th Australasian Document Computing Symposium (ADCS 2015), Parramatta, NSW, Australia.

The paper motivates duplicate-question tasks on real Stack Exchange communities and describes the construction of CQADupStack from Stack Exchange data dumps, including duplicate links and evaluation protocols suited to retrieval and classification experiments.

BEIR benchmark (CQADupStack as one of 18 datasets)

Nandan Thakur, Nils Reimers, Andreas Rücklé, Abhishek Srivastava, Iryna Gurevych
BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models
NeurIPS 2021 (Datasets and Benchmarks Track).

Abstract (from arXiv): “Existing neural information retrieval (IR) models have often been studied in homogeneous and narrow settings, which has considerably limited insights into their out-of-distribution (OOD) generalization capabilities. To address this, and to facilitate researchers to broadly evaluate the effectiveness of their models, we introduce Benchmarking-IR (BEIR), a robust and heterogeneous evaluation benchmark for information retrieval. We leverage a careful selection of 18 publicly available datasets from diverse text retrieval tasks and domains and evaluate 10 state-of-the-art retrieval systems including lexical, sparse, dense, late-interaction and re-ranking architectures on the BEIR benchmark. Our results show BM25 is a robust baseline and re-ranking and late-interaction-based models on average achieve the best zero-shot performances, however, at high computational costs. In contrast, dense and sparse-retrieval models are computationally more efficient but often underperform other approaches, highlighting the considerable room for improvement in their generalization capabilities.”

Related resources

  • Raw BEIR-style mirrors on Hugging Face (corpus / queries / qrels), e.g. datasets under the BeIR organization naming cqadupstack*, for JSONL + TSV packaging consistent with the upstream benchmark.
  • MTEB lists CQADupStack Webmasters for embedding evaluation—useful for cross-checking task definitions: MTEB — cqadupstack-webmasters.

Citation

If you use CQADupStack, cite the ADCS 2015 paper above. If you use the BEIR packaging or evaluation protocol, cite the BEIR NeurIPS 2021 paper. If you use this Parquet export, cite both the original data sources and BEIR as appropriate for your experiment.

License

Stack Exchange content is typically distributed under Creative Commons terms; BEIR and downstream cards commonly reference cc-by-sa-4.0. Verify against your corpus snapshot and upstream Stack Exchange / BEIR terms if you need strict compliance.


Dataset card maintained for the orgrctera/beir_cqadupstack_webmasters Hub repository.

Downloads last month
20

Paper for orgrctera/beir_cqadupstack_webmasters