Skip to content

VersionRAG: Version-Aware Retrieval-Augmented Generation for Evolving Documents

Linus Stuhlmann Kajaluxan Mathitharan Daniel Huwiler Kurt Stockinger Jonathan F\"urst
Nov 2026
Artificial Intelligence Natural Language Processing

Abstract

Versioned corpora hold the same fact in mutually contradicting states, and the version identifier contributes only a weak signal for embedding similarity to separate them. Therefore, a Retrieval-Augmented Generation (RAG) system, when asked about a single version, usually retrieves all versions with similar scores. The result is that the answer can be arbitrary, rather than the correct one. To address this problem, we present VersionRAG, which models a text corpus as an explicit version lineage and routes queries to the relevant versions by intent. We evaluate our approach on two new datasets: VersionQA-Software (869 questions, 882 document versions) and VersionQA-Legal (547 questions, 355 versions of amended UK legislation). VersionRAG is the most accurate system in both domains across four LLMs and four baselines, reaching up to 94.4% accuracy in the question-answering task. Our ablations show that the version lineage alone contributes +21 to +47 points over flat retrieval. A change layer built on it adds a further +12 to +15 points on explicit-change and +21 to +36 on implicit-change questions. We find that indexing the changes in the documents is critical and outperforms both generic entity graphs and temporal entity graphs.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#computer vision Open access Jul 2017

What happens when software developers are (un)happy

Consequences of happiness and unhappiness that are beneficial and detrimental for developers' mental well-being, the software development process, and the produced artifacts are found.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 236 citations · ⚡13
#computer vision Open access Oct 2004

Mobile-D: an agile approach for mobile application development

The Mobile-D approach is briefly outlined here and the experiences gained from four case studies are discussed, which helped develop an agile development approach for mobile application development.

P. Abrahamsson, Antti Hanhineva, H. Hulkko et al. · 225 citations · ⚡18
#computer vision Open access Mar 2014

Happy software developers solve problems better: psychological measurements in empirical software engineering

A study with 42 participants investigates the relationship between the affective states, creativity, and analytical problem-solving skills of software developers and offers support for the claim that happy developers are indeed better problem solvers in terms of their analytical abilities.

D. Graziotin, Xiaofeng Wang, P. Abrahamsson · 216 citations · ⚡13

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.