{"_id": {"$oid": "69d4eb12b877594bc5718c4d"}, "test_id": "T0586", "benchmark": "personnel_cards", "date": "2026-02-09", "tags": {"document-type": ["index-card"], "writing": ["handwritten", "typed", "printed"], "century": [20], "layout": ["table", "form"], "task": ["transcription", "document-understanding", "data-correction"], "language": ["de", "fr"]}, "contributors": ["tabea_wullschleger", "maximilian_hindermann"], "hidden": false, "config": {"provider": "genai", "model": "gemini-2.0-flash", "dataclass": "Table", "temperature": 0.0, "role_description": "You are a historian specializing in 20th century personnel records and administrative documents", "prompt_file": "prompt.txt", "legacy_test": false}, "prompt": "Extract all information from this personnel card table and return it as a structured JSON object. The card contains rows documenting employment history with positions, locations, salary information, dates, and remarks.\n\nREQUIRED JSON STRUCTURE:\n```json\n{\n  \"rows\": [\n    {\n      \"row_number\": 1,\n      \"dienstliche_stellung\": {\n        \"diplomatic_transcript\": \"exact text from card\",\n        \"interpretation\": \"expanded/standardized form or null\",\n        \"is_crossed_out\": false\n      },\n      \"dienstort\": {\n        \"diplomatic_transcript\": \"exact text from card\",\n        \"interpretation\": \"expanded/standardized form or null\",\n        \"is_crossed_out\": false\n      },\n      \"gehaltsklasse\": {\n        \"diplomatic_transcript\": \"exact text from card\",\n        \"interpretation\": \"expanded/standardized form or null\",\n        \"is_crossed_out\": false\n      },\n      \"jahresgehalt_monatsgehalt_taglohn\": {\n        \"diplomatic_transcript\": \"exact text from card\",\n        \"interpretation\": \"standardized numeric form or null\",\n        \"is_crossed_out\": false\n      },\n      \"datum_gehalts\u00e4nderung\": {\n        \"diplomatic_transcript\": \"exact text from card\",\n        \"interpretation\": \"YYYY-MM-DD format or null\",\n        \"is_crossed_out\": false\n      },\n      \"bemerkungen\": {\n        \"diplomatic_transcript\": \"exact text from card\",\n        \"interpretation\": \"expanded/standardized form or null\",\n        \"is_crossed_out\": false\n      }\n    }\n  ]\n}\n```\n\nCOLUMN DEFINITIONS:\n1. **dienstliche_stellung**: Official position or job title (e.g., \"Assistent\", \"Professor\", \"Sekret\u00e4r\")\n2. **dienstort**: Place of service or work location (e.g., \"Basel\", \"Z\u00fcrich\")\n3. **gehaltsklasse**: Salary class or grade (e.g., \"III\", \"IV\", roman numerals or numbers)\n4. **jahresgehalt_monatsgehalt_taglohn**: Salary amount (annual/monthly/daily wage)\n5. **datum_gehalts\u00e4nderung**: Date of salary change or effective date\n6. **bemerkungen**: Remarks, notes, or additional comments\n\nFIELD EXTRACTION RULES:\n\n**diplomatic_transcript** (REQUIRED for all fields):\n- Transcribe EXACTLY as written on the card\n- Include all abbreviations, punctuation, and formatting as they appear\n- Preserve original capitalization and spacing\n- Include currency symbols and separators (e.g., \"Fr. 2'400.-\", \"3.700.-\")\n- For dates, copy the exact format (e.g., \"1. Jan. 1946\", \"1.April 1945\")\n- Use empty string \"\" for empty cells\n- Be sure to escape ditto marks (repetition marks such as `\"` indicating \"same as above\")\n- DO NOT expand abbreviations or standardize formats\n- Do not transcribe checkmarks\n\n**interpretation** (OPTIONAL - use null if not applicable):\n- For ditto marks (repetition marks such as `\"`): Replace with the actual repeated value from the previous row in the same column\n  - For example, if previous row's dienstliche_stellung is \"Hilfsleiterin\" and current row has `\"`, interpret as \"Hilfsleiterin\"\n  - Do NOT add explanatory text like \"wie oben\" or similar - just provide the repeated value\n- Never expand abbreviations\n- For dates: Convert to ISO format YYYY-MM-DD\n  - \"1. Jan. 1946\" \u2192 \"1946-01-01\"\n  - \"1.April 1945\" \u2192 \"1945-04-01\"\n- For salary amounts: Extract numeric value only (remove currency symbols, separators)\n  - \"Fr. 2'400.-\" \u2192 \"2400\"\n  - \"3.700.-\" \u2192 \"3700\"\n  - \"5.094.-\" \u2192 \"5094\"\n  \"6,30.-\" \u2192 \"6.3\"\n- For salary class: Convert roman numerals to arabic if clear\n  - \"III\" \u2192 \"3\"\n  - \"IV\" \u2192 \"4\"\n- Do not convert roman numerals to arabic if not salary, date, or salary class\n- Use null if no interpretation/expansion is needed or if the field is empty\n- \"+ {word}\" where {word} is a word does not need interpretation\n\n**is_crossed_out** (REQUIRED for all fields):\n- Set to true if text in this field is crossed out, struck through, or deleted\n- Set to false if text is normal (not crossed out)\n- Empty cells should have is_crossed_out: false\n\nROW HANDLING:\n- Number rows sequentially starting from 1 (top to bottom)\n- Include ALL rows that have ANY content in ANY column\n- Empty rows (all cells empty) should be omitted\n- A row with only one filled cell should still be included\n\nIMPORTANT NOTES:\n- Return ONLY the JSON object, no additional text or explanation\n- Every field must have all three sub-fields: diplomatic_transcript, interpretation, is_crossed_out\n- diplomatic_transcript must never be null (use empty string \"\" for empty cells)\n- interpretation can be null when no expansion/standardization applies\n- Process the entire table from top to bottom\n- Maintain consistent row numbering throughout\n", "results": {"text": "{\"rows\":[{\"row_number\":1,\"dienstliche_stellung\":{\"diplomatic_transcript\":\"Hilfsleiter\",\"interpretation\":null,\"is_crossed_out\":false},\"dienstort\":{\"diplomatic_transcript\":\"\",\"interpretation\":null,\"is_crossed_out\":false},\"gehaltsklasse\":{\"diplomatic_transcript\":\"\u2713\",\"interpretation\":null,\"is_crossed_out\":false},\"jahresgehalt_monatsgehalt_taglohn\":{\"diplomatic_transcript\":\"4800.+\",\"interpretation\":\"4800\",\"is_crossed_out\":false},\"datum_gehalts\u00e4nderung\":{\"diplomatic_transcript\":\"17. Dez.\",\"interpretation\":\"1945-12-17\",\"is_crossed_out\":false},\"bemerkungen\":{\"diplomatic_transcript\":\"+ Zulagen\",\"interpretation\":null,\"is_crossed_out\":false}}]}", "model": "gemini-2.0-flash", "provider": "genai", "finish_reason": "STOP", "usage": {"input_tokens": 3626, "output_tokens": 297, "total_tokens": 3923, "input_cost_usd": 0.00036260000000000003, "output_cost_usd": 0.00011880000000000001, "estimated_cost_usd": 0.00048140000000000005}, "duration": 3.146131753921509, "timestamp": "2026-02-09T16:26:50.980615", "parsed": {"rows": [{"row_number": 1, "dienstliche_stellung": {"diplomatic_transcript": "Hilfsleiter", "interpretation": null, "is_crossed_out": false}, "dienstort": {"diplomatic_transcript": "", "interpretation": null, "is_crossed_out": false}, "gehaltsklasse": {"diplomatic_transcript": "\u2713", "interpretation": null, "is_crossed_out": false}, "jahresgehalt_monatsgehalt_taglohn": {"diplomatic_transcript": "4800.+", "interpretation": "4800", "is_crossed_out": false}, "datum_gehalts\u00e4nderung": {"diplomatic_transcript": "17. Dez.", "interpretation": "1945-12-17", "is_crossed_out": false}, "bemerkungen": {"diplomatic_transcript": "+ Zulagen", "interpretation": null, "is_crossed_out": false}}]}, "conversation_id": "92ba08cc-793f-4f3f-9339-cebbeb146212", "score": {"f1_score": 0.8, "precision": 0.7692307692307693, "recall": 0.8333333333333334, "true_positives": 10, "false_positives": 3, "false_negatives": 2, "field_scores": {"rows[0].dienstliche_stellung.interpretation": {"response": null, "ground_truth": null, "score": 1.0}, "rows[0].gehaltsklasse.is_crossed_out": {"response": false, "ground_truth": false, "score": 1.0}, "rows[0].jahresgehalt_monatsgehalt_taglohn.interpretation": {"response": "4800", "ground_truth": "4800", "score": 1.0}, "rows[0].datum_gehalts\u00e4nderung.interpretation": {"response": "1945-12-17", "ground_truth": "1945-12-17", "score": 1.0}, "rows[0].jahresgehalt_monatsgehalt_taglohn.is_crossed_out": {"response": false, "ground_truth": false, "score": 1.0}, "rows[0].bemerkungen.interpretation": {"response": null, "ground_truth": null, "score": 1.0}, "rows[0].gehaltsklasse.diplomatic_transcript": {"response": "\u2713", "ground_truth": null, "score": 0.0}, "rows[0].datum_gehalts\u00e4nderung.diplomatic_transcript": {"response": "17. Dez.", "ground_truth": "17. Dez. 45", "score": 0.8421052631578947}, "rows[0].dienstort.diplomatic_transcript": {"response": null, "ground_truth": null, "score": 1.0}, "rows[0].datum_gehalts\u00e4nderung.is_crossed_out": {"response": false, "ground_truth": false, "score": 1.0}, "rows[0].bemerkungen.is_crossed_out": {"response": false, "ground_truth": false, "score": 1.0}, "rows[0].dienstort.is_crossed_out": {"response": false, "ground_truth": false, "score": 1.0}, "rows[0].dienstort.interpretation": {"response": null, "ground_truth": null, "score": 1.0}, "rows[0].bemerkungen.diplomatic_transcript": {"response": "+ Zulagen", "ground_truth": "+ Zulagen", "score": 1.0}, "rows[0].jahresgehalt_monatsgehalt_taglohn.diplomatic_transcript": {"response": "4800.+", "ground_truth": "4800.-", "score": 0.8333333333333335}, "rows[0].dienstliche_stellung.diplomatic_transcript": {"response": "Hilfsleiter", "ground_truth": "Hilfsleiter", "score": 1.0}, "rows[0].gehaltsklasse.interpretation": {"response": null, "ground_truth": null, "score": 1.0}, "rows[0].dienstliche_stellung.is_crossed_out": {"response": false, "ground_truth": false, "score": 1.0}}, "total_fields": 19}, "raw_response": "{\"sdk_http_response\":{\"headers\":{\"content-type\":\"application/json; charset=UTF-8\",\"vary\":\"Origin, X-Origin, Referer\",\"content-encoding\":\"gzip\",\"date\":\"Mon, 09 Feb 2026 15:26:44 GMT\",\"server\":\"scaffolding on HTTPServer2\",\"x-xss-protection\":\"0\",\"x-frame-options\":\"SAMEORIGIN\",\"x-content-type-options\":\"nosniff\",\"server-timing\":\"gfet4t7; dur=2990\",\"alt-svc\":\"h3=\\\":443\\\"; ma=2592000,h3-29=\\\":443\\\"; ma=2592000\",\"transfer-encoding\":\"chunked\"},\"body\":null},\"candidates\":[{\"content\":{\"parts\":[{\"video_metadata\":null,\"thought\":null,\"inline_data\":null,\"file_data\":null,\"thought_signature\":null,\"function_call\":null,\"code_execution_result\":null,\"executable_code\":null,\"function_response\":null,\"text\":\"{\\n  \\\"rows\\\": [\\n    {\\n      \\\"row_number\\\": 1,\\n      \\\"dienstliche_stellung\\\": {\\n        \\\"diplomatic_transcript\\\": \\\"Hilfsleiter\\\",\\n        \\\"interpretation\\\": null,\\n        \\\"is_crossed_out\\\": false\\n      },\\n      \\\"dienstort\\\": {\\n        \\\"diplomatic_transcript\\\": \\\"\\\",\\n        \\\"interpretation\\\": null,\\n        \\\"is_crossed_out\\\": false\\n      },\\n      \\\"gehaltsklasse\\\": {\\n        \\\"diplomatic_transcript\\\": \\\"\u2713\\\",\\n        \\\"interpretation\\\": null,\\n        \\\"is_crossed_out\\\": false\\n      },\\n      \\\"jahresgehalt_monatsgehalt_taglohn\\\": {\\n        \\\"diplomatic_transcript\\\": \\\"4800.+\\\",\\n        \\\"interpretation\\\": \\\"4800\\\",\\n        \\\"is_crossed_out\\\": false\\n      },\\n      \\\"datum_gehalts\u00e4nderung\\\": {\\n        \\\"diplomatic_transcript\\\": \\\"17. Dez.\\\",\\n        \\\"interpretation\\\": \\\"1945-12-17\\\",\\n        \\\"is_crossed_out\\\": false\\n      },\\n      \\\"bemerkungen\\\": {\\n        \\\"diplomatic_transcript\\\": \\\"+ Zulagen\\\",\\n        \\\"interpretation\\\": null,\\n        \\\"is_crossed_out\\\": false\\n      }\\n    }\\n  ]\\n}\"}],\"role\":\"model\"},\"citation_metadata\":null,\"finish_message\":null,\"token_count\":null,\"finish_reason\":\"STOP\",\"url_context_metadata\":null,\"avg_logprobs\":-3.4397446804425935e-6,\"grounding_metadata\":null,\"index\":null,\"logprobs_result\":null,\"safety_ratings\":null}],\"create_time\":null,\"model_version\":\"gemini-2.0-flash\",\"prompt_feedback\":null,\"response_id\":\"svyJaZXWBIHi7M8PvNuscQ\",\"usage_metadata\":{\"cache_tokens_details\":null,\"cached_content_token_count\":null,\"candidates_token_count\":297,\"candidates_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":297}],\"prompt_token_count\":3626,\"prompt_tokens_details\":[{\"modality\":\"TEXT\",\"token_count\":1820},{\"modality\":\"IMAGE\",\"token_count\":1806}],\"thoughts_token_count\":null,\"tool_use_prompt_token_count\":null,\"tool_use_prompt_tokens_details\":null,\"total_token_count\":3923,\"traffic_type\":null},\"automatic_function_calling_history\":[],\"parsed\":{\"rows\":[{\"row_number\":1,\"dienstliche_stellung\":{\"diplomatic_transcript\":\"Hilfsleiter\",\"interpretation\":null,\"is_crossed_out\":false},\"dienstort\":{\"diplomatic_transcript\":\"\",\"interpretation\":null,\"is_crossed_out\":false},\"gehaltsklasse\":{\"diplomatic_transcript\":\"\u2713\",\"interpretation\":null,\"is_crossed_out\":false},\"jahresgehalt_monatsgehalt_taglohn\":{\"diplomatic_transcript\":\"4800.+\",\"interpretation\":\"4800\",\"is_crossed_out\":false},\"datum_gehalts\u00e4nderung\":{\"diplomatic_transcript\":\"17. Dez.\",\"interpretation\":\"1945-12-17\",\"is_crossed_out\":false},\"bemerkungen\":{\"diplomatic_transcript\":\"+ Zulagen\",\"interpretation\":null,\"is_crossed_out\":false}}]}}"}, "scoring": {"f1_micro": 0.9238152369526095, "f1_macro": 0.8657377049180328, "micro_precision": 0.9303262182843335, "micro_recall": 0.9173947577442415, "total_instances": 61, "total_tp": 2310, "total_fp": 173, "total_fn": 208, "cost_summary": {"total_input_tokens": 221186, "total_output_tokens": 60674, "total_tokens": 281860, "input_cost_usd": 0.02211860000000001, "output_cost_usd": 0.024269599999999992, "total_cost_usd": 0.046388200000000004}}, "normalized_score": 92.38152369526095}