query-id stringlengths 4 4 | corpus-id int64 1.04M 22.4M | score int64 1 1 |
|---|---|---|
Q001 | 22,361,639 | 1 |
Q002 | 20,656,641 | 1 |
Q003 | 22,333,979 | 1 |
Q004 | 22,322,238 | 1 |
Q005 | 22,321,006 | 1 |
Q007 | 19,531,140 | 1 |
Q008 | 22,332,609 | 1 |
Q009 | 22,357,561 | 1 |
Q010 | 22,342,725 | 1 |
Q011 | 19,536,985 | 1 |
Q012 | 21,958,457 | 1 |
Q014 | 22,365,121 | 1 |
Q015 | 22,363,597 | 1 |
Q016 | 22,326,887 | 1 |
Q017 | 22,323,208 | 1 |
Q018 | 19,548,206 | 1 |
Q020 | 22,323,356 | 1 |
Q021 | 22,323,617 | 1 |
Q022 | 22,317,900 | 1 |
Q023 | 22,340,171 | 1 |
Q024 | 22,361,404 | 1 |
Q025 | 22,340,601 | 1 |
Q026 | 22,326,799 | 1 |
Q028 | 22,362,487 | 1 |
Q029 | 22,359,088 | 1 |
Q030 | 22,361,316 | 1 |
Q031 | 22,145,674 | 1 |
Q032 | 22,323,893 | 1 |
Q033 | 19,541,218 | 1 |
Q034 | 19,547,844 | 1 |
Q035 | 19,541,103 | 1 |
Q036 | 22,088,468 | 1 |
Q037 | 19,540,536 | 1 |
Q038 | 22,359,634 | 1 |
Q039 | 22,146,871 | 1 |
Q040 | 22,342,202 | 1 |
Q041 | 22,365,650 | 1 |
Q043 | 22,330,830 | 1 |
Q044 | 20,656,492 | 1 |
Q045 | 19,540,840 | 1 |
Q046 | 19,578,198 | 1 |
Q048 | 22,146,871 | 1 |
Q049 | 22,319,099 | 1 |
Q050 | 22,354,867 | 1 |
Q051 | 20,584,523 | 1 |
Q052 | 20,655,799 | 1 |
Q053 | 20,516,469 | 1 |
Q054 | 21,607,631 | 1 |
Q055 | 21,607,415 | 1 |
Q056 | 19,531,088 | 1 |
Q057 | 22,145,389 | 1 |
Q058 | 20,373,661 | 1 |
Q059 | 20,509,521 | 1 |
Q060 | 20,545,132 | 1 |
Q061 | 20,514,312 | 1 |
Q062 | 21,620,153 | 1 |
Q063 | 1,041,389 | 1 |
Q064 | 21,998,894 | 1 |
Q065 | 22,079,461 | 1 |
Q066 | 22,000,776 | 1 |
Q067 | 22,060,085 | 1 |
Q068 | 21,611,194 | 1 |
Q069 | 22,149,318 | 1 |
Q070 | 19,545,824 | 1 |
Q071 | 22,028,871 | 1 |
Q072 | 17,401,408 | 1 |
Q073 | 20,504,782 | 1 |
Q074 | 20,544,117 | 1 |
Q075 | 20,539,901 | 1 |
Q076 | 19,592,658 | 1 |
Q077 | 20,533,209 | 1 |
Q079 | 19,583,464 | 1 |
Q081 | 20,539,255 | 1 |
Q082 | 22,046,287 | 1 |
Q083 | 20,544,045 | 1 |
Q084 | 20,544,245 | 1 |
Q085 | 21,607,311 | 1 |
Q086 | 22,087,874 | 1 |
Q087 | 22,094,862 | 1 |
Q088 | 20,546,672 | 1 |
Q089 | 22,087,614 | 1 |
Q090 | 22,079,381 | 1 |
Q091 | 20,538,890 | 1 |
Q092 | 22,039,048 | 1 |
Q001 | 22,361,639 | 1 |
Q002 | 20,656,641 | 1 |
Q003 | 22,333,979 | 1 |
Q004 | 22,322,238 | 1 |
Q005 | 22,321,006 | 1 |
Q007 | 19,531,140 | 1 |
Q008 | 22,332,609 | 1 |
Q009 | 22,357,561 | 1 |
Q010 | 22,342,725 | 1 |
Q011 | 19,536,985 | 1 |
Q012 | 21,958,457 | 1 |
Q014 | 22,365,121 | 1 |
Q015 | 22,363,597 | 1 |
Q016 | 22,326,887 | 1 |
Q017 | 22,323,208 | 1 |
Q018 | 19,548,206 | 1 |
NLS-CH-Multimodal: A Large-Scale Multi-Modal Cultural Heritage Corpus
Dataset Summary
NLS-CH-Multimodal is a large-scale multimodal corpus derived from the National Library of Scotland (NLS) digital collections, comprising over 512,000 files and exceeding 1 TB in size. The dataset is designed to support Information Retrieval (IR), Retrieval-Augmented Generation (RAG), and analysis of large language model (LLM) behaviour on historical data.
The corpus integrates multiple aligned modalities, including OCR/HTR-derived text, high-resolution document images, page-level layout annotations (ALTO XML), and structured metadata in unified CSV/JSON formats. It spans over five centuries (15thβ21st century) and covers domains such as social history, political records, and cartographic collections.
Unlike the original NLS digital archiveβdesigned primarily for human browsingβthis dataset restructures materials into machine-readable, IR-ready representations. In addition, it includes a reproducible evaluation benchmark consisting of queries and relevance judgements, enabling systematic experimentation that is not supported by the original archive.
Key Contributions
- A large-scale multimodal cultural heritage corpus (>512K files, >1TB)
- Unified representation of text, image, layout (ALTO XML), and metadata
- IR- and RAG-ready structure enabling direct use in retrieval pipelines
- A human-reviewed evaluation benchmark with queries and relevance judgements
- A machine-readable transformation of heterogeneous archival collections
Dataset Structure
The corpus is organised into two primary directory trees:
data/collections/
Each NLS source collection has its own subdirectory organised by temporal period, containing:
doc_id.txtβ full OCR/HTR transcriptdoc_id.pdfβ composite scanned PDFcollection_name.csvβ structured metadata (title, author, year, URL, etc.)description.txtβ collection-level summary
data/collections/
Contains three thematic E-Resources sub-collections:
Africa_And_New_Imperialism/β Colonial-era records and court documentsIndiaraj/β India-related archival materialsSlavery/β Slavery and abolition records
Documents are organised as:
year/document_title/doc_id.txt and .pdf
Documents with missing year metadata are stored under Unknown/.
Data Statistics
The corpus exceeds one terabyte in size and comprises over 512,000 files, spanning the 15th to the 21st century. It includes more than 42,000 OCR-derived plain text documents, 215,567 high-resolution document images, 215,567 page-level OCR representations encoded in ALTO XML, and over 11,000 CSV document-level metadata files, alongside rich metadata expressed in CSV and METS formats. The collection covers broad thematic domains including social history, political records, and extensive cartographic material.
Temporal range: 15th β 21st century Primary languages: English, Scottish Gaelic, Latin, French, Dutch, Portuguese Thematic domains: Social history, political records, cartographic material
Intended Use and Supported Tasks
π Information Retrieval
- Benchmarking sparse and dense retrieval on historical corpora
- Cross-era and cross-collection retrieval experiments
π€ Retrieval-Augmented Generation (RAG)
- End-to-end evaluation of RAG pipelines
- Retrieval grounding for historically complex queries
π LLM Evaluation
- Robustness to OCR noise and archaic language
- Behaviour on multilingual and historically situated inputs
ποΈ Digital Humanities
- Longitudinal language analysis
- Named entity recognition and linking
- Document layout and structure analysis
Who Can Use This Dataset?
| User Group | Use Case |
|---|---|
| IR researchers | Benchmarking retrieval models on long-tail, historical queries |
| NLP / LLM researchers | Evaluating models on archaic language and OCR-noisy text |
| RAG engineers | Testing retrieval pipelines over heterogeneous multimodal corpora |
| Digital humanities scholars | Longitudinal and cross-cultural document analysis |
| Cultural heritage institutions | Reproducible baseline for heritage digitisation projects |
Evaluation Setup
A reproducible evaluation benchmark is included for IR and RAG experiments.
Query Sets
| File | Description | Count |
|---|---|---|
evaluation/queries.jsonl |
Original factoid query set (Q001βQ044) | 44 |
evaluation/queries_expanded.jsonl |
Expanded factoid query set (Q051+) | 40 |
evaluation/queries_all_full.json |
Original queries with expected answers and OCR quality scores | 44 |
evaluation/queries_expanded_full.json |
Expanded queries with expected answers | 40 |
| Total | 84 queries |
Relevance Judgements (Qrels)
| File | Description | Count |
|---|---|---|
evaluation/qrels.tsv |
Original relevance judgements | 44 |
evaluation/qrels_expanded.tsv |
Expanded relevance judgements | 40 |
evaluation/qrels_verified.tsv |
Human-verified relevance judgements | 44 |
All qrels follow the standard TREC format: query-id corpus-id score
Query Schema
Each query record in the .jsonl files follows this structure:
{
"_id": "Q001",
"text": "Query text here",
"metadata": {
"type": "factoid",
"difficulty": "easy | medium | hard",
"status": "verified"
}
}
The full .json files additionally include expected answers and OCR quality metadata:
{
"query_id": "Q001",
"query": "Query text here",
"query_type": "factoid",
"expected_answer": "Ground truth answer",
"difficulty": "medium",
"doc_id": "22361639",
"ocr_quality_tier": "high",
"ocr_quality": 0.985,
"verified_by": ["Jakub", "yash"],
"status": "verified"
}
Data Collection Methodology
Data was acquired from three NLS platforms:
- NLS Digital Gallery β OCR transcripts derived from XML/HTM streams
- Licensed E-Resources β JWT-authenticated downloads via Burp Suite and Postman analysis
- NLS Data Foundry β Bulk text, image, layout (ALTO XML), spatial data (GeoJSON, KML)
Collection was performed via automated pipelines combining metadata extraction, document retrieval, and validation.
This approach was necessary due to the absence of a unified bulk-access API across all collections.
Known Gaps and Limitations
- Post-2000 coverage is sparse β the corpus is primarily pre-21st century
- Single relevance per query β does not yet support multi-document relevance
- OCR noise: historical spelling and scanning artefacts preserved.
- Sensitive content: Period-specific language reflecting historical social norms is present; standard LLM safety filters may flag this content
Citation
If you use this dataset, please cite:
@dataset{nls_ch_multimodal_2025,
author = {Dhakade, Yash and {NeuraSearch Laboratory}},
title = {NLS-CH-Multimodal: A Large-Scale Multi-Modal Cultural
Heritage Corpus for Information Retrieval},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/NeuraSearchLab/NLS-CH-Multimodal}
}
Licence and Attribution
This dataset is derived from materials provided by the National Library of Scotland (NLS) and associated third-party sources.
A sample version of the dataset is publicly available via This HF repository, while the full dataset (exceeding 1 TB) is available upon reasonable request for research purposes. The dataset structure, metadata, and evaluation benchmark (including queries and relevance judgements) are released under the Creative Commons Attribution 4.0 (CC BY 4.0) license. However, the underlying source materials (documents, images, and OCR transcripts) remain subject to the original licensing terms and usage policies of the NLS and any third-party providers.
Users are responsible for complying with the applicable terms of use for each underlying collection and for providing appropriate attribution to the National Library of Scotland and relevant sources.
- Downloads last month
- 25