Skip to content
Open access

AI-enabled Digital Research Assistant for the Legislación Mexicana Corpus

Sep 2026 · Information Technology and Libraries · 0 citations

TL;DR

The development of LegMexIA is presented, an AI-enabled research assistant designed to extend interaction with the corpus beyond conventional retrieval methods, which integrates traditional text retrieval and retrieval-augmented generation via a coordinated architecture that distinguishes between different types of user queries.

Abstract

Large-scale historical corpora present persistent challenges for research, particularly in relation to the navigation, interpretation, and extraction of meaningful information across extensive and heterogeneous collections. The Legislación Mexicana corpus, a 42-volume compilation of legal dispositions spanning more than two centuries, exemplifies these challenges due to its size, structural complexity, and evolving terminology. Traditional approaches to working with such corpora have relied on close reading and the use of indexes. While effective within defined limits, these methods constrain the scope of inquiry and require significant time and expertise to produce meaningful results. This article presents the development of LegMexIA, an AI-enabled research assistant designed to extend interaction with the corpus beyond conventional retrieval methods. The system integrates traditional text retrieval and retrieval-augmented generation via a coordinated architecture that distinguishes between different types of user queries. Structured queries are processed using Elasticsearch and BM25 ranking, while exploratory and interpretive queries are routed through a retrieval-augmented generation workflow, where relevant text fragments are retrieved using vector similarity and assembled into contextual inputs for a language model. A key aspect of the system is the agentic decision layer that analyzes user intent and dynamically selects the appropriate processing strategy, in alignment with established reference practices in academic libraries and in a way that maintains the user’s role in verification. The article also addresses key considerations related to prompt design, technological sustainability, institutional constraints, and the implications of public deployment.

Read PDF

Similar papers

Review Open access 2026

Missing context: a review of natural language processing for archives

Archives are essential vehicles for both historical research and memory practices like genealogy. The sheer volume of documents produced via digital infrastructures, however, has posed a challenge for traditional archival processes that rely on human judgments. Some archivists have responded to this challenge by en...

Lavinia Dunagan, J. Johnston, Dallas Card · 0 citations
Conference Aug 2026

A Retrieval-Augmented Generation Framework for Legal AI Assistance in Indian Domain

Legal research is a complex and time-consuming process that requires practitioners to analyze numerous statutes, case laws, judicial precedents, and legal interpretations from multiple sources. Although Large Language Models (LLMs) have enabled conversational legal assistants, they often generate hallucinated responses...

S. S, Raja Chellan · 0 citations
Conference Open access Aug 2026

The Algorithmic Challenges and Opportunities in Tracing Meaning at Scale in Large Historical Document Collections

The capabilities of modern language models are expanding the questions that computational history can pose. In this position paper we argue for a research program organized as a progression of increasingly semantic forms of text reuse, moving from surface-level lexical matching, through cross-lingual translation mining...

F. Ginter, Mikko Tolonen, Anna Plassart et al. · 0 citations
#generative ai Book Open access Sep 2026

Travel Literature as Hypertext: Definition and Case Study of AI-enabled Interactive Explorations

Travel literature is a unique form of hypertext that extends beyond its medium into real-world physical exploration. While conventional computational methods can easily extract surface-level ontological entities (e.g., locations, dates), the deeper epistemic and judgmental subtext that guides the discovery and evaluati...

Virginia Orlando, Alessandro Adamou, Alessio Antonini · 0 citations
Open access Sep 2026

Evaluating Retrieval-Augmented Generation for personal collections: architecture, models and criteria

Preliminary results indicate that core categories of document mediation, such as relevance, completeness, citability and transparency, cannot be fully reduced to computational parameters but, instead, require continuous negotiation between automated models and disciplinary expertise.

Angelo La Gorga, Lorenzo Verna · 0 citations

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