{"_id": {"$oid": "6a8456c1ef0a19c343227cec"}, "test_id": "T1455", "benchmark": "library_cards", "date": "2026-08-04", "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": "x-ai", "model": "grok-4.5", "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\":\"Van der Meulen\",\"first_name\":\"Ageus Jacobus\"},\"publication\":{\"title\":\"Studies over het ministerie van Van de Spiegel.\",\"year\":\"1905\",\"place\":\"Leiden\",\"pages\":\"XI,559\",\"publisher\":\"Kooyker\",\"format\":\"8\u00b0\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"AT 27\",\"subjects\":null}}", "model": "grok-4.5", "provider": "x-ai", "finish_reason": "stop", "usage": {"input_tokens": 1982, "output_tokens": 156, "total_tokens": 2884, "cached_tokens": 1280, "input_cost_usd": 0.003964, "output_cost_usd": 0.000936, "estimated_cost_usd": 0.0049}, "duration": 16.392647981643677, "timestamp": "2026-08-04T16:20:13.784435", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Van der Meulen", "first_name": "Ageus Jacobus"}, "publication": {"title": "Studies over het ministerie van Van de Spiegel.", "year": "1905", "place": "Leiden", "pages": "XI,559", "publisher": "Kooyker", "format": "8\u00b0", "editor": null}, "library_reference": {"shelfmark": "AT 27", "subjects": null}}, "conversation_id": "f171be9e-90f7-4a6a-97b2-b4f691450ac5", "score": {"f1_score": 0.8, "precision": 0.8, "recall": 0.8, "true_positives": 8, "false_positives": 2, "false_negatives": 2, "field_scores": {"publication.publisher": {"response": "Kooyker", "ground_truth": "Kooyker", "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "author.last_name": {"response": "Van der Meulen", "ground_truth": "Van der Meulen", "score": 1.0}, "publication.year": {"response": "1905", "ground_truth": 1905, "score": 1.0}, "publication.title": {"response": "Studies over het ministerie van Van de Spiegel.", "ground_truth": "Studies over het ministerie van Van de Spiegel", "score": 0.989247311827957}, "publication.place": {"response": "Leiden", "ground_truth": "Leiden", "score": 1.0}, "publication.format": {"response": "8\u00b0", "ground_truth": "8", "score": 0.6666666666666667}, "library_reference.shelfmark": {"response": "AT 27", "ground_truth": "Diss.Groningen 1905", "score": 0.08333333333333337}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "author.first_name": {"response": "Ageus Jacobus", "ground_truth": "Ageus Jacobus", "score": 1.0}, "publication.pages": {"response": "XI,559", "ground_truth": "XI, 559", "score": 0.923076923076923}}, "total_fields": 12}, "raw_response": "{\"id\":\"fa272648-a595-980d-ae7b-d92370a6225b\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"Van der Meulen\\\",\\n    \\\"first_name\\\": \\\"Ageus Jacobus\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Studies over het ministerie van Van de Spiegel.\\\",\\n    \\\"year\\\": \\\"1905\\\",\\n    \\\"place\\\": \\\"Leiden\\\",\\n    \\\"pages\\\": \\\"XI,559\\\",\\n    \\\"publisher\\\": \\\"Kooyker\\\",\\n    \\\"format\\\": \\\"8\u00b0\\\",\\n    \\\"editor\\\": null\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"AT 27\\\",\\n    \\\"subjects\\\": null\\n  }\\n}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":null,\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Van der Meulen\",\"first_name\":\"Ageus Jacobus\"},\"publication\":{\"title\":\"Studies over het ministerie van Van de Spiegel.\",\"year\":\"1905\",\"place\":\"Leiden\",\"pages\":\"XI,559\",\"publisher\":\"Kooyker\",\"format\":\"8\u00b0\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"AT 27\",\"subjects\":null}},\"reasoning_content\":\"The user wants me to extract bibliographic information from the index card image and return it as a structured JSON object.\\n\"}}],\"created\":1785853197,\"model\":\"grok-4.5\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_a39489019fa99b6e\",\"usage\":{\"completion_tokens\":156,\"prompt_tokens\":1982,\"total_tokens\":2884,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":746,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":1280,\"text_tokens\":1391,\"image_tokens\":591},\"num_sources_used\":0,\"cost_in_usd_ticks\":72000000}}"}, "scoring": {"f1_micro": 0.9090536665301105, "f1_macro": 0.8998479087452471, "micro_precision": 0.8994730441832185, "micro_recall": 0.9188405797101449, "total_instances": 263, "total_tp": 2219, "total_fp": 248, "total_fn": 196, "cost_summary": {"total_input_tokens": 523137, "total_output_tokens": 43566, "total_tokens": 566703, "input_cost_usd": 1.0462739999999973, "output_cost_usd": 0.26139600000000024, "total_cost_usd": 1.3076700000000003}}, "normalized_score": 89.9847908745247}