Automatic Knowledge-Graph Creation from Historical Documents: The Chilean Dictatorship as a Case Study

Camila Díaz, Jocelyn Dunstan, Lorena Etcheverry, Antonia Fonck, Alejandro Grez, Domingo Mery, Juan L. Reutter, Hugo Rojas Corral

Introduction

Historical research is traditionally a "document-centric" endeavor, requiring scholars to sift through thousands of unstructured judicial records, testimonies, and news reports to reconstruct complex narratives. While Knowledge Graphs (KGs) offer a powerful alternative by representing data as a network of interconnected entities, the manual labor required to build them is often prohibitively expensive. This paper presents an automated pipeline leveraging Large Language Models (LLMs) to transform fragmented historical archives into structured, entity-centric knowledge graphs, using the Chilean dictatorship (1973–1990) as a primary case study.

The Text-to-Graph Pipeline

The researchers developed a multi-stage automated system centered on OpenAI’s GPT-4o and GPT-4o-mini models. To ensure the system remains grounded and avoids the "hallucinations" common in generative AI, the pipeline incorporates several structural constraints:

  1. Grounded Ontology: The LLM is restricted to a simplified schema consisting of four entity types (Individual, Event, Location, Organization) and seven specific relation types (e.g., IndividualIsRelatedToEvent).
  2. Zero-Shot Prompting: The system utilizes carefully engineered JSON-structured prompts. Rather than requiring extensive training data, the model receives document fragments and instructions to identify entities and their roles based on the predefined ontology.
  3. Document Splitting: To manage context limits, documents are processed in 5,000-character blocks with a 500-character overlap, ensuring that connections spanning across page breaks are preserved.
  4. Entity Resolution: Post-processing logic merges duplicate entities—such as recognizing "Pinochet" and "Augusto Pinochet" as the same individual—and removes redundant transitive relationships (e.g., if a building is linked to a city and that city is linked to a country, the direct link from building to country is pruned).

Case Study: The Lonquén Case

The pipeline was tested using data from memoriaviva.org, a digital archive maintained by the Human Rights International Project documenting crimes committed during the Chilean military dictatorship.

To evaluate the system's performance, a domain expert manually mapped a "Gold Standard" sub-graph from documents related to the Lonquén case, a landmark 1978 discovery of victims' remains. This expert graph contained 121 entities: 51 Individuals, 38 Events, 16 Locations, and 16 Organizations.

Key Insights and Results

The comparison between the AI-generated graph and the expert-built gold standard revealed a high degree of accuracy, particularly in identifying individuals, alongside nuanced differences in how humans and AI categorize information.

The Granularity Gap

A significant finding was that many discrepancies were not factual errors but differences in "resolution." For example, while a human expert might link an event to a city, the AI often extracted specific street addresses. Both are accurate, but they represent different levels of historical detail.

Performance by Entity Type

  • Individuals: The model demonstrated exceptional precision, correctly identifying 47 out of 51 people without hallucinating any non-existent individuals.
  • Organizations: The AI struggled more with organizational roles, sometimes creating "extra" entities when the same organization appeared in different contexts (e.g., a police unit acting as a detaining force versus a unit mentioned in an administrative capacity).
  • Events: While humans often break down a narrative into discrete sub-events (arrest, transport, detention), the AI tended to merge these into a single, broader "big picture" event. Consequently, the AI identified 18 events correctly but missed 20 smaller sub-events defined by the expert.

Conclusion and Future Work

This study demonstrates that LLMs can successfully automate the construction of knowledge graphs from sensitive historical archives with high precision. However, the researchers noted that the quality of the output is highly sensitive to prompt wording.

Future research will focus on developing more robust evaluation metrics that account for differences in granularity rather than simple binary matches. Additionally, the team plans to expand the pipeline to primary historical sources and create a more extensive annotated corpus to systematically test various LLM architectures.

Summary updated

BibTeX
@inproceedings{diaz2024automatic,
  author = {Camila Díaz and Jocelyn Dunstan and Lorena Etcheverry and Antonia Fonck and Alejandro Grez and Domingo Mery and Juan L. Reutter and Hugo Rojas Corral},
  title = {{Automatic Knowledge-Graph Creation from Historical Documents: The Chilean Dictatorship as a Case Study}},
  booktitle = {KBC-LM/LM-KBC@ISWC},
  year = {2024},
}
Figure