{"_id": {"$oid": "6a26c67c3572c06bc1455e00"}, "test_id": "T0975", "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": "openrouter", "model": "qwen/qwen3.5-flash-02-23", "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\":\"Sigl\",\"first_name\":\"Johann\"},\"publication\":{\"title\":\"Ueber die Brauchbarkeit der Serumkochprobe zur Diagnose der Syphilis im 2.Stadium\",\"year\":\"1957\",\"place\":\"M\u00fcnchen\",\"pages\":\"16\",\"publisher\":\"Inaug.-Diss.Med.Fak.Ludwig-Maximilian-Univ.\",\"format\":\"4'\",\"editor\":\"\"},\"library_reference\":{\"shelfmark\":\"Diss.M\u00fcnchen Univ.1957 4'\",\"subjects\":\"\"}}", "model": "qwen/qwen3.5-flash-20260224", "provider": "openrouter", "finish_reason": "stop", "usage": {"input_tokens": 1821, "output_tokens": 203, "total_tokens": 2024, "input_cost_usd": 0.000118365, "output_cost_usd": 5.278e-05, "estimated_cost_usd": 0.000171145}, "duration": 2.004913806915283, "timestamp": "2026-04-21T13:41:26.004500", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Sigl", "first_name": "Johann"}, "publication": {"title": "Ueber die Brauchbarkeit der Serumkochprobe zur Diagnose der Syphilis im 2.Stadium", "year": "1957", "place": "M\u00fcnchen", "pages": "16", "publisher": "Inaug.-Diss.Med.Fak.Ludwig-Maximilian-Univ.", "format": "4'", "editor": ""}, "library_reference": {"shelfmark": "Diss.M\u00fcnchen Univ.1957 4'", "subjects": ""}}, "conversation_id": "fe50edd7-c9ef-42f3-a8c7-e8fc8b0bd382", "score": {"f1_score": 0.67, "precision": 0.6, "recall": 0.75, "true_positives": 6, "false_positives": 4, "false_negatives": 2, "field_scores": {"publication.publisher": {"response": "Inaug.-Diss.Med.Fak.Ludwig-Maximilian-Univ.", "ground_truth": null, "score": 0.0}, "publication.year": {"response": "1957", "ground_truth": 1957, "score": 1.0}, "publication.title": {"response": "Ueber die Brauchbarkeit der Serumkochprobe zur Diagnose der Syphilis im 2.Stadium", "ground_truth": "Ueber die Brauchbarkeit der Serumkochprobe zur Diagnose der Syphilis im 2. Stadium. Inaug.-Diss. Med. Fak. Ludwig-Maximilian-Univ. M\u00fcnchen", "score": 0.7397260273972602}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "author.first_name": {"response": "Johann", "ground_truth": "Johann", "score": 1.0}, "library_reference.shelfmark": {"response": "Diss.M\u00fcnchen Univ.1957 4'", "ground_truth": "Diss. M\u00fcnchen Univ. 1957", "score": 0.8979591836734694}, "publication.pages": {"response": "16", "ground_truth": "16", "score": 1.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.place": {"response": "M\u00fcnchen", "ground_truth": null, "score": 0.0}, "publication.format": {"response": "4'", "ground_truth": "4'", "score": 1.0}, "author.last_name": {"response": "Sigl", "ground_truth": "Sigl", "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"gen-1776771684-smkvQAkLE48Yh085Jbgg\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"Sigl\\\",\\n    \\\"first_name\\\": \\\"Johann\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Ueber die Brauchbarkeit der Serumkochprobe zur Diagnose der Syphilis im 2.Stadium\\\",\\n    \\\"year\\\":  \\t\\\"1957\\\",\\n    \\\"place\\\": \\\"M\u00fcnchen\\\",\\n    \\\"pages\\\": \\\"16\\\",\\n    \\\"publisher\\\": \\\"Inaug.-Diss.Med.Fak.Ludwig-Maximilian-Univ.\\\",\\n    \\\"format\\\": \\\"4'\\\"\\n \\t,\\n    \\\"editor\\\": \\\"\\\"\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"Diss.M\u00fcnchen Univ.1957 4'\\\",\\n    \\\"subjects\\\": \\\"\\\"\\n  }\\n}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":null,\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Sigl\",\"first_name\":\"Johann\"},\"publication\":{\"title\":\"Ueber die Brauchbarkeit der Serumkochprobe zur Diagnose der Syphilis im 2.Stadium\",\"year\":\"1957\",\"place\":\"M\u00fcnchen\",\"pages\":\"16\",\"publisher\":\"Inaug.-Diss.Med.Fak.Ludwig-Maximilian-Univ.\",\"format\":\"4'\",\"editor\":\"\"},\"library_reference\":{\"shelfmark\":\"Diss.M\u00fcnchen Univ.1957 4'\",\"subjects\":\"\"}},\"reasoning\":null},\"native_finish_reason\":\"stop\"}],\"created\":1776771684,\"model\":\"qwen/qwen3.5-flash-20260224\",\"object\":\"chat.completion\",\"service_tier\":null,\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":203,\"prompt_tokens\":1821,\"total_tokens\":2024,\"completion_tokens_details\":{\"accepted_prediction_tokens\":null,\"audio_tokens\":0,\"reasoning_tokens\":0,\"rejected_prediction_tokens\":null,\"image_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":0,\"cache_write_tokens\":0,\"video_tokens\":0},\"cost\":0.000171145,\"is_byok\":false,\"cost_details\":{\"upstream_inference_cost\":0.000171145,\"upstream_inference_prompt_cost\":0.000118365,\"upstream_inference_completions_cost\":0.00005278}},\"provider\":\"Alibaba\"}"}, "scoring": {"f1_micro": 0.8459405940594059, "f1_macro": 0.8387072243346007, "micro_precision": 0.8106261859582543, "micro_recall": 0.884472049689441, "total_instances": 263, "total_tp": 2136, "total_fp": 499, "total_fn": 279, "cost_summary": {"total_input_tokens": 476242, "total_output_tokens": 50946, "total_tokens": 527188, "input_cost_usd": 0.03095572999999993, "output_cost_usd": 0.013245959999999989, "total_cost_usd": 0.04420168999999999}}, "normalized_score": 83.87072243346006}