{"_id": {"$oid": "69d4eb12b877594bc5718bb9"}, "test_id": "T0548", "benchmark": "library_cards", "date": "2026-01-25", "tags": {"document-type": ["index-card"], "writing": ["typed", "printed", "handwritten"], "century": [20, 19], "language": ["de", "fr", "en", "la", "el", "fi", "sv", "pl"], "layout": ["index"], "entry-type": ["bibliographic"], "task": ["information-extraction"]}, "contributors": ["gabriel_muller", "maximilian_hindermann"], "hidden": false, "config": {"provider": "mistral", "model": "ministral-14b-2512", "dataclass": "Document", "temperature": 0.0, "role_description": "You are a historian with keyword knowledge", "prompt_file": "prompt.txt", "legacy_test": false}, "prompt": "Extract the bibliographic information about a historical dissertation from this index card and return it as a structured JSON object with the following exact format:\n\n```json\n{\n  \"type\": {\n    \"type\": \"Dissertation or thesis\" OR \"Reference\"\n  },\n  \"author\": {\n    \"last_name\": \"string\",\n    \"first_name\": \"string\"\n  },\n  \"publication\": {\n    \"title\": \"string\",\n    \"year\": integer,\n    \"place\": \"string or empty string\",\n    \"pages\": \"string or empty string\",\n    \"publisher\": \"string or empty string\",\n    \"format\": \"string or empty string\"\n  },\n  \"library_reference\": {\n    \"shelfmark\": \"string or empty string\",\n    \"subjects\": \"string or empty string\"\n  }\n}\n```\n\nEXTRACTION RULES:\n1. **Card Type**: If a card contains the note \"s.\" on a separate line, it is a \"Reference\". Otherwise, it is a \"Dissertation or thesis\".\n\n2. **Author**: Extract last_name and first_name. If only one name is given, put it in last_name and leave first_name empty.\n\n3. **Publication**:\n   - title: The main title of the work\n   - year: Publication year as integer\n   - place: Publication place\n   - pages: Page count (remove \" S.\" suffix if present)\n   - publisher: Publishing house/institution\n   - format: Usually \"8\u00b0\", \"8'\", or \"4\u00b0\" - single value only\n\n4. **Library Reference**:\n   - shelfmark: Often begins with \"Diss.\" or \"AT\", may be marked with \"Standort:\"\n   - subjects: Subject classifications or keywords\n\n5. **Missing Information**: Use empty string \"\" for missing text fields, omit year fields entirely if not present.\n\n6. **Ignore**: Disregard any information that doesn't fit into these categories.\n\nReturn ONLY the JSON object, no additional text or explanation.", "results": {"text": "{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"\",\"first_name\":\"\"},\"publication\":{\"title\":\"\",\"year\":\"\",\"place\":\"\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"\"}}", "model": "ministral-14b-2512", "provider": "mistral", "finish_reason": "stop", "usage": {"input_tokens": 1196, "output_tokens": 706, "total_tokens": 1902, "input_cost_usd": 0.00023920000000000001, "output_cost_usd": 0.00014120000000000002, "estimated_cost_usd": 0.00038040000000000003}, "duration": 4.910412549972534, "timestamp": "2026-01-25T00:21:36.642042", "parsed": {"$schema": "http://json-schema.org/draft-07/schema#", "$defs": {"Author": {"description": "Represents an author on a library card.", "properties": {"last_name": {"title": "Last Name", "type": "string"}, "first_name": {"title": "First Name", "type": "string"}}, "required": ["last_name"], "title": "Author", "type": "object"}, "LibraryReference": {"description": "Represents library-specific reference information.", "properties": {"shelfmark": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Shelfmark"}, "subjects": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Subjects"}}, "title": "LibraryReference", "type": "object"}, "Publication": {"description": "Represents publication information from a library card.", "properties": {"title": {"title": "Title", "type": "string"}, "year": {"title": "Year", "type": "string"}, "place": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Place"}, "pages": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Pages"}, "publisher": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Publisher"}, "format": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Format"}}, "required": ["title"], "title": "Publication", "type": "object"}, "WorkType": {"description": "Represents the type of work referenced in a library card.", "properties": {"type": {"enum": ["Dissertation or thesis", "Reference"], "title": "Type", "type": "string"}}, "required": ["type"], "title": "WorkType", "type": "object"}}, "type": {"type": "Dissertation or thesis"}, "author": {"last_name": "", "first_name": ""}, "publication": {"title": "", "year": "", "place": "", "pages": "", "publisher": "", "format": ""}, "library_reference": {"shelfmark": "", "subjects": ""}}, "conversation_id": "33563819-5fe4-4515-a42f-68a63490caf7", "score": {"f1_score": 0.0, "precision": 0.0, "recall": 0.0, "true_positives": 0, "false_positives": 47, "false_negatives": 6, "field_scores": {"$defs.Publication.properties.format.default": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.Publication.properties.publisher.anyOf[0].type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.Author.properties.first_name.type": {"response": "string", "ground_truth": null, "score": 0.0}, "author.first_name": {"response": null, "ground_truth": "Ernst", "score": 0.0}, "$defs.Publication.properties.pages.title": {"response": "Pages", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.shelfmark.title": {"response": "Shelfmark", "ground_truth": null, "score": 0.0}, "publication.year": {"response": null, "ground_truth": 1941, "score": 0.0}, "$defs.WorkType.properties.type.title": {"response": "Type", "ground_truth": null, "score": 0.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Reference", "score": 0.25806451612903225}, "$defs.Publication.properties.title.title": {"response": "Title", "ground_truth": null, "score": 0.0}, "$defs.Publication.type": {"response": "object", "ground_truth": null, "score": 0.0}, "$defs.WorkType.title": {"response": "WorkType", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.publisher.title": {"response": "Publisher", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.format.anyOf[0].type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.subjects.anyOf[0].type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.shelfmark.anyOf[1].type": {"response": "null", "ground_truth": null, "score": 0.0}, "$schema": {"response": "http://json-schema.org/draft-07/schema#", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.subjects.anyOf[1].type": {"response": "null", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.title": {"response": "LibraryReference", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.type": {"response": "object", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.title.type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.Author.description": {"response": "Represents an author on a library card.", "ground_truth": null, "score": 0.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "publication.format": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.Author.required[0]": {"response": "last_name", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.subjects.default": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.LibraryReference.properties.shelfmark.default": {"response": null, "ground_truth": null, "score": 1.0}, "publication.title": {"response": null, "ground_truth": "Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.", "score": 0.0}, "$defs.Publication.properties.year.type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.place.title": {"response": "Place", "ground_truth": null, "score": 0.0}, "$defs.Publication.description": {"response": "Represents publication information from a library card.", "ground_truth": null, "score": 0.0}, "$defs.Author.properties.first_name.title": {"response": "First Name", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.pages.default": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.Publication.properties.year.title": {"response": "Year", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.pages.anyOf[0].type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.shelfmark.anyOf[0].type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.Author.title": {"response": "Author", "ground_truth": null, "score": 0.0}, "publication.pages": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.WorkType.properties.type.type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.WorkType.properties.type.enum[1]": {"response": "Reference", "ground_truth": null, "score": 0.0}, "$defs.LibraryReference.properties.subjects.title": {"response": "Subjects", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.publisher.default": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.WorkType.required[0]": {"response": "type", "ground_truth": null, "score": 0.0}, "publication.place": {"response": null, "ground_truth": "B.-Steglitz", "score": 0.0}, "$defs.LibraryReference.description": {"response": "Represents library-specific reference information.", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.pages.anyOf[1].type": {"response": "null", "ground_truth": null, "score": 0.0}, "author.last_name": {"response": null, "ground_truth": "Korsch", "score": 0.0}, "$defs.WorkType.description": {"response": "Represents the type of work referenced in a library card.", "ground_truth": null, "score": 0.0}, "$defs.Author.properties.last_name.title": {"response": "Last Name", "ground_truth": null, "score": 0.0}, "$defs.WorkType.properties.type.enum[0]": {"response": "Dissertation or thesis", "ground_truth": null, "score": 0.0}, "$defs.Author.properties.last_name.type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.place.default": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.Publication.properties.format.anyOf[1].type": {"response": "null", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.publisher.anyOf[1].type": {"response": "null", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.place.anyOf[1].type": {"response": "null", "ground_truth": null, "score": 0.0}, "$defs.Publication.required[0]": {"response": "title", "ground_truth": null, "score": 0.0}, "$defs.Publication.properties.format.title": {"response": "Format", "ground_truth": null, "score": 0.0}, "$defs.WorkType.type": {"response": "object", "ground_truth": null, "score": 0.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "$defs.Publication.properties.place.anyOf[0].type": {"response": "string", "ground_truth": null, "score": 0.0}, "$defs.Publication.title": {"response": "Publication", "ground_truth": null, "score": 0.0}, "$defs.Author.type": {"response": "object", "ground_truth": null, "score": 0.0}}, "total_fields": 64}, "raw_response": "{\"id\":\"b8b59a5e4f2b48d495a2e8692f02c0c0\",\"object\":\"chat.completion\",\"model\":\"ministral-14b-2512\",\"usage\":{\"prompt_tokens\":1196,\"completion_tokens\":706,\"total_tokens\":1902,\"num_cached_tokens\":1216},\"created\":1769296891,\"choices\":[{\"index\":0,\"message\":{\"content\":\"{\\n  \\\"$schema\\\": \\\"http://json-schema.org/draft-07/schema#\\\",\\n  \\\"$defs\\\": {\\n    \\\"Author\\\": {\\n      \\\"description\\\": \\\"Represents an author on a library card.\\\",\\n      \\\"properties\\\": {\\n        \\\"last_name\\\": {\\n          \\\"title\\\": \\\"Last Name\\\",\\n          \\\"type\\\": \\\"string\\\"\\n        },\\n        \\\"first_name\\\": {\\n          \\\"title\\\": \\\"First Name\\\",\\n          \\\"type\\\": \\\"string\\\"\\n        }\\n      },\\n      \\\"required\\\": [\\\"last_name\\\"],\\n      \\\"title\\\": \\\"Author\\\",\\n      \\\"type\\\": \\\"object\\\"\\n    },\\n    \\\"LibraryReference\\\": {\\n      \\\"description\\\": \\\"Represents library-specific reference information.\\\",\\n      \\\"properties\\\": {\\n        \\\"shelfmark\\\": {\\n          \\\"anyOf\\\": [\\n            {\\\"type\\\": \\\"string\\\"},\\n            {\\\"type\\\": \\\"null\\\"}\\n          ],\\n          \\\"default\\\": null,\\n          \\\"title\\\": \\\"Shelfmark\\\"\\n        },\\n        \\\"subjects\\\": {\\n          \\\"anyOf\\\": [\\n            {\\\"type\\\": \\\"string\\\"},\\n            {\\\"type\\\": \\\"null\\\"}\\n          ],\\n          \\\"default\\\": null,\\n          \\\"title\\\": \\\"Subjects\\\"\\n        }\\n      },\\n      \\\"title\\\": \\\"LibraryReference\\\",\\n      \\\"type\\\": \\\"object\\\"\\n    },\\n    \\\"Publication\\\": {\\n      \\\"description\\\": \\\"Represents publication information from a library card.\\\",\\n      \\\"properties\\\": {\\n        \\\"title\\\": {\\n          \\\"title\\\": \\\"Title\\\",\\n          \\\"type\\\": \\\"string\\\"\\n        },\\n        \\\"year\\\": {\\n          \\\"title\\\": \\\"Year\\\",\\n          \\\"type\\\": \\\"string\\\"\\n        },\\n        \\\"place\\\": {\\n          \\\"anyOf\\\": [\\n            {\\\"type\\\": \\\"string\\\"},\\n            {\\\"type\\\": \\\"null\\\"}\\n          ],\\n          \\\"default\\\": null,\\n          \\\"title\\\": \\\"Place\\\"\\n        },\\n        \\\"pages\\\": {\\n          \\\"anyOf\\\": [\\n            {\\\"type\\\": \\\"string\\\"},\\n            {\\\"type\\\": \\\"null\\\"}\\n          ],\\n          \\\"default\\\": null,\\n          \\\"title\\\": \\\"Pages\\\"\\n        },\\n        \\\"publisher\\\": {\\n          \\\"anyOf\\\": [\\n            {\\\"type\\\": \\\"string\\\"},\\n            {\\\"type\\\": \\\"null\\\"}\\n          ],\\n          \\\"default\\\": null,\\n          \\\"title\\\": \\\"Publisher\\\"\\n        },\\n        \\\"format\\\": {\\n          \\\"anyOf\\\": [\\n            {\\\"type\\\": \\\"string\\\"},\\n            {\\\"type\\\": \\\"null\\\"}\\n          ],\\n          \\\"default\\\": null,\\n          \\\"title\\\": \\\"Format\\\"\\n        }\\n      },\\n      \\\"required\\\": [\\\"title\\\"],\\n      \\\"title\\\": \\\"Publication\\\",\\n      \\\"type\\\": \\\"object\\\"\\n    },\\n    \\\"WorkType\\\": {\\n      \\\"description\\\": \\\"Represents the type of work referenced in a library card.\\\",\\n      \\\"properties\\\": {\\n        \\\"type\\\": {\\n          \\\"enum\\\": [\\\"Dissertation or thesis\\\", \\\"Reference\\\"],\\n          \\\"title\\\": \\\"Type\\\",\\n          \\\"type\\\": \\\"string\\\"\\n        }\\n      },\\n      \\\"required\\\": [\\\"type\\\"],\\n      \\\"title\\\": \\\"WorkType\\\",\\n      \\\"type\\\": \\\"object\\\"\\n    }\\n  },\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"\\\",\\n    \\\"first_name\\\": \\\"\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"\\\",\\n    \\\"year\\\": \\\"\\\",\\n    \\\"place\\\": \\\"\\\",\\n    \\\"pages\\\": \\\"\\\",\\n    \\\"publisher\\\": \\\"\\\",\\n    \\\"format\\\": \\\"\\\"\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"\\\",\\n    \\\"subjects\\\": \\\"\\\"\\n  }\\n}\",\"tool_calls\":null,\"prefix\":false,\"role\":\"assistant\"},\"finish_reason\":\"stop\"}]}"}, "scoring": {"f1_micro": 0.01897198323406133, "f1_macro": 0.006121673003802282, "micro_precision": 0.020302171860245515, "micro_recall": 0.01780538302277433, "total_instances": 263, "total_tp": 43, "total_fp": 2075, "total_fn": 2372, "cost_summary": {"total_input_tokens": 314548, "total_output_tokens": 161558, "total_tokens": 476106, "input_cost_usd": 0.06290960000000015, "output_cost_usd": 0.03231160000000003, "total_cost_usd": 0.09522120000000023}}, "normalized_score": 0.6121673003802282}