AI
New AI Approach Retrieves Correct Versions of Evolving Documents
VersionRAG addresses a key limitation in retrieval systems by explicitly tracking how documents change over time and directing queries to the right version.
Traditional retrieval-augmented generation (RAG) systems struggle with documents that exist in multiple versions with contradictory information. When searching a versioned corpus—such as software documentation or amended legislation—these systems often retrieve all similar versions indiscriminately, leading to arbitrary or incorrect answers rather than the information relevant to a specific point in time.
The Core Problem#
The challenge arises because version identifiers provide weak signals for distinguishing between versions during embedding-based retrieval. A system asked about a particular version may return results from multiple editions with similar confidence scores, making it impossible to reliably surface the correct answer.
VersionRAG's Solution#
Researchers have developed VersionRAG, a new approach that models text collections as explicit version lineages and routes queries intelligently to the most relevant versions based on intent. Rather than treating versions as isolated documents, the system builds a structured understanding of how documents evolve over time.
The team evaluated the approach on two new benchmark datasets:
- VersionQA-Software: 869 questions paired with 882 software documentation versions
- VersionQA-Legal: 547 questions paired with 355 versions of amended UK legislation
Across both domains and four different language models, VersionRAG achieved up to 94.4% accuracy—outperforming four baseline systems.
Key Components#
The ablation studies revealed that the version lineage structure alone delivers substantial improvements, contributing 21–47 percentage points over flat retrieval. A change layer built on top of the lineage adds another 12–15 points for questions involving explicit document changes, and 21–36 points for implicit-change questions. Critically, indexing the actual changes in documents proved more effective than generic entity graphs or temporal entity graphs.
Research Details#
The paper was submitted to arXiv in October 2025. For the full study, see the abstract on arXiv.

