VersionQA-Software / README.md
jofu's picture
Dataset card: list CC BY 4.0 only
6b76a11 verified
|
Raw History Blame Contribute Delete
4.87 kB
metadata
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, 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.

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

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

@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}
}