{"_id": {"$oid": "6a478c6124b401ab26c43d7b"}, "test_id": "T1169", "benchmark": "library_cards", "date": "2026-06-29", "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": "genai", "model": "gemini-3.1-flash-lite", "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\":\"PENTTINEN\",\"first_name\":\"Yrj\u00f6\"},\"publication\":{\"title\":\"Sotasanomat. Inkeril\u00e4inen kansanruno ja sen kansainv\u00e4list\u00e4 taustaa\",\"year\":\"1947\",\"place\":\"Helsinki\",\"pages\":\"267\",\"publisher\":\"Suomalaisen Kirjallisuuden Seuran Toimituksia 232\",\"format\":\"8:o\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"48 AT\",\"subjects\":\"Diss. Hels. Phil.\"}}", "model": "gemini-3.1-flash-lite", "provider": "genai", "finish_reason": "STOP", "usage": {"input_tokens": 1546, "output_tokens": 195, "total_tokens": 1741, "input_cost_usd": 0.0003865, "output_cost_usd": 0.0002925, "estimated_cost_usd": 0.000679}, "duration": 1.398176908493042, "timestamp": "2026-06-29T15:04:48.819023", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "PENTTINEN", "first_name": "Yrj\u00f6"}, "publication": {"title": "Sotasanomat. Inkeril\u00e4inen kansanruno ja sen kansainv\u00e4list\u00e4 taustaa", "year": "1947", "place": "Helsinki", "pages": "267", "publisher": "Suomalaisen Kirjallisuuden Seuran Toimituksia 232", "format": "8:o"}, "library_reference": {"shelfmark": "48 AT", "subjects": "Diss. Hels. Phil."}}, "conversation_id": "3d7cc543-c83f-4b06-9656-70f9f00a0a15", "score": {"f1_score": 0.63, "precision": 0.5454545454545454, "recall": 0.75, "true_positives": 6, "false_positives": 5, "false_negatives": 2, "field_scores": {"publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "author.last_name": {"response": "PENTTINEN", "ground_truth": "Penttinen", "score": 0.11111111111111116}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "author.first_name": {"response": "Yrj\u00f6", "ground_truth": "Yrj\u00f6", "score": 1.0}, "publication.pages": {"response": "267", "ground_truth": "267", "score": 1.0}, "publication.publisher": {"response": "Suomalaisen Kirjallisuuden Seuran Toimituksia 232", "ground_truth": null, "score": 0.0}, "publication.year": {"response": "1947", "ground_truth": 1947, "score": 1.0}, "publication.title": {"response": "Sotasanomat. Inkeril\u00e4inen kansanruno ja sen kansainv\u00e4list\u00e4 taustaa", "ground_truth": "Sotasanomat. Inkeril\u00e4inen kansanruno ja sen kansainv\u00e4list\u00e4 taustaa", "score": 1.0}, "publication.format": {"response": "8:o", "ground_truth": "8", "score": 0.5}, "library_reference.shelfmark": {"response": "48 AT", "ground_truth": null, "score": 0.0}, "publication.place": {"response": "Helsinki", "ground_truth": "Helsinki", "score": 1.0}, "library_reference.subjects": {"response": "Diss. Hels. Phil.", "ground_truth": null, "score": 0.0}}, "total_fields": 12}, "raw_response": "{\"sdk_http_response\":{\"headers\":{\"x-gemini-service-tier\":\"standard\",\"content-type\":\"application/json; charset=UTF-8\",\"vary\":\"Origin, X-Origin, Referer\",\"content-encoding\":\"gzip\",\"date\":\"Mon, 29 Jun 2026 13:04:49 GMT\",\"server\":\"scaffolding on HTTPServer2\",\"x-xss-protection\":\"0\",\"x-frame-options\":\"SAMEORIGIN\",\"x-content-type-options\":\"nosniff\",\"server-timing\":\"gfet4t7; dur=1379\",\"alt-svc\":\"h3=\\\":443\\\"; ma=2592000,h3-29=\\\":443\\\"; ma=2592000\",\"transfer-encoding\":\"chunked\"},\"body\":null},\"candidates\":[{\"content\":{\"parts\":[{\"media_resolution\":null,\"code_execution_result\":null,\"executable_code\":null,\"file_data\":null,\"function_call\":null,\"function_response\":null,\"inline_data\":null,\"text\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"PENTTINEN\\\",\\n    \\\"first_name\\\": \\\"Yrj\u00f6\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Sotasanomat. Inkeril\u00e4inen kansanruno ja sen kansainv\u00e4list\u00e4 taustaa\\\",\\n    \\\"year\\\": \\\"1947\\\",\\n    \\\"place\\\": \\\"Helsinki\\\",\\n    \\\"pages\\\": \\\"267\\\",\\n    \\\"publisher\\\": \\\"Suomalaisen Kirjallisuuden Seuran Toimituksia 232\\\",\\n    \\\"format\\\": \\\"8:o\\\"\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"48 AT\\\",\\n    \\\"subjects\\\": \\\"Diss. Hels. Phil.\\\"\\n  }\\n}\",\"thought\":null,\"thought_signature\":\"EjQKMgEMOdbHWNp_NA0nB9AMb3-FBx3PfzzEjMLHnkKOUi83SDY75Cs9Wm7EUNptJfpfvBWA\",\"video_metadata\":null}],\"role\":\"model\"},\"citation_metadata\":null,\"finish_message\":null,\"token_count\":null,\"finish_reason\":\"STOP\",\"grounding_metadata\":null,\"avg_logprobs\":null,\"index\":0,\"logprobs_result\":null,\"safety_ratings\":null,\"url_context_metadata\":null}],\"create_time\":null,\"model_version\":\"gemini-3.1-flash-lite\",\"prompt_feedback\":null,\"response_id\":\"b21CaqWBPIf2xN8PvZ3fQQ\",\"usage_metadata\":{\"cache_tokens_details\":null,\"cached_content_token_count\":null,\"candidates_token_count\":195,\"candidates_tokens_details\":null,\"prompt_token_count\":1546,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":454},{\"modality\":\"IMAGE\",\"token_count\":1092}],\"thoughts_token_count\":null,\"tool_use_prompt_token_count\":null,\"tool_use_prompt_tokens_details\":null,\"total_token_count\":1741,\"traffic_type\":null},\"automatic_function_calling_history\":[],\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"PENTTINEN\",\"first_name\":\"Yrj\u00f6\"},\"publication\":{\"title\":\"Sotasanomat. Inkeril\u00e4inen kansanruno ja sen kansainv\u00e4list\u00e4 taustaa\",\"year\":\"1947\",\"place\":\"Helsinki\",\"pages\":\"267\",\"publisher\":\"Suomalaisen Kirjallisuuden Seuran Toimituksia 232\",\"format\":\"8:o\"},\"library_reference\":{\"shelfmark\":\"48 AT\",\"subjects\":\"Diss. Hels. Phil.\"}}}"}, "scoring": {"f1_micro": 0.8168348722353448, "f1_macro": 0.7576425855513308, "micro_precision": 0.848349687778769, "micro_recall": 0.7875776397515528, "total_instances": 263, "total_tp": 1902, "total_fp": 340, "total_fn": 513, "cost_summary": {"total_input_tokens": 352209, "total_output_tokens": 41009, "total_tokens": 393218, "input_cost_usd": 0.08805224999999979, "output_cost_usd": 0.06151349999999999, "total_cost_usd": 0.14956575}}, "normalized_score": 75.76425855513308}