Introduction
Large Language Models (LLMs) have transformed the landscape of automated question-answering. However, their performance often falters when applied to "knowledge-intensive" tasks within niche or historical domains where training data is scarce. Retrieval-Augmented Generation (RAG) offers a solution by fetching relevant documents to "ground" the model's responses. While RAG has been extensively studied for English and Simplified Chinese web data, its application to Traditional Chinese historical archives remains largely unexplored.
Researchers from National Taiwan University have addressed this gap with the first systematic study of RAG applied to Taiwanese historical archives. By introducing two new datasets—the 17th-century Fort Zeelandia diaries and the 20th-century Taiwan Provincial Council Gazette (TPCG)—they investigate how metadata integration can overcome the unique challenges of archival research.
The Challenge of Historical Archives
Historical archives in Traditional Chinese present three primary "low-resource" hurdles:
- Linguistic Drift: Significant differences between modern query language and archaic archival terminology.
- Temporal Complexity: Events are deeply time-sensitive, often requiring multi-hop reasoning to connect information across disparate documents.
- Unstructured Data: The messy nature of archival records complicates standard retrieval methods.
Methodology: Metadata-Augmented Retrieval
The study evaluates a standard RAG pipeline consisting of input, retrieval, generation, and evaluation. A core focus of the research is the comparison of different metadata integration strategies to enhance retrieval accuracy.
The researchers compared several approaches:
- Baseline: Retrieval using raw document text only.
- Metadata-Augmented Retrieval: Appending metadata (e.g., dates, roles) to document chunks before embedding them.
- Metadata-Only Reranking: Re-ordering search results based solely on metadata similarity.
- Metadata-Augmented Reranking: Combining text and metadata during the reranking phase.
For generation, the study utilized GPT-4o, while Gemini-1.5-Pro served as an "LLM-as-a-judge" to evaluate the outputs based on groundedness, relevance, and hallucination.
Datasets and Evaluation
Two distinct datasets were developed for this study:
- Fort Zeelandia Query Set: Based on Dutch colonial diaries, featuring 5,443 passages and 173 expert queries categorized by complexity (single-hop vs. multi-hop).
- Taiwan Provincial Council Gazette (TPCG): Comprising over 228,000 official meeting records from the 20th century, with 56 high-quality query pairs.
Key Insights
The Power of Early Integration
The most significant finding was that Metadata-Augmented Retrieval (early integration) outperformed other strategies. By embedding metadata directly with the document text at the start of the process, the system captured contextual nuances that were otherwise lost in purely text-based searches. In the TPCG dataset, this approach improved the groundedness score to 2.14, compared to 0.73 for the text-only baseline. Notably, "Document/Content" metadata (titles, abstracts) was more effective than "Time/Event" or "Person/Organization" metadata alone.
The Multi-Hop and Temporal Bottlenecks
Retrieval performance dropped sharply for complex queries. For the Fort Zeelandia set, hybrid retrieval achieved a Recall@5 of 0.62 for single-hop queries, but this fell to 0.27 for multi-hop queries. Furthermore, queries involving temporal reasoning proved the most difficult. Even when the correct documents were retrieved, models struggled to process chronological sequences, leading to higher hallucination rates.
Persistent Hallucinations
Interestingly, hallucinations remained a challenge even in "Oracle" tests where the LLM was provided with the exact correct passage. This suggests that the model's internal "priors" or difficulties with archaic phrasing can sometimes override the provided evidence, a critical consideration for humanities research.
Conclusion
This preliminary study demonstrates that while RAG is a promising tool for historical archives, standard pipelines require modification. Integrating document metadata early in the retrieval process is essential for accuracy. Future work must focus on improving temporal reasoning and mitigating hallucinations to make these systems truly reliable for historians and researchers.
Summary updated