DOI: 10.17617/3.1gn3ol
title: Drawings Gemma-Enriched Dataset. Fotothek - Bibliotheca Hertziana

description: &lt;h1 class="title"&gt;Zeichnungen Dataset - AI-Enhanced Art Historical
Descriptions&lt;/h1&gt;
&lt;/header&gt;
&lt;nav id="TOC" role="doc-toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a
href="#zeichnungen-dataset---ai-enhanced-art-historical-descriptions-with-iconography"
id="toc-zeichnungen-dataset---ai-enhanced-art-historical-descriptions-with-iconography"&gt;Zeichnungen
Dataset - AI-Enhanced Art Historical Descriptions with Iconography&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#dataset-overview" id="toc-dataset-overview"&gt;Dataset
Overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#processing-pipeline"
id="toc-processing-pipeline"&gt;Processing Pipeline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#ai-prompts-used" id="toc-ai-prompts-used"&gt;AI Prompts
Used&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#kisski-cluster-resources"
id="toc-kisski-cluster-resources"&gt;KISSKI Cluster Resources&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#output-structure" id="toc-output-structure"&gt;Output
Structure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#kisski-documentation" id="toc-kisski-documentation"&gt;KISSKI
Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#iconclass-resources"
id="toc-iconclass-resources"&gt;ICONCLASS Resources&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#data-usage-citation" id="toc-data-usage-citation"&gt;Data
Usage &amp; Citation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#quality-notes" id="toc-quality-notes"&gt;Quality
Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;
&lt;h1
id="zeichnungen-dataset---ai-enhanced-art-historical-descriptions-with-iconography"&gt;Zeichnungen
Dataset - AI-Enhanced Art Historical Descriptions with Iconography&lt;/h1&gt;
&lt;p&gt;This dataset contains 224x224 images and relative metadata extracted
from the MIDAS XML of the Catalogue of the Photographic Collection of
the Bibliotheca Hertziana enriched with AI-generated prose texts and
iconographic analysis. The dataset is limited to photographs of objects
classified as drawing (Zeichnungen), and has been processed using &lt;a
href="https://huggingface.co/google/gemma-2-9b-it"&gt;Google Gemma 2 9B
Instruct&lt;/a&gt; large language model on the &lt;a
href="https://docs.hpc.gwdg.de/"&gt;KISSKI HPC cluster&lt;/a&gt; of the GWDG.
Scripts to process the data on KISSKI have been elaborated with Claude
Code in Virtual Studio Code.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="dataset-overview"&gt;Dataset Overview&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Source Data:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Original dataset: &lt;code&gt;zeichnungen.tsv&lt;/code&gt; (30,000 rows / 29,999
data rows)&lt;/li&gt;
&lt;li&gt;Extracted from: MIDAS XML format (&lt;code&gt;combined.xml&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Source institution: &lt;a href="https://www.biblhertz.it/"&gt;Bibliotheca
Hertziana - Max Planck Institute for Art History&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Image repository: &lt;a href="https://fotothek.biblhertz.it/"&gt;Fotothek
der Bibliotheca Hertziana&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Enriched metadata:&lt;/strong&gt; TSV files with AI-generated
German and English descriptions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Iconographic analysis:&lt;/strong&gt; Descriptions based on
ICONCLASS classification&lt;/li&gt;
&lt;li&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;224x224 images downloaded from IIIF Image Api of the
Photographic Collection&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h2 id="processing-pipeline"&gt;Processing Pipeline&lt;/h2&gt;
&lt;h3 id="data-extraction"&gt;1. Data Extraction&lt;/h3&gt;
&lt;p&gt;Source data was extracted with zeichnungen.xql from &lt;a
href="https://edmond.mpg.de/dataset.xhtml?persistentId=doi:10.17617/3.8GPSDJ"&gt;MIDAS
XML format combined.xml&lt;/a&gt; containing structured art historical
metadata including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Object titles and descriptions (&lt;code&gt;textobj&lt;/code&gt;,
&lt;code&gt;textfoto&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Artist information (&lt;code&gt;aob30&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Location data (&lt;code&gt;aob26&lt;/code&gt;, &lt;code&gt;aob28&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ICONCLASS codes&lt;/strong&gt; (&lt;code&gt;a5500&lt;/code&gt;) - Standardized
iconographic classification&lt;/li&gt;
&lt;li&gt;Dating and provenance&lt;/li&gt;
&lt;li&gt;Image references (&lt;code&gt;a8540&lt;/code&gt;) The set was limited to 30000
entries.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="iconclass-cache-preparation"&gt;2. ICONCLASS Cache Preparation&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;ICONCLASS System:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Source:&lt;/strong&gt; &lt;a
href="https://iconclass.org/"&gt;ICONCLASS.org&lt;/a&gt; - Multilingual
classification system for cultural content&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt;
https://github.com/iconclass/data&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="images-download"&gt;Images Download&lt;/h4&gt;
&lt;p&gt;224x224 images downloaded in advance from the IIIF Service based on
&lt;code&gt;gemalde.tsv&lt;/code&gt;. The script processing for AI Text Enrichment
from the metadata checks that the image has been downloaded, so the
output data has a 100% certainty of having a matching image. 28.165
images downloaded from 29,999 rows. This is due to known missing digital
images. The dataset corresponds to published data and each row contains
the licence and accessibility of the single image, date of creation and
last update of the catalogue object.&lt;/p&gt;
&lt;h3 id="ai-text-generation"&gt;3. AI Text Generation&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Model Used:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;a
href="https://huggingface.co/google/gemma-2-9b-it"&gt;Google Gemma 2 9B
Instruct&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parameters:&lt;/strong&gt; 9 billion&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Quantization:&lt;/strong&gt; FP16 (no quantization)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Context window:&lt;/strong&gt; 8,192 tokens&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;License:&lt;/strong&gt; Gemma Terms of Use&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Processing Workflow:&lt;/strong&gt;&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;&lt;strong&gt;Input cleaning:&lt;/strong&gt; Removal of numeric codes,
normalization of Unicode characters, increased CSV field size limit (10
MB)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Paragraph generation:&lt;/strong&gt; German text from structured
metadata&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ICONCLASS lookup:&lt;/strong&gt; Offline cache-based iconographic
description retrieval&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Iconographic synthesis:&lt;/strong&gt; AI-generated description
from ICONCLASS codes&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Translation:&lt;/strong&gt; German → English&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Categories processed:&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;paragraph foto DE/EN&lt;/code&gt; - Photograph description&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph obj DE/EN&lt;/code&gt; - Object/artwork description&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph verwalter DE/EN&lt;/code&gt; - Collection/custodian
information&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph standort DE/EN&lt;/code&gt; - Location information&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph iconclass DE/EN&lt;/code&gt; - &lt;strong&gt;Iconographic
content description (NEW)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;
&lt;h2 id="ai-prompts-used"&gt;AI Prompts Used&lt;/h2&gt;
&lt;h3 id="paragraph-generation-prompt"&gt;Paragraph Generation Prompt&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;Convert the following structured information into a coherent text in German.
The text contains field data that should be transformed into flowing prose while preserving all information.

IMPORTANT:
- Write a MAXIMUM of 2 paragraphs
- Do NOT include any URLs or web links
- Do NOT include reference codes or numerical codes
- Do NOT add any comments or explanations
- Only output the paragraph text itself

Field: {field_name}
Text: {cleaned_text}

German text (maximum 2 paragraphs):&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="iconclass-paragraph-prompt"&gt;ICONCLASS Paragraph Prompt&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;Based on the following Iconclass descriptions, write a brief German paragraph describing what the image depicts.

Descriptions: {&#39;; &#39;.join(descriptions)}

IMPORTANT:
- Start with &quot;Das Bild zeigt&quot; or similar phrasing
- Combine all descriptions into a flowing text
- Maximum 1-2 sentences
- Do NOT include iconclass codes or numbers
- Do NOT include reference codes starting with &quot;bh&quot;
- Only output the descriptive German text

German description:&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Example ICONCLASS Processing:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Input from data:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;a5500: 31 A 23 1 | 31 A 25 11 | 31 B 62 11&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;ICONCLASS lookup (from cache):&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;31 A 23 1 → &quot;standing figure&quot;
31 A 25 11 → &quot;arm raised upward&quot;
31 B 62 11 → &quot;looking upwards&quot;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;AI-generated output (DE):&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Das Bild zeigt eine stehende Figur mit erhobenem Arm, die nach oben blickt.&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Translation (EN):&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;The image shows a standing figure with raised arm, looking upwards.&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="translation-prompt"&gt;Translation Prompt&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;Translate the following German text to English.
Preserve the meaning and style as much as possible.

IMPORTANT:
- Do NOT include any URLs or web links in the translation
- Do NOT include reference codes starting with &quot;bh&quot; followed by numbers
- Do NOT include numerical codes like 08012353
- Do NOT add any comments or explanations
- Only output the translated text itself

German text: {text}

English translation:&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;h2 id="kisski-cluster-resources"&gt;KISSKI Cluster Resources&lt;/h2&gt;
&lt;h3 id="hardware-configuration"&gt;Hardware Configuration&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;GPU:&lt;/strong&gt; NVIDIA A100 (80GB VRAM)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Architecture: Ampere&lt;/li&gt;
&lt;li&gt;Tensor Cores: 432&lt;/li&gt;
&lt;li&gt;FP16 Performance: ~312 TFLOPS&lt;/li&gt;
&lt;li&gt;Memory Bandwidth: 2 TB/s&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Allocation per job:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GPUs: 1× A100&lt;/li&gt;
&lt;li&gt;CPUs: 4 cores&lt;/li&gt;
&lt;li&gt;RAM: 64 GB&lt;/li&gt;
&lt;li&gt;Time limit: 6 hours per job&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="job-array-configuration"&gt;Job Array Configuration&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Array setup:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Total jobs:&lt;/strong&gt; 75 (indices 0-74)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chunk size:&lt;/strong&gt; 400 rows per job&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parallel jobs:&lt;/strong&gt; 10 simultaneous&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Total rows processed:&lt;/strong&gt; 30,000 (rows 0-29,999)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="output-structure"&gt;Output Structure&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;data_zeichnungen/
├── enriched_data/
│ ├── zeichnungen_0-399.tsv # Rows 0-399
│ ├── zeichnungen_400-799.tsv # Rows 400-799
│ ├── zeichnungen_800-1199.tsv # Rows 800-1199
│ └── ...
├── images/
│ ├── {image_id_1}.jpg # IIIF thumbnail (224×224)
│ ├── {image_id_2}.jpg
│ └── ...
└── README.md # This file&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="output-fields"&gt;Output Fields&lt;/h3&gt;
&lt;p&gt;Each TSV file contains the original metadata plus AI-generated
fields:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Original fields:&lt;/strong&gt; All fields from
&lt;code&gt;zeichnungen.tsv&lt;/code&gt; including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;a8540&lt;/code&gt; - Image ID (BILDDATEI-NR.)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;textobj&lt;/code&gt; - Original object text&lt;/li&gt;
&lt;li&gt;&lt;code&gt;textfoto&lt;/code&gt; - Original photo text&lt;/li&gt;
&lt;li&gt;&lt;code&gt;a5500&lt;/code&gt; - ICONCLASS codes (primäre Ikonographie)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;aob26&lt;/code&gt;, &lt;code&gt;aob28&lt;/code&gt;, &lt;code&gt;aob30&lt;/code&gt; -
Relations&lt;/li&gt;
&lt;li&gt;etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Generated fields:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;paragraph foto DE&lt;/code&gt; - German description of
photograph&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph foto EN&lt;/code&gt; - English translation&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph obj DE&lt;/code&gt; - German description of
object/artwork&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph obj EN&lt;/code&gt; - English translation&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph verwalter DE&lt;/code&gt; - German description of
collection&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph verwalter EN&lt;/code&gt; - English translation&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph standort DE&lt;/code&gt; - German description of
location&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph standort EN&lt;/code&gt; - English translation&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph iconclass DE&lt;/code&gt; - &lt;strong&gt;German iconographic
description&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;paragraph iconclass EN&lt;/code&gt; - &lt;strong&gt;English iconographic
description&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="kisski-documentation"&gt;KISSKI Documentation&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Main documentation:&lt;/strong&gt; https://docs.hpc.gwdg.de/&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GPU partitions:&lt;/strong&gt;
https://docs.hpc.gwdg.de/how_to_use/compute_partitions/gpu_partitions/&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Account types:&lt;/strong&gt;
https://docs.hpc.gwdg.de/start_here/account_types/&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h2 id="iconclass-resources"&gt;ICONCLASS Resources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Official website:&lt;/strong&gt; https://iconclass.org/&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data repository:&lt;/strong&gt;
https://github.com/iconclass/data&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Help documentation:&lt;/strong&gt;
https://iconclass.org/help/lod&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h2 id="data-usage-citation"&gt;Data Usage &amp; Citation&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Source Institution:&lt;/strong&gt; Bibliotheca Hertziana - Max
Planck Institute for Art History&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Website: https://www.biblhertz.it/&lt;/li&gt;
&lt;li&gt;Fotothek: https://fotothek.biblhertz.it/&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;AI Processing:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Model: Google Gemma 2 9B Instruct&lt;/li&gt;
&lt;li&gt;Infrastructure: KISSKI (GWDG Göttingen)&lt;/li&gt;
&lt;li&gt;Processing date: November 2024&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;ICONCLASS:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ICONCLASS classification system&lt;/li&gt;
&lt;li&gt;Data source: https://github.com/iconclass/data&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;License:&lt;/strong&gt; Please refer to the Bibliotheca Hertziana
for source data licensing terms.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2 id="quality-notes"&gt;Quality Notes&lt;/h2&gt;
&lt;h3 id="general-ai-generated-content"&gt;General AI-Generated Content&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;AI-generated texts are meant to enhance discoverability and
accessibility&lt;/li&gt;
&lt;li&gt;Generated descriptions may contain inaccuracies or
interpretations&lt;/li&gt;
&lt;li&gt;Always refer to original structured metadata (&lt;code&gt;textobj&lt;/code&gt;,
&lt;code&gt;textfoto&lt;/code&gt;) for authoritative information&lt;/li&gt;
&lt;li&gt;Translations preserve meaning but may not capture all nuances of art
historical terminology&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;Generated:&lt;/strong&gt; November 2024 &lt;strong&gt;Processing
location:&lt;/strong&gt; KISSKI HPC Cluster, GWDG Göttingen
&lt;strong&gt;Contact:&lt;/strong&gt; pietro.liuzzo@biblhertz.it&lt;/p&gt;