{"_id": {"$oid": "6a26c67c3572c06bc1455eef"}, "test_id": "T1107", "benchmark": "library_cards", "date": "2026-06-08", "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.3", "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\":\"Reference\"},\"author\":{\"last_name\":\"Korsch\",\"first_name\":\"Ernst\"},\"publication\":{\"title\":\"Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.\",\"year\":\"\",\"place\":\"B.-Steglitz\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":\"\"},\"library_reference\":{\"shelfmark\":\"Diss.Univ. Berlin 1941\",\"subjects\":\"\"}}", "model": "grok-4.3", "provider": "x-ai", "finish_reason": "stop", "usage": {"input_tokens": 1735, "output_tokens": 146, "total_tokens": 2714, "cached_tokens": 1088, "input_cost_usd": 0.00216875, "output_cost_usd": 0.000365, "estimated_cost_usd": 0.00253375}, "duration": 10.117369413375854, "timestamp": "2026-06-08T11:52:18.466766", "parsed": {"type": {"type": "Reference"}, "author": {"last_name": "Korsch", "first_name": "Ernst"}, "publication": {"title": "Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.", "year": "", "place": "B.-Steglitz", "pages": "", "publisher": "", "format": "", "editor": ""}, "library_reference": {"shelfmark": "Diss.Univ. Berlin 1941", "subjects": ""}}, "conversation_id": "a9f7d5a3-d561-441e-b0c2-7ef05d2d6fa8", "score": {"f1_score": 0.83, "precision": 0.8333333333333334, "recall": 0.8333333333333334, "true_positives": 5, "false_positives": 1, "false_negatives": 1, "field_scores": {"author.first_name": {"response": "Ernst", "ground_truth": "Ernst", "score": 1.0}, "publication.place": {"response": "B.-Steglitz", "ground_truth": "B.-Steglitz", "score": 1.0}, "publication.format": {"response": null, "ground_truth": null, "score": 1.0}, "author.last_name": {"response": "Korsch", "ground_truth": "Korsch", "score": 1.0}, "publication.title": {"response": "Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.", "ground_truth": "Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.", "score": 1.0}, "publication.pages": {"response": null, "ground_truth": null, "score": 1.0}, "type.type": {"response": "Reference", "ground_truth": "Reference", "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.year": {"response": null, "ground_truth": 1941, "score": 0.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": "Diss.Univ. Berlin 1941", "ground_truth": null, "score": 0.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"8a8800c6-a030-9499-bc77-f2ed0c94b954\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Reference\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"Korsch\\\",\\n    \\\"first_name\\\": \\\"Ernst\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.\\\",\\n    \\\"year\\\":   \\\"\\\",\\n    \\\"place\\\": \\\"B.-Steglitz\\\",\\n    \\\"pages\\\": \\\"\\\",\\n    \\\"publisher\\\": \\\"\\\",\\n    \\\"format\\\": \\\"\\\"\\n  ,\\n  \\\"editor\\\": \\\"\\\"\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"Diss.Univ. Berlin 1941\\\",\\n    \\\"subjects\\\": \\\"\\\"\\n  }\\n}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":null,\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Reference\"},\"author\":{\"last_name\":\"Korsch\",\"first_name\":\"Ernst\"},\"publication\":{\"title\":\"Die verschiedenen Fassungen in dem Werk des Bischofs Otto von Freising \u00fcber die Taten Kaiser Friedrichs I.\",\"year\":\"\",\"place\":\"B.-Steglitz\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":\"\"},\"library_reference\":{\"shelfmark\":\"Diss.Univ. Berlin 1941\",\"subjects\":\"\"}},\"reasoning_content\":\"The task is to extract bibliographic information from the index card and return it as a structured JSON object.\\n\"}}],\"created\":1780912329,\"model\":\"grok-4.3\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_eb3c003fc66c14ed\",\"usage\":{\"completion_tokens\":146,\"prompt_tokens\":1735,\"total_tokens\":2714,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":833,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":1088,\"text_tokens\":1144,\"image_tokens\":591},\"num_sources_used\":0,\"cost_in_usd_ticks\":34738500}}"}, "scoring": {"f1_micro": 0.8566707971912432, "f1_macro": 0.8455893536121672, "micro_precision": 0.8545529460238979, "micro_recall": 0.8587991718426501, "total_instances": 263, "total_tp": 2074, "total_fp": 353, "total_fn": 341, "cost_summary": {"total_input_tokens": 468076, "total_output_tokens": 41331, "total_tokens": 509407, "input_cost_usd": 0.5850950000000005, "output_cost_usd": 0.10332750000000002, "total_cost_usd": 0.6884225000000002}}, "normalized_score": 84.55893536121673}