--- pretty_name: BEIR · QuoraRetrieval license: cc-by-sa-4.0 language: - en multilinguality: - monolingual task_categories: - text-retrieval task_ids: - document-retrieval tags: - beir - mteb - retrieval - duplicate-question configs: - config_name: corpus data_files: - split: test path: corpus/test-*.parquet - config_name: qrels data_files: - split: test path: qrels/test-*.parquet - split: dev path: qrels/dev-*.parquet - config_name: queries data_files: - split: test path: queries/test-*.parquet - split: dev path: queries/dev-*.parquet --- # QuoraRetrieval — BEIR, unified schema A normalised copy of the dataset behind the `mteb` task **`QuoraRetrieval`**, one of the tasks of the [BEIR](https://github.com/beir-cellar/beir) benchmark as `mteb` defines it. Same queries, documents and relevance judgements as the benchmark evaluates — reshaped into one strict schema shared by every dataset in this collection. | | | |---|---| | Source | [`mteb/quora`](https://huggingface.co/datasets/mteb/quora/tree/e4e08e0b7dbe3c8700f0daef558ff32256715259) @ `e4e08e0b7dbe` (the revision pinned in `mteb`) | | Domain · languages | duplicate-question · eng | | Queries / documents / qrels (all splits) | 15,000 / 522,931 / 23,301 | | Qrels per query | min 1 · mean 1.567 · max 75 | | Score values | 1 ×15,675 | | Layout | `queries` · `corpus` · `qrels`, split `test`; `queries`/`qrels` also carry `dev` — one shared corpus | | Splits | `qrels`: dev, test · `queries`: dev, 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 - `dev`: dropped 10,000 queries that have no qrels in this split (mteb does the same at load time) - `test`: dropped 5,000 queries that have no qrels in this split (mteb does the same at load time) - cast `qrels.score` double -> int32 - kept 568 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-quora", "queries", split="test") corpus = load_dataset("Hyukkyu/beir-quora", "corpus", split="test") qrels = load_dataset("Hyukkyu/beir-quora", "qrels", split="test") ``` ## Cross-check against the previous layout This repo previously held the same dataset in BEIR's raw two-repo form (`Hyukkyu/beir-quora` + `Hyukkyu/beir-quora-qrels`; that layout is kept under the git tag `legacy-layout`). Before replacing it, the build was compared against it: corpus id set **identical** (522,931 documents); qrels rows per split `test` 15,675 = 15,675, `dev` 7,626 = 7,626. ## 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. 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 `None`. This card carries the upstream value as the more conservative choice.