{"_id": {"$oid": "6ab1687f1481417a2aae4bda"}, "test_id": "T1027", "benchmark": "library_cards", "date": "2026-04-21", "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-opus-4-7", "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\":\"Montaghemi\",\"first_name\":\"Nourhomadeh\"},\"publication\":{\"title\":\"Sonnenbichler - Montaghemi, Nourhomadeh\",\"year\":\"\",\"place\":null,\"pages\":null,\"publisher\":null,\"format\":null,\"editor\":null},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"\"}}", "model": "claude-opus-4-7", "provider": "anthropic", "finish_reason": "tool_use", "usage": {"input_tokens": 3289, "output_tokens": 197, "total_tokens": 3486, "input_cost_usd": 0.016444999999999998, "output_cost_usd": 0.004925, "estimated_cost_usd": 0.021369999999999997}, "duration": 4.200495958328247, "timestamp": "2026-04-21T23:00:56.620990", "parsed": {"type": {"type": "Reference"}, "author": {"last_name": "Montaghemi", "first_name": "Nourhomadeh"}, "publication": {"title": "Sonnenbichler - Montaghemi, Nourhomadeh", "year": ""}, "library_reference": {"shelfmark": "", "subjects": ""}}, "conversation_id": "ff23a1a1-254c-4a9a-a148-eea7b86664ba", "score": {"f1_score": 0.29, "precision": 0.25, "recall": 0.3333333333333333, "true_positives": 1, "false_positives": 3, "false_negatives": 2, "field_scores": {"type.type": {"response": "Reference", "ground_truth": "Reference", "score": 1.0}, "author.last_name": {"response": "Montaghemi", "ground_truth": "Sonnenbichler", "score": 0.34782608695652173}, "publication.year": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": null, "ground_truth": null, "score": 1.0}, "author.first_name": {"response": "Nourhomadeh", "ground_truth": null, "score": 0.0}, "publication.place": {"response": null, "ground_truth": null, "score": 1.0}, "publication.pages": {"response": null, "ground_truth": null, "score": 1.0}, "publication.format": {"response": null, "ground_truth": null, "score": 1.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "publication.title": {"response": "Sonnenbichler - Montaghemi, Nourhomadeh", "ground_truth": "Montaghemi, Nourhomadeh", "score": 0.7419354838709676}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"msg_0146Ywz43zV4mxg81aCRFx4u\",\"container\":null,\"content\":[{\"id\":\"toolu_01QiJwUmgKfwEEdD6XquTTjA\",\"caller\":{\"type\":\"direct\"},\"input\":{\"type\":{\"type\":\"Reference\"},\"author\":{\"last_name\":\"Montaghemi\",\"first_name\":\"Nourhomadeh\"},\"publication\":{\"title\":\"Sonnenbichler - Montaghemi, Nourhomadeh\",\"year\":\"\"},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"\"}},\"name\":\"extract_structured_data\",\"type\":\"tool_use\"}],\"model\":\"claude-opus-4-7\",\"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\":3289,\"output_tokens\":197,\"server_tool_use\":null,\"service_tier\":\"standard\"},\"stop_details\":null}"}, "scoring": {"f1_micro": 0.9007049345417926, "f1_macro": 0.8916730038022813, "micro_precision": 0.8768627450980392, "micro_recall": 0.925879917184265, "total_instances": 263, "total_tp": 2236, "total_fp": 314, "total_fn": 179, "cost_summary": {"total_input_tokens": 875339, "total_output_tokens": 71670, "total_tokens": 947009, "input_cost_usd": 4.3766950000000024, "output_cost_usd": 1.7917500000000002, "total_cost_usd": 6.168444999999998}}, "pricing": {"bucket_date": "2026-04-21", "age_days": 0, "input_price_per_million": 5.0, "output_price_per_million": 25.0}, "timing": {"total_response_s": 1413.74, "mean_response_s": 5.38, "slowest_response_s": 8.45, "inputs_timed": 263, "inputs_stored": 263, "span_s": 68.89}, "normalized_score": 89.16730038022813}