{"_id": {"$oid": "6a26c67c3572c06bc1455db8"}, "test_id": "T1001", "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": "google/gemma-4-26b-a4b-it", "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\":\"Stockmann\",\"first_name\":\"Bernd-Ulrich\"},\"publication\":{\"title\":\"Erfahrungen mit der fr\u00fchzeitigen varisierenden und derotierenden Osteotomie bei der Behandlung der sogenannten angeborenen H\u00fcftverrenkung\",\"year\":\"1972\",\"place\":\"K\u00f6ln\",\"pages\":\"61\",\"publisher\":\"Diss.K\u00f6ln.\",\"format\":\"8'\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss.1972,4398\",\"subjects\":\"2/H\u00fcft-Gelenk-Luxation,kongenitale/H\u00fcft-Gelenke. Chirurgie/ Diss\"}}", "model": "google/gemma-4-26b-a4b-it-20260403", "provider": "openrouter", "finish_reason": "stop", "usage": {"input_tokens": 758, "output_tokens": 232, "total_tokens": 990, "cached_tokens": 448, "input_cost_usd": 6.064e-05, "output_cost_usd": 8.12e-05, "estimated_cost_usd": 0.00014184}, "duration": 3.575723648071289, "timestamp": "2026-04-21T14:40:51.948150", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Stockmann", "first_name": "Bernd-Ulrich"}, "publication": {"title": "Erfahrungen mit der fr\u00fchzeitigen varisierenden und derotierenden Osteotomie bei der Behandlung der sogenannten angeborenen H\u00fcftverrenkung", "year": "1972", "place": "K\u00f6ln", "pages": "61", "publisher": "Diss.K\u00f6ln.", "format": "8'", "editor": null}, "library_reference": {"shelfmark": "Diss.1972,4398", "subjects": "2/H\u00fcft-Gelenk-Luxation,kongenitale/H\u00fcft-Gelenke. Chirurgie/ Diss"}}, "conversation_id": "ed539575-b5ed-4d6b-97fd-2413e0efcf42", "score": {"f1_score": 0.95, "precision": 0.9090909090909091, "recall": 1.0, "true_positives": 10, "false_positives": 1, "false_negatives": 0, "field_scores": {"type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "library_reference.shelfmark": {"response": "Diss.1972,4398", "ground_truth": "Diss.1972,4398", "score": 1.0}, "publication.format": {"response": "8'", "ground_truth": "8'", "score": 1.0}, "publication.publisher": {"response": "Diss.K\u00f6ln.", "ground_truth": null, "score": 0.0}, "publication.year": {"response": "1972", "ground_truth": 1972, "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.subjects": {"response": "2/H\u00fcft-Gelenk-Luxation,kongenitale/H\u00fcft-Gelenke. Chirurgie/ Diss", "ground_truth": "2/H\u00fcft-Gelenk-Luxation,kongenitale/H\u00fcft-Gelenke. Chirurgie/ Diss", "score": 1.0}, "publication.title": {"response": "Erfahrungen mit der fr\u00fchzeitigen varisierenden und derotierenden Osteotomie bei der Behandlung der sogenannten angeborenen H\u00fcftverrenkung", "ground_truth": "Erfahrungen mit der fr\u00fchzeitigen varisierenden und derotierenden Osteotomie bei der Behandlung der sogenannten angeborenen H\u00fcftverrenkung", "score": 1.0}, "publication.pages": {"response": "61", "ground_truth": "61", "score": 1.0}, "publication.place": {"response": "K\u00f6ln", "ground_truth": "K\u00f6ln", "score": 1.0}, "author.first_name": {"response": "Bernd-Ulrich", "ground_truth": "Bernd-Ulrich", "score": 1.0}, "author.last_name": {"response": "Stockmann", "ground_truth": "Stockmann", "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"gen-1776775248-GiOtUIb6WUQXOQb66z7F\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"Stockmann\\\",\\n    \\\"first_name\\\": \\\"Bernd-Ulrich\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Erfahrungen mit der fr\u00fchzeitigen varisierenden und derotierenden Osteotomie bei der Behandlung der sogenannten angeborenen H\u00fcftverrenkung\\\",\\n    \\\"year\\\": \\n    \\\"1972\\\",\\n    \\\"place\\\": \\\"K\u00f6ln\\\",\\n    \\\"pages\\\": \\\"61\\\",\\n    \\\"publisher\\\": \\\"Diss.K\u00f6ln.\\\",\\n    \\\"format\\\": \\\"8'\\\"\\n  ,\\n  \\\"editor\\\": null\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"Diss.1972,4398\\\",\\n    \\\"subjects\\\": \\\"2/H\u00fcft-Gelenk-Luxation,kongenitale/H\u00fcft-Gelenke. Chirurgie/ Diss\\\"\\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\":\"Stockmann\",\"first_name\":\"Bernd-Ulrich\"},\"publication\":{\"title\":\"Erfahrungen mit der fr\u00fchzeitigen varisierenden und derotierenden Osteotomie bei der Behandlung der sogenannten angeborenen H\u00fcftverrenkung\",\"year\":\"1972\",\"place\":\"K\u00f6ln\",\"pages\":\"61\",\"publisher\":\"Diss.K\u00f6ln.\",\"format\":\"8'\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Diss.1972,4398\",\"subjects\":\"2/H\u00fcft-Gelenk-Luxation,kongenitale/H\u00fcft-Gelenke. Chirurgie/ Diss\"}},\"reasoning\":null},\"native_finish_reason\":\"stop\"}],\"created\":1776775248,\"model\":\"google/gemma-4-26b-a4b-it-20260403\",\"object\":\"chat.completion\",\"service_tier\":null,\"system_fingerprint\":null,\"usage\":{\"completion_tokens\":232,\"prompt_tokens\":758,\"total_tokens\":990,\"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\":448,\"cache_write_tokens\":0,\"video_tokens\":0},\"cost\":0.0001462,\"is_byok\":false,\"cost_details\":{\"upstream_inference_cost\":0.0001462,\"upstream_inference_prompt_cost\":0.0000534,\"upstream_inference_completions_cost\":0.0000928}},\"provider\":\"Parasail\"}"}, "scoring": {"f1_micro": 0.8052601044285439, "f1_macro": 0.7971482889733841, "micro_precision": 0.7554426705370102, "micro_recall": 0.8621118012422361, "total_instances": 263, "total_tp": 2082, "total_fp": 674, "total_fn": 333, "cost_summary": {"total_input_tokens": 204857, "total_output_tokens": 54765, "total_tokens": 259622, "input_cost_usd": 0.016388560000000062, "output_cost_usd": 0.019167749999999994, "total_cost_usd": 0.03555631}}, "normalized_score": 79.7148288973384}