Datasets:
Tasks:
Text Retrieval
Modalities:
Text
Formats:
parquet
Sub-tasks:
document-retrieval
Languages:
English
Size:
10K - 100K
License:
|
Download README.md from Hyukkyu/beir-cqadupstack-programmers: direct link, hf CLI and curl.
- Browser
- Download file 3.49 kB
-
https://huggingface.co/datasets/Hyukkyu/beir-cqadupstack-programmers/resolve/main/README.md
- Command line
-
hf download hf://datasets/Hyukkyu/beir-cqadupstack-programmers/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Hyukkyu/beir-cqadupstack-programmers/resolve/main/README.md
3.49 kB
| pretty_name: BEIR · CQADupstackProgrammersRetrieval | |
| license: cc-by-sa-4.0 | |
| language: | |
| - en | |
| multilinguality: | |
| - monolingual | |
| task_categories: | |
| - text-retrieval | |
| task_ids: | |
| - document-retrieval | |
| tags: | |
| - beir | |
| - mteb | |
| - retrieval | |
| - stackexchange | |
| configs: | |
| - config_name: corpus | |
| data_files: | |
| - split: test | |
| path: corpus/test-*.parquet | |
| - config_name: qrels | |
| data_files: | |
| - split: test | |
| path: qrels/test-*.parquet | |
| - config_name: queries | |
| data_files: | |
| - split: test | |
| path: queries/test-*.parquet | |
| # CQADupstackProgrammersRetrieval — BEIR, unified schema | |
| A normalised copy of the dataset behind the `mteb` task **`CQADupstackProgrammersRetrieval`**, one of the tasks of the [BEIR](https://github.com/beir-cellar/beir) benchmark as `mteb` defines it (a member of the aggregate task `CQADupstackRetrieval`). Same queries, documents | |
| and relevance judgements as the benchmark evaluates — reshaped into one strict schema shared by every dataset | |
| in this collection. | |
| | | | | |
| |---|---| | |
| | Source | [`mteb/cqadupstack-programmers`](https://huggingface.co/datasets/mteb/cqadupstack-programmers/tree/6184bc1440d2dbc7612be22b50686b8826d22b32) @ `6184bc1440d2` (the revision pinned in `mteb`) | | |
| | Domain · languages | stackexchange · eng | | |
| | Queries / documents / qrels | 876 / 32,176 / 1,675 | | |
| | Qrels per query | min 1 · mean 1.912 · max 149 | | |
| | Score values | 1 ×1,675 | | |
| | Layout | `queries` · `corpus` · `qrels`, split `test` | | |
| | License | `cc-by-sa-4.0` | | |
| ## Schema | |
| | config | columns | rules | | |
| |---|---|---| | |
| | `queries` | `id: string`, `text: string` | ids unique and non-empty; every query has ≥ 1 qrel | | |
| | `corpus` | `id: string`, `title: string`, `text: string` | `title` is always present (`""` when the source has none) | | |
| | `qrels` | `query-id: string`, `corpus-id: string`, `score: int32` | referential integrity to both tables; no duplicate pairs; no floats | | |
| Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is enforced by a validator | |
| before publishing; `provenance.json` records the source file hashes, what changed, and the output file hashes. | |
| ## What changed from the source | |
| - **byte-preserved** all text — no whitespace, newline, or control-character normalisation | |
| - cast `qrels.score` double -> int32 | |
| - kept 3 documents whose text is identical to another document's — a property of the source; note that models embed such documents identically and retrieval ties among them are broken by corpus order | |
| - renamed `_id` → `id` | |
| - renamed source splits (`queries`←`queries/queries`, `corpus`←`corpus/corpus`) to `test` | |
| ## Load it | |
| ```python | |
| from datasets import load_dataset | |
| queries = load_dataset("Hyukkyu/beir-cqadupstack-programmers", "queries", split="test") | |
| corpus = load_dataset("Hyukkyu/beir-cqadupstack-programmers", "corpus", split="test") | |
| qrels = load_dataset("Hyukkyu/beir-cqadupstack-programmers", "qrels", split="test") | |
| ``` | |
| ## License and attribution | |
| The data is redistributed under the source's terms — `cc-by-sa-4.0`. All credit belongs to the | |
| original authors; see the source repository and the references in `mteb`'s task metadata (http://nlp.cis.unimelb.edu.au/resources/cqadupstack/). | |
| This repository is an independent repackaging and is not affiliated with the RTEB or MTEB maintainers. | |
| > **License discrepancy.** The upstream dataset card declares `cc-by-sa-4.0` while `mteb`'s `TaskMetadata` declares `apache-2.0`. This card carries the upstream value as the more conservative choice. | |