{"_id": {"$oid": "6a671d25338dadb0be4e84d8"}, "test_id": "T1365", "benchmark": "library_cards", "date": "2026-07-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.6-terra", "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\":\"Ammann\",\"first_name\":\"Isaac\"},\"publication\":{\"title\":\"Dissertatio inauguralis medica exhibens historiam succinctam de morbis virginum\",\"year\":\"1770\",\"place\":\"Argentorati\",\"pages\":\"42\",\"publisher\":\"\",\"format\":\"4\u00b0\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss. 107, No. 15\",\"subjects\":\"\"}}", "model": "gpt-5.6-terra", "provider": "openai", "finish_reason": "stop", "usage": {"input_tokens": 1681, "output_tokens": 616, "total_tokens": 2297, "input_cost_usd": 0.0042025, "output_cost_usd": 0.00924, "estimated_cost_usd": 0.0134425}, "duration": 7.358400106430054, "timestamp": "2026-07-25T20:38:24.873550", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Ammann", "first_name": "Isaac"}, "publication": {"title": "Dissertatio inauguralis medica exhibens historiam succinctam de morbis virginum", "year": "1770", "place": "Argentorati", "pages": "42", "publisher": "", "format": "4\u00b0", "editor": null}, "library_reference": {"shelfmark": "Diss. 107, No. 15", "subjects": ""}}, "conversation_id": "d56d2b43-f830-4653-86e0-42786a5fce00", "score": {"f1_score": 0.82, "precision": 0.7777777777777778, "recall": 0.875, "true_positives": 7, "false_positives": 2, "false_negatives": 1, "field_scores": {"publication.title": {"response": "Dissertatio inauguralis medica exhibens historiam succinctam de morbis virginum", "ground_truth": "Dissertatio inauguralis medica exhibens historiam succinctam de morbis virginum", "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "publication.place": {"response": "Argentorati", "ground_truth": "Argentorati", "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "publication.pages": {"response": "42", "ground_truth": "42", "score": 1.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.format": {"response": "4\u00b0", "ground_truth": null, "score": 0.0}, "publication.year": {"response": "1770", "ground_truth": 1770, "score": 1.0}, "author.first_name": {"response": "Isaac", "ground_truth": "Isaac", "score": 1.0}, "author.last_name": {"response": "Ammann", "ground_truth": "Ottmann", "score": 0.6153846153846154}, "library_reference.shelfmark": {"response": "Diss. 107, No. 15", "ground_truth": "Diss. 107, Nr. 15", "score": 0.9411764705882352}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"chatcmpl-E5bYIJCa7XVie6EF7OSXT7PdxS9dr\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\\"author\\\":{\\\"first_name\\\":\\\"Isaac\\\",\\\"last_name\\\":\\\"Ammann\\\"},\\\"library_reference\\\":{\\\"shelfmark\\\":\\\"Diss. 107, No. 15\\\",\\\"subjects\\\":\\\"\\\"},\\\"publication\\\":{\\\"editor\\\":null,\\\"format\\\":\\\"4\u00b0\\\",\\\"pages\\\":\\\"42\\\",\\\"place\\\":\\\"Argentorati\\\",\\\"publisher\\\":\\\"\\\",\\\"title\\\":\\\"Dissertatio inauguralis medica exhibens historiam succinctam de morbis virginum\\\",\\\"year\\\":\\\"1770\\\"},\\\"type\\\":{\\\"type\\\":\\\"Dissertation or thesis\\\"}}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":[],\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Ammann\",\"first_name\":\"Isaac\"},\"publication\":{\"title\":\"Dissertatio inauguralis medica exhibens historiam succinctam de morbis virginum\",\"year\":\"1770\",\"place\":\"Argentorati\",\"pages\":\"42\",\"publisher\":\"\",\"format\":\"4\u00b0\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss. 107, No. 15\",\"subjects\":\"\"}}}}],\"created\":1785004698,\"model\":\"gpt-5.6-terra\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":616,\"prompt_tokens\":1681,\"total_tokens\":2297,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":506,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0}}}"}, "scoring": {"f1_micro": 0.8516393442622949, "f1_macro": 0.8455893536121672, "micro_precision": 0.8430020283975659, "micro_recall": 0.8604554865424431, "total_instances": 263, "total_tp": 2078, "total_fp": 387, "total_fn": 337, "cost_summary": {"total_input_tokens": 444407, "total_output_tokens": 75032, "total_tokens": 519439, "input_cost_usd": 1.111017500000001, "output_cost_usd": 1.1254800000000005, "total_cost_usd": 2.236497500000001}}, "normalized_score": 84.55893536121673}