Hostname: page-component-5db58dd55d-qmkzp Total loading time: 0 Render date: 2026-07-09T15:24:50.672Z Has data issue: false hasContentIssue false

LLM agents for interactive exploration of historical cadastre data: framework and application to Venice

Published online by Cambridge University Press:  01 October 2025

Tristan Karch*
Affiliation:
DH-Lab, EPFL , Lausanne, Switzerland
Jakhongir Saydaliev
Affiliation:
DH-Lab, EPFL , Lausanne, Switzerland
Isabella Di Lenardo
Affiliation:
DH-Lab, EPFL , Lausanne, Switzerland
Frederic Kaplan
Affiliation:
DH-Lab, EPFL , Lausanne, Switzerland
*
Corresponding author: Tristan Karch; E-mail: tristan.karch@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Cadastral data reveal key information about the historical organization of cities but are often non-standardized due to diverse formats and human annotations, complicating large-scale analysis. We explore as a case study Venice’s urban history during the critical period from 1740 to 1808, capturing the transition following the fall of the ancient Republic and the Ancien Régime. This era’s complex cadastral data, marked by its volume and lack of uniform structure, presents unique challenges that our approach adeptly navigates, enabling us to generate spatial queries that bridge past and present urban landscapes. We present a text-to-programs framework that leverages large language models to process natural language queries as executable code for analyzing historical cadastral records. Our methodology implements two complementary techniques: a SQL agent for handling structured queries about specific cadastral information, and a coding agent for complex analytical operations requiring custom data manipulation. We propose a taxonomy that classifies historical research questions based on their complexity and analytical requirements, mapping them to the most appropriate technical approach. This framework is supported by an investigation into the execution consistency of the system, alongside a qualitative analysis of the answers it produces. By ensuring interpretability and minimizing hallucination through verifiable program outputs, we demonstrate the system’s effectiveness in reconstructing past population information, property features and spatiotemporal comparisons in Venice.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. The role of LLMs in processing historical Cadastres. Processing historical records with orthographic variations and complex transcription details through SQL and coding agents for systematic data analysis.

Figure 1

Figure 2. The information structure of (a) Catastici 1740 and (b) Sommarioni 1808. The structure of the two documents is as follows for (a): (1) place name, (2) urban functions, (3) tenants, (4) owners, (5) annual income; (b): (1) cadastral parcel identifier corresponding to a number on the map, (2) owners, (3) door number, (4) urban functions.

Figure 2

Figure 3. The dual information system of the 1808 cadaster. Each parcel mention in the textual document is geolocalized on the cadastral map through the same ID code.

Figure 3

Table 1. Simple (top) and relational (bottom) browsing questions and their corresponding SQL queries

Figure 4

Table 2. Examples of prompting questions

Figure 5

Figure 4. The SQL agent. Questions are fed to the system into a prompt engineered to match with the CodeS model requirements.

Figure 6

Figure 5. The coding agent. The agent receives a question and consults different datasets to (1) extract the entities being referred to; (2) creates a plan to answer it; and (3) produces and runs a python script to generate an answer.

Figure 7

Figure 6. The Entity Extractor phase. Given a question, in this phase, we extract the most relevant rows from the datasets.

Figure 8

Table 3. Performance of CodeS-7B on browsing tasks

Figure 9

Figure 7. Execution consistency (EC) of the coding agent. (a) EC grouped by question category; (b) EC grouped by answer type.

Figure 10

Figure 8. Model comparison on prompting tasks. Performance of GPT-4 and Llama-3 70B in terms of execution consistency and correctness.

Figure 11

Table 4. Representative examples of EC-3 answers

Submit a response

Rapid Responses

No Rapid Responses have been published for this article.