{"_id": {"$oid": "6abd11422c9d37fedb8af53c"}, "test_id": "T0408", "benchmark": "library_cards", "date": "2025-11-25", "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": "openai", "model": "gpt-5.1-2025-11-13", "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\":\"\",\"year\":\"\",\"place\":\"\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"Sonnenbichler - Montaghemi, Nourhomadeh\"}}", "model": "gpt-5.1-2025-11-13", "provider": "openai", "finish_reason": "stop", "usage": {"input_tokens": 1387, "output_tokens": 85, "total_tokens": 1472, "input_cost_usd": 0.00173375, "output_cost_usd": 0.0008500000000000001, "estimated_cost_usd": 0.00258375}, "duration": 2.970639944076538, "timestamp": "2025-11-25T10:28:33.860137", "parsed": {"type": {"type": "Reference"}, "author": {"last_name": "Montaghemi", "first_name": "Nourhomadeh"}, "publication": {"title": "", "year": "", "place": "", "pages": "", "publisher": "", "format": "", "editor": null}, "library_reference": {"shelfmark": "", "subjects": "Sonnenbichler - Montaghemi, Nourhomadeh"}}, "score": {"f1_score": 0.29, "precision": 0.25, "recall": 0.3333333333333333, "true_positives": 1, "false_positives": 3, "false_negatives": 2, "field_scores": {"author.last_name": {"response": "Montaghemi", "ground_truth": "Sonnenbichler", "score": 0.34782608695652173}, "author.first_name": {"response": "Nourhomadeh", "ground_truth": null, "score": 0.0}, "publication.pages": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.subjects": {"response": "Sonnenbichler - Montaghemi, Nourhomadeh", "ground_truth": null, "score": 0.0}, "library_reference.shelfmark": {"response": null, "ground_truth": null, "score": 1.0}, "publication.place": {"response": null, "ground_truth": null, "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "publication.title": {"response": null, "ground_truth": "Montaghemi, Nourhomadeh", "score": 0.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "publication.format": {"response": null, "ground_truth": null, "score": 1.0}, "publication.year": {"response": null, "ground_truth": null, "score": 1.0}, "type.type": {"response": "Reference", "ground_truth": "Reference", "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"chatcmpl-CfjdXMNkNElzSPmgc7ZAIBRBBdEkl\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\\"type\\\":{\\\"type\\\":\\\"Reference\\\"},\\\"author\\\":{\\\"last_name\\\":\\\"Montaghemi\\\",\\\"first_name\\\":\\\"Nourhomadeh\\\"},\\\"publication\\\":{\\\"title\\\":\\\"\\\",\\\"year\\\":\\\"\\\",\\\"place\\\":\\\"\\\",\\\"pages\\\":\\\"\\\",\\\"publisher\\\":\\\"\\\",\\\"format\\\":\\\"\\\"   ,\\\"editor\\\":null},\\\"library_reference\\\":{\\\"shelfmark\\\":\\\"\\\",\\\"subjects\\\":\\\"Sonnenbichler - Montaghemi, Nourhomadeh\\\"}}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Reference\"},\"author\":{\"last_name\":\"Montaghemi\",\"first_name\":\"Nourhomadeh\"},\"publication\":{\"title\":\"\",\"year\":\"\",\"place\":\"\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"Sonnenbichler - Montaghemi, Nourhomadeh\"}}}}],\"created\":1764062911,\"model\":\"gpt-5.1-2025-11-13\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":85,\"prompt_tokens\":1387,\"total_tokens\":1472,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}"}, "scoring": {"f1_micro": 0.8218438538205981, "f1_macro": 0.818212927756654, "micro_precision": 0.8242399000416493, "micro_recall": 0.8194616977225673, "total_instances": 263, "total_tp": 1979, "total_fp": 422, "total_fn": 436, "cost_summary": {"total_input_tokens": 365175, "total_output_tokens": 33217, "total_tokens": 398392, "input_cost_usd": 0.45646874999999804, "output_cost_usd": 0.33216999999999997, "total_cost_usd": 0.7886387499999997}}, "pricing": {"bucket_date": "2025-11-24", "age_days": 1, "input_price_per_million": 1.25, "output_price_per_million": 10.0}, "timing": {"total_response_s": 17931.9, "mean_response_s": 68.18, "slowest_response_s": 1805.73, "inputs_timed": 263, "inputs_stored": 263, "span_s": 17929.86}, "normalized_score": 81.8212927756654}