{"_id": {"$oid": "69d4eb12b877594bc5718cb6"}, "test_id": "T0645", "benchmark": "library_cards", "date": "2026-03-16", "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": "anthropic", "model": "claude-sonnet-4-6", "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\":\"Wittenberg\",\"first_name\":\"Joachim\"},\"publication\":{\"title\":\"Unbenutzte Warenzeichen\",\"year\":\"1954\",\"place\":\"o.O.\",\"pages\":\"104\",\"publisher\":\"Diss.d.Rechts-u.Wirtschaftswissenschaftl.Fak.Mainz\",\"format\":\"4'\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss.Mainz 1954 (4')\",\"subjects\":\"Marke (Markenrecht). Deutschland\"}}", "model": "claude-sonnet-4-6", "provider": "anthropic", "finish_reason": "tool_use", "usage": {"input_tokens": 2681, "output_tokens": 222, "total_tokens": 2903, "input_cost_usd": 0.008043, "output_cost_usd": 0.00333, "estimated_cost_usd": 0.011373}, "duration": 4.915768623352051, "timestamp": "2026-03-16T15:53:05.497872", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Wittenberg", "first_name": "Joachim"}, "publication": {"title": "Unbenutzte Warenzeichen", "year": "1954", "place": "o.O.", "pages": "104", "publisher": "Diss.d.Rechts-u.Wirtschaftswissenschaftl.Fak.Mainz", "format": "4'"}, "library_reference": {"shelfmark": "Diss.Mainz 1954 (4')", "subjects": "Marke (Markenrecht). Deutschland"}}, "conversation_id": "74e96893-0624-4f32-b1d4-2a9a993fe09f", "score": {"f1_score": 0.8, "precision": 0.7272727272727273, "recall": 0.8888888888888888, "true_positives": 8, "false_positives": 3, "false_negatives": 1, "field_scores": {"publication.pages": {"response": "104", "ground_truth": "104", "score": 1.0}, "author.last_name": {"response": "Wittenberg", "ground_truth": "Wittenberg", "score": 1.0}, "publication.title": {"response": "Unbenutzte Warenzeichen", "ground_truth": "Unbenutzte Warenzeichen", "score": 1.0}, "library_reference.shelfmark": {"response": "Diss.Mainz 1954 (4')", "ground_truth": "Diss.Mainz 1954", "score": 0.8571428571428572}, "publication.publisher": {"response": "Diss.d.Rechts-u.Wirtschaftswissenschaftl.Fak.Mainz", "ground_truth": null, "score": 0.0}, "library_reference.subjects": {"response": "Marke (Markenrecht). Deutschland", "ground_truth": "Marke (Markenrecht). Deutschland", "score": 1.0}, "publication.year": {"response": "1954", "ground_truth": 1954, "score": 1.0}, "publication.place": {"response": "o.O.", "ground_truth": null, "score": 0.0}, "author.first_name": {"response": "Joachim", "ground_truth": "Joachim", "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "publication.format": {"response": "4'", "ground_truth": "4'", "score": 1.0}}, "total_fields": 11}, "raw_response": "{\"id\":\"msg_01Dtt8C4tBU6KZduVkTXJwWj\",\"content\":[{\"id\":\"toolu_01N2NEgh5k8bxQLempret1Gk\",\"input\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Wittenberg\",\"first_name\":\"Joachim\"},\"publication\":{\"title\":\"Unbenutzte Warenzeichen\",\"year\":\"1954\",\"place\":\"o.O.\",\"pages\":\"104\",\"publisher\":\"Diss.d.Rechts-u.Wirtschaftswissenschaftl.Fak.Mainz\",\"format\":\"4'\"},\"library_reference\":{\"shelfmark\":\"Diss.Mainz 1954 (4')\",\"subjects\":\"Marke (Markenrecht). Deutschland\"}},\"name\":\"extract_structured_data\",\"type\":\"tool_use\",\"caller\":{\"type\":\"direct\"}}],\"model\":\"claude-sonnet-4-6\",\"role\":\"assistant\",\"stop_reason\":\"tool_use\",\"stop_sequence\":null,\"type\":\"message\",\"usage\":{\"cache_creation\":{\"ephemeral_1h_input_tokens\":0,\"ephemeral_5m_input_tokens\":0},\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"inference_geo\":\"global\",\"input_tokens\":2681,\"output_tokens\":222,\"server_tool_use\":null,\"service_tier\":\"standard\"}}"}, "scoring": {"f1_micro": 0.8714146341463415, "f1_macro": 0.862851711026616, "micro_precision": 0.8239852398523986, "micro_recall": 0.9246376811594202, "total_instances": 263, "total_tp": 2233, "total_fp": 477, "total_fn": 182, "cost_summary": {"total_input_tokens": 706230, "total_output_tokens": 57317, "total_tokens": 763547, "input_cost_usd": 2.11869, "output_cost_usd": 0.8597549999999998, "total_cost_usd": 2.978445000000001}}, "normalized_score": 86.2851711026616}