{"_id": {"$oid": "69d4eb12b877594bc5718bc4"}, "test_id": "T0570", "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": "magistral-small-2509", "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": "{\"$defs\": {\"Author\": {\"description\": \"Represents an author on a library card.\\n\\nAttributes:\\n    last_name: Author's last name\\n    first_name: Author's first name\", \"properties\": {\"last_name\": {\"title\": \"Last Name\", \"type\": \"string\"}, \"first_name\": {\"title\": \"First Name\", \"type\": \"string\"}}, \"required\": [\"last_name\", \"first_name\"], \"title\": \"Author\", \"type\": \"object\"}, \"LibraryReference\": {\"description\": \"Represents library-specific reference information.\\n\\nAttributes:\\n    shelfmark: Library shelfmark or call number\\n    subjects: Subject classifications or tags\", \"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.\\n\\nAttributes:\\n    title: Title of the publication\\n    year: Year of publication\\n    place: Place of publication\\n    pages: Number of pages or page range\\n    publisher: Publisher name\\n    format: Format of the publication\\n    editor: Editor name if applicable\", \"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\"}, \"editor\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"null\"}], \"default\": null, \"title\": \"Editor\"}}, \"required\": [\"title\", \"year\"], \"title\": \"Publication\", \"type\": \"object\"}, \"WorkType\": {\"description\": \"Represents the type of work referenced in a library card.\\n\\nAttributes:\\n    type: Type of work, either \\\"Dissertation or thesis\\\" or \\\"Reference\\\"\", \"properties\": {\"type\": {\"enum\": [\"Dissertation or thesis\", \"Reference\"], \"title\": \"Type\", \"type\": \"string\"}}, \"required\": [\"type\"], \"title\": \"WorkType\", \"type\": \"object\"}}, \"description\": \"Represents a complete library card document.\\n\\nAttributes:\\n    type: Type of work\\n    author: Author information\\n    publication: Publication details\\n    library_reference: Library reference information\", \"properties\": {\"type\": {\"$ref\": \"#/$defs/WorkType\"}, \"author\": {\"$ref\": \"#/$defs/Author\"}, \"publication\": {\"$ref\": \"#/$defs/Publication\"}, \"library_reference\": {\"$ref\": \"#/$defs/LibraryReference\"}}, \"required\": [\"type\", \"author\", \"publication\", \"library_reference\"], \"title\": \"Document\", \"type\": \"object\"}", "model": "magistral-small-2509", "provider": "mistral", "finish_reason": "stop", "usage": {"input_tokens": 1196, "output_tokens": 760, "total_tokens": 1956, "input_cost_usd": 0.000598, "output_cost_usd": 0.00038, "estimated_cost_usd": 0.0009780000000000001}, "duration": 2.9454104900360107, "timestamp": "2026-01-25T01:29:32.304382", "conversation_id": "c7ff0faf-7361-4cc1-86c5-74d3f362c9b8", "score": {"f1_score": 0.0, "precision": 0.0, "recall": 0.0, "true_positives": 0, "false_positives": 0, "false_negatives": 8, "field_scores": {"": {"response": null, "ground_truth": null, "score": 1.0}, "publication.pages": {"response": null, "ground_truth": "35", "score": 0.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "author.first_name": {"response": null, "ground_truth": "C W G Eduard", "score": 0.0}, "publication.year": {"response": null, "ground_truth": 1869, "score": 0.0}, "publication.place": {"response": null, "ground_truth": "Leipzig", "score": 0.0}, "type.type": {"response": null, "ground_truth": "Dissertation or thesis", "score": 0.0}, "publication.title": {"response": null, "ground_truth": "Die Iphigenien-Sage und ihre dramatischen Bearbeitungen", "score": 0.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": null, "ground_truth": null, "score": 1.0}, "author.last_name": {"response": null, "ground_truth": "Schwarz", "score": 0.0}, "publication.format": {"response": null, "ground_truth": "8", "score": 0.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"64fbdb2a92c44606806ca6dfb7b9dcec\",\"object\":\"chat.completion\",\"model\":\"magistral-small-2509\",\"usage\":{\"prompt_tokens\":1196,\"completion_tokens\":760,\"total_tokens\":1956,\"num_cached_tokens\":1344},\"created\":1769300969,\"choices\":[{\"index\":0,\"message\":{\"content\":\"{\\\"$defs\\\": {\\\"Author\\\": {\\\"description\\\": \\\"Represents an author on a library card.\\\\n\\\\nAttributes:\\\\n    last_name: Author's last name\\\\n    first_name: Author's first name\\\", \\\"properties\\\": {\\\"last_name\\\": {\\\"title\\\": \\\"Last Name\\\", \\\"type\\\": \\\"string\\\"}, \\\"first_name\\\": {\\\"title\\\": \\\"First Name\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"last_name\\\", \\\"first_name\\\"], \\\"title\\\": \\\"Author\\\", \\\"type\\\": \\\"object\\\"}, \\\"LibraryReference\\\": {\\\"description\\\": \\\"Represents library-specific reference information.\\\\n\\\\nAttributes:\\\\n    shelfmark: Library shelfmark or call number\\\\n    subjects: Subject classifications or tags\\\", \\\"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.\\\\n\\\\nAttributes:\\\\n    title: Title of the publication\\\\n    year: Year of publication\\\\n    place: Place of publication\\\\n    pages: Number of pages or page range\\\\n    publisher: Publisher name\\\\n    format: Format of the publication\\\\n    editor: Editor name if applicable\\\", \\\"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\\\"}, \\\"editor\\\": {\\\"anyOf\\\": [{\\\"type\\\": \\\"string\\\"}, {\\\"type\\\": \\\"null\\\"}], \\\"default\\\": null, \\\"title\\\": \\\"Editor\\\"}}, \\\"required\\\": [\\\"title\\\", \\\"year\\\"], \\\"title\\\": \\\"Publication\\\", \\\"type\\\": \\\"object\\\"}, \\\"WorkType\\\": {\\\"description\\\": \\\"Represents the type of work referenced in a library card.\\\\n\\\\nAttributes:\\\\n    type: Type of work, either \\\\\\\"Dissertation or thesis\\\\\\\" or \\\\\\\"Reference\\\\\\\"\\\", \\\"properties\\\": {\\\"type\\\": {\\\"enum\\\": [\\\"Dissertation or thesis\\\", \\\"Reference\\\"], \\\"title\\\": \\\"Type\\\", \\\"type\\\": \\\"string\\\"}}, \\\"required\\\": [\\\"type\\\"], \\\"title\\\": \\\"WorkType\\\", \\\"type\\\": \\\"object\\\"}}, \\\"description\\\": \\\"Represents a complete library card document.\\\\n\\\\nAttributes:\\\\n    type: Type of work\\\\n    author: Author information\\\\n    publication: Publication details\\\\n    library_reference: Library reference information\\\", \\\"properties\\\": {\\\"type\\\": {\\\"$ref\\\": \\\"#/$defs/WorkType\\\"}, \\\"author\\\": {\\\"$ref\\\": \\\"#/$defs/Author\\\"}, \\\"publication\\\": {\\\"$ref\\\": \\\"#/$defs/Publication\\\"}, \\\"library_reference\\\": {\\\"$ref\\\": \\\"#/$defs/LibraryReference\\\"}}, \\\"required\\\": [\\\"type\\\", \\\"author\\\", \\\"publication\\\", \\\"library_reference\\\"], \\\"title\\\": \\\"Document\\\", \\\"type\\\": \\\"object\\\"}\",\"tool_calls\":null,\"prefix\":false,\"role\":\"assistant\"},\"finish_reason\":\"stop\"}]}"}, "scoring": {"f1_micro": 0.0008244023083264633, "f1_macro": 0.0003802281368821293, "micro_precision": 0.09090909090909091, "micro_recall": 0.00041407867494824016, "total_instances": 263, "total_tp": 1, "total_fp": 10, "total_fn": 2414, "cost_summary": {"total_input_tokens": 314548, "total_output_tokens": 158789, "total_tokens": 473337, "input_cost_usd": 0.15727399999999955, "output_cost_usd": 0.07939450000000006, "total_cost_usd": 0.2366685000000007}}, "normalized_score": 0.038022813688212934}