Datasets:
File size: 4,870 Bytes
545ed55 ad69334 2bbe812 545ed55 b5bb9c9 545ed55 ad69334 2bbe812 ad69334 545ed55 ad69334 545ed55 ad69334 545ed55 6b76a11 545ed55 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | ---
pretty_name: VersionQA-Software
license: other
license_name: mixed-open-source
license_link: https://huggingface.co/datasets/VersionRAG/VersionQA-Software/blob/main/LICENSES.md
language:
- en
task_categories:
- question-answering
- text-retrieval
size_categories:
- 1K<n<10K
tags:
- rag
- retrieval-augmented-generation
- version-aware
- software-documentation
- changelogs
- benchmark
configs:
- config_name: chunks
data_files:
- split: train
path: chunks/chunks.parquet
- config_name: evaluation
data_files:
- split: test
path: evaluation/evaluation_set.parquet
---
# VersionQA-Software
Question answering over **versioned software documentation**: 869 questions against a corpus of
882 document versions drawn from open-source projects. Companion to
[VersionQA-Legal](https://huggingface.co/datasets/VersionRAG/VersionQA-Legal), which poses the same
task over amended UK legislation.
Introduced in *VersionRAG: Version-Aware Retrieval-Augmented Generation for Evolving Documents*
(Findings of EACL 2027). Code: [VersionRAG/versionrag](https://github.com/VersionRAG/versionrag).
A versioned corpus holds the same fact in mutually contradicting states. Asked about one version,
a standard RAG system retrieves all of them — they are near-duplicates and score alike — and
answers from whichever the retriever happened to rank first. Worse, some facts live in **no single
document**: "in which version was `strings.Lines` added?" is a property of the boundary between two
versions, and no amount of context length recovers it.
## Contents
| Path | What it is |
|---|---|
| `corpus/` | 882 Markdown files, one per document version, under `corpus/<kind>/<project>/` |
| `evaluation/evaluation_set.csv` | 869 question–answer pairs with a category label |
| `chunks/chunks.parquet` | the corpus pre-chunked (512 tokens, 50 overlap) with `(document, version)` provenance |
| `LICENSES.md` | per-file source URL, version and governing licence |
| `evaluation/evaluation_set.parquet` | the same questions in Parquet, used by `load_dataset` |
| `SOURCES.md` | where each project's files were retrieved from |
| `gold_audit/` | two-annotator audit of 120 gold answers: sample, labels, codebook |
### Question categories
| Category | n | Version-sensitive |
|---|---:|:---:|
| Content Retrieval | 150 | no |
| Content Retrieval Complex | 139 | no |
| Content Retrieval Version-Specific | 143 | **yes** |
| Version Listing & Inquiry | 145 | **yes** |
| Change Retrieval (Explicit) | 149 | **yes** |
| Change Retrieval (Implicit) | 143 | **yes** |
| **Total** | **869** | |
*Explicit* change facts are stated somewhere in the corpus, typically in a changelog. *Implicit*
ones are not: they exist only as the difference between two consecutive versions and must be
materialised at index time.
## Usage
```python
from datasets import load_dataset
qa = load_dataset("VersionRAG/VersionQA-Software", "evaluation", split="test")
chunks = load_dataset("VersionRAG/VersionQA-Software", "chunks", split="train")
```
The corpus itself is plain Markdown; clone the repo to index it yourself.
## How the questions were built
Questions are generated per category from the indexed corpus and validated against it during
generation: items in the structure-dependent categories are re-checked against the index, ambiguous
ones dropped and wrong golds corrected. Implicit-change items are additionally verified by hand.
Gold answers are model-generated and corpus-validated rather than authored by domain experts. A
two-annotator audit of a stratified sample of 120 released golds (60 software, 60 legal) found two
wrong golds, both software implicit-change items with a version-ordering error: 1.7% [0.5–5.9]
overall, 3.3% on software. Two further golds (one per domain) are partly correct. Reported
accuracies use the original golds. Accuracy differences narrower than that margin should not be
read as established. The audit sample, both annotators' labels and the codebook are in
`gold_audit/`; see the Gold-Answer Audit appendix of the paper.
## Licence
The corpus aggregates documentation under several open-source and open-content licences
(BSD-3-Clause, MIT, Apache-2.0, the PSF Licence, CC BY 4.0, the PostgreSQL Licence, and GPLv2
for Wireshark). Per-file provenance and the governing licence are in `LICENSES.md`. The questions,
gold answers and chunking are released under CC BY 4.0.
## Citation
```bibtex
@inproceedings{stuhlmann2027versionrag,
title = {{VersionRAG}: Version-Aware Retrieval-Augmented Generation for Evolving Documents},
author = {Stuhlmann, Linus and Mathitharan, Kajaluxan and Huwiler, Daniel and
Stockinger, Kurt and F{\"u}rst, Jonathan},
booktitle = {Findings of the Association for Computational Linguistics: EACL 2027},
year = {2027}
}
```
|