{"_id": {"$oid": "69d4eb12b877594bc5718d20"}, "test_id": "T0723", "benchmark": "library_cards", "date": "2026-03-23", "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.20-0309-reasoning", "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\":\"Wettell\",\"first_name\":\"Georg Wilhelm\"},\"publication\":{\"title\":\"Disputatio de qu\u00e6stione, aduersus quem in integrum restitutio imploranda sit.\",\"year\":\"1850\",\"place\":\"Marburgi\",\"pages\":\"46\",\"publisher\":null,\"format\":null,\"editor\":null},\"library_reference\":{\"shelfmark\":\"7\",\"subjects\":\"Rektoratsprogramm\"}}", "model": "grok-4.20-0309-reasoning", "provider": "x-ai", "finish_reason": "stop", "usage": {"input_tokens": 1314, "output_tokens": 151, "total_tokens": 4039, "cached_tokens": 1088, "input_cost_usd": 0.002628, "output_cost_usd": 0.0009060000000000001, "estimated_cost_usd": 0.0035340000000000002}, "duration": 28.54402232170105, "timestamp": "2026-03-23T14:04:00.039635", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Wettell", "first_name": "Georg Wilhelm"}, "publication": {"title": "Disputatio de qu\u00e6stione, aduersus quem in integrum restitutio imploranda sit.", "year": "1850", "place": "Marburgi", "pages": "46", "publisher": null, "format": null, "editor": null}, "library_reference": {"shelfmark": "7", "subjects": "Rektoratsprogramm"}}, "conversation_id": "3ca3b527-0c18-4b5f-87fe-2bdf1b312082", "score": {"f1_score": 0.59, "precision": 0.5555555555555556, "recall": 0.625, "true_positives": 5, "false_positives": 4, "false_negatives": 3, "field_scores": {"type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "publication.pages": {"response": "46", "ground_truth": "40", "score": 0.5}, "publication.title": {"response": "Disputatio de qu\u00e6stione, aduersus quem in integrum restitutio imploranda sit.", "ground_truth": "Disputatio de quaestione, adversus quem in integrum restitutio imploranda sit", "score": 0.961038961038961}, "publication.year": {"response": "1850", "ground_truth": 1850, "score": 1.0}, "publication.place": {"response": "Marburgi", "ground_truth": "Marburgi", "score": 1.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": "7", "ground_truth": "AT 7", "score": 0.4}, "author.first_name": {"response": "Georg Wilhelm", "ground_truth": "Georg Wilhelm", "score": 1.0}, "publication.format": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.subjects": {"response": "Rektoratsprogramm", "ground_truth": null, "score": 0.0}, "author.last_name": {"response": "Wettell", "ground_truth": "Wetzell", "score": 0.8571428571428572}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"2e2ef856-cf3b-95b0-8e43-b81fa2df6713\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"Wettell\\\",\\n    \\\"first_name\\\": \\\"Georg Wilhelm\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Disputatio de qu\u00e6stione, aduersus quem in integrum restitutio imploranda sit.\\\",\\n    \\\"year\\\": \\\"1850\\\",\\n    \\\"place\\\": \\\"Marburgi\\\",\\n    \\\"pages\\\": \\\"46\\\",\\n    \\\"publisher\\\": null,\\n    \\\"format\\\": null,\\n    \\\"editor\\\": null\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"7\\\",\\n    \\\"subjects\\\": \\\"Rektoratsprogramm\\\"\\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\":\"Wettell\",\"first_name\":\"Georg Wilhelm\"},\"publication\":{\"title\":\"Disputatio de qu\u00e6stione, aduersus quem in integrum restitutio imploranda sit.\",\"year\":\"1850\",\"place\":\"Marburgi\",\"pages\":\"46\",\"publisher\":null,\"format\":null,\"editor\":null},\"library_reference\":{\"shelfmark\":\"7\",\"subjects\":\"Rektoratsprogramm\"}}}}],\"created\":1774271039,\"model\":\"grok-4.20-0309-reasoning\",\"object\":\"chat.completion\",\"service_tier\":null,\"system_fingerprint\":\"fp_d6e36c82c2\",\"usage\":{\"completion_tokens\":151,\"prompt_tokens\":1314,\"total_tokens\":4039,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":2574,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":1088,\"text_tokens\":1138,\"image_tokens\":176},\"num_sources_used\":0,\"cost_in_usd_ticks\":170196000}}"}, "scoring": {"f1_micro": 0.8645003065603925, "f1_macro": 0.8587072243346008, "micro_precision": 0.8535108958837773, "micro_recall": 0.8757763975155279, "total_instances": 263, "total_tp": 2115, "total_fp": 363, "total_fn": 300, "cost_summary": {"total_input_tokens": 342414, "total_output_tokens": 41178, "total_tokens": 383592, "input_cost_usd": 0.684828000000001, "output_cost_usd": 0.247068, "total_cost_usd": 0.9318959999999993}}, "normalized_score": 85.87072243346007}