{"_id": {"$oid": "69d4eb12b877594bc5718cb7"}, "test_id": "T0657", "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": "openai", "model": "gpt-5.4-2026-03-05", "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\":\"Sell\u00e8s\",\"first_name\":\"Manuel\"},\"publication\":{\"title\":\"De la contestation pour inexactitude de la reconnaissance des enfants naturels\",\"year\":\"1945\",\"place\":\"Alger\",\"pages\":\"160\",\"publisher\":\"la Typo-litho et J. Carbonel r\u00e9unies\",\"format\":\"8\u00b0\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss.Alger Droit 1945.\",\"subjects\":\"Facult\u00e9 de droit\"}}", "model": "gpt-5.4-2026-03-05", "provider": "openai", "finish_reason": "stop", "usage": {"input_tokens": 1682, "output_tokens": 115, "total_tokens": 1797, "input_cost_usd": 0.0042049999999999995, "output_cost_usd": 0.001725, "estimated_cost_usd": 0.0059299999999999995}, "duration": 2.4310460090637207, "timestamp": "2026-03-16T17:07:18.827460", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Sell\u00e8s", "first_name": "Manuel"}, "publication": {"title": "De la contestation pour inexactitude de la reconnaissance des enfants naturels", "year": "1945", "place": "Alger", "pages": "160", "publisher": "la Typo-litho et J. Carbonel r\u00e9unies", "format": "8\u00b0", "editor": null}, "library_reference": {"shelfmark": "Diss.Alger Droit 1945.", "subjects": "Facult\u00e9 de droit"}}, "conversation_id": "cbcda28a-ac8a-4fd1-bff7-bd1178b34e1a", "score": {"f1_score": 0.86, "precision": 0.8181818181818182, "recall": 0.9, "true_positives": 9, "false_positives": 2, "false_negatives": 1, "field_scores": {"publication.year": {"response": "1945", "ground_truth": 1945, "score": 1.0}, "library_reference.shelfmark": {"response": "Diss.Alger Droit 1945.", "ground_truth": "Diss.Alger Droit 1945.", "score": 1.0}, "author.first_name": {"response": "Manuel", "ground_truth": "Manuel", "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "author.last_name": {"response": "Sell\u00e8s", "ground_truth": "Sell\u00e8s", "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "publication.title": {"response": "De la contestation pour inexactitude de la reconnaissance des enfants naturels", "ground_truth": "De la Contestation pour inexactitude de la reconnaissance des enfants naturels", "score": 0.9871794871794873}, "publication.publisher": {"response": "la Typo-litho et J. Carbonel r\u00e9unies", "ground_truth": "Impr. \u00ab la Typo-litho \u00bb et J. Carbonel r\u00e9unies", "score": 0.878048780487805}, "library_reference.subjects": {"response": "Facult\u00e9 de droit", "ground_truth": null, "score": 0.0}, "publication.place": {"response": "Alger", "ground_truth": "Alger", "score": 1.0}, "publication.pages": {"response": "160", "ground_truth": "160", "score": 1.0}, "publication.format": {"response": "8\u00b0", "ground_truth": "8\u00b0", "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"chatcmpl-DK4lP66bLpbkyIp5Z3cTP7RH140y3\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\\"type\\\":{\\\"type\\\":\\\"Dissertation or thesis\\\"},\\\"author\\\":{\\\"last_name\\\":\\\"Sell\u00e8s\\\",\\\"first_name\\\":\\\"Manuel\\\"},\\\"publication\\\":{\\\"title\\\":\\\"De la contestation pour inexactitude de la reconnaissance des enfants naturels\\\",\\\"year\\\":\\\"1945\\\",\\\"place\\\":\\\"Alger\\\",\\\"pages\\\":\\\"160\\\",\\\"publisher\\\":\\\"la Typo-litho et J. Carbonel r\u00e9unies\\\",\\\"format\\\":\\\"8\u00b0\\\",\\\"editor\\\":null},\\\"library_reference\\\":{\\\"shelfmark\\\":\\\"Diss.Alger Droit 1945.\\\",\\\"subjects\\\":\\\"Facult\u00e9 de droit\\\"}}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Sell\u00e8s\",\"first_name\":\"Manuel\"},\"publication\":{\"title\":\"De la contestation pour inexactitude de la reconnaissance des enfants naturels\",\"year\":\"1945\",\"place\":\"Alger\",\"pages\":\"160\",\"publisher\":\"la Typo-litho et J. Carbonel r\u00e9unies\",\"format\":\"8\u00b0\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss.Alger Droit 1945.\",\"subjects\":\"Facult\u00e9 de droit\"}}}}],\"created\":1773677243,\"model\":\"gpt-5.4-2026-03-05\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":115,\"prompt_tokens\":1682,\"total_tokens\":1797,\"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.8310282621767889, "f1_macro": 0.8243346007604563, "micro_precision": 0.8053613053613053, "micro_recall": 0.8583850931677018, "total_instances": 263, "total_tp": 2073, "total_fp": 501, "total_fn": 342, "cost_summary": {"total_input_tokens": 444670, "total_output_tokens": 55735, "total_tokens": 500405, "input_cost_usd": 1.1116750000000013, "output_cost_usd": 0.836025, "total_cost_usd": 1.9476999999999995}}, "normalized_score": 82.43346007604563}