{"_id": {"$oid": "6a26c67c3572c06bc1455c84"}, "test_id": "T0682", "benchmark": "business_letters", "date": "2026-03-16", "tags": {"document-type": ["letter"], "writing": ["typed", "handwritten"], "century": [20], "language": ["de"], "layout": ["prose"], "entry-type": ["person", "location"], "task": ["information-extraction"]}, "contributors": ["eric_decker", "maximilian_hindermann", "lea_kasper", "anthea_alberto", "pema_frick", "jose_luis_losada_palenzuela", "sorin_marti", "elena_spadini"], "hidden": false, "config": {"provider": "genai", "model": "gemini-3.1-pro-preview", "dataclass": "Document", "temperature": 0.0, "role_description": "You are a historian with keyword knowledge and an expert in the field of 20th century Swiss history", "prompt_file": "prompt.txt", "legacy_test": false}, "prompt": "            IDENTITY and PURPOSE:\n\n            You are presented with a series of images constituting a historical letter. Your task is to extract the\n            values of the following keys from the letter and return them in a JSON file where the values\n            corresponding to each key should be stored as a list, even if there is only a single value for a\n            key:\n\n            - letter_title: Title of the letter.\n            - sender_persons: Name(s) of the person(s) who wrote the letter.\n            - send_date: The exact or approximate date the letter was written.\n            - receiver_persons: Name(s) of the person(s) who received the letter.\n\n            Take a deep breath and think step by step about how to best accomplish this goal. Map out all the claims\n            and implications on a virtual whiteboard in your mind. Do not use OCR. Use the ISO format YYYY-MM-DD for\n            dates. If a piece of information is not included in the letter, set the value for the corresponding key\n            to \"null\". Do not return anything except the JSON file.\n\n            EXAMPLE:\n\n            {\n                \"letter_title\": [\"Petition for Environmental Protection\"],\n                \"send_date\": [\"1993-03-12\"],\n                \"sender_persons\": [\"Lisa Simpson\"],\n                \"receiver_persons\": [\"Mayor Joe Quimby\", \"Seymour Skinner\"],\n            }\n\n            OUTPUT:", "results": {"text": "{\"metadata\":{\"send_date\":[\"1932-12-19\"],\"letter_title\":[\"Betr. Personenschiffahrt\"],\"sender_persons\":null,\"receiver_persons\":[\"M. Vischer - von Planta\"]}}", "model": "gemini-3.1-pro-preview", "provider": "genai", "finish_reason": "STOP", "usage": {"input_tokens": 1428, "output_tokens": 56, "total_tokens": 1484, "input_cost_usd": 0.002856, "output_cost_usd": 0.000672, "estimated_cost_usd": 0.003528}, "duration": 2.544675588607788, "timestamp": "2026-03-16T19:09:14.526031", "parsed": {"metadata": {"send_date": ["1932-12-19"], "letter_title": ["Betr. Personenschiffahrt"], "sender_persons": null, "receiver_persons": ["M. Vischer - von Planta"], "document_number": "letter60"}}, "conversation_id": "7180db24-3059-47fb-b06f-621e329af201", "score": {"send_date_tp": 1, "send_date_fp": 0, "send_date_fn": 0, "sender_persons_tp": 0, "sender_persons_fp": 0, "sender_persons_fn": 2, "receiver_persons_tp": 0, "receiver_persons_fp": 1, "receiver_persons_fn": 1}, "raw_response": "{\"sdk_http_response\":{\"headers\":{\"content-type\":\"application/json; charset=UTF-8\",\"vary\":\"Origin, X-Origin, Referer\",\"content-encoding\":\"gzip\",\"date\":\"Mon, 16 Mar 2026 18:09:21 GMT\",\"server\":\"scaffolding on HTTPServer2\",\"x-xss-protection\":\"0\",\"x-frame-options\":\"SAMEORIGIN\",\"x-content-type-options\":\"nosniff\",\"server-timing\":\"gfet4t7; dur=2388\",\"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\":\"{\\\"metadata\\\": {\\\"send_date\\\": [\\\"1932-12-19\\\"], \\\"letter_title\\\": [\\\"Betr. Personenschiffahrt\\\"], \\\"sender_persons\\\": null, \\\"receiver_persons\\\": [\\\"M. Vischer - von Planta\\\"]}}\",\"thought\":null,\"thought_signature\":\"EjQKMgG-Pvb7nJLO__NhHPyDmYdwxH3aVWBcvl_5UzeDhL2BIR2BGY1L6WjyRLURz27O8rh7\",\"video_metadata\":null}],\"role\":\"model\"},\"citation_metadata\":null,\"finish_message\":null,\"token_count\":null,\"finish_reason\":\"STOP\",\"avg_logprobs\":null,\"grounding_metadata\":null,\"index\":0,\"logprobs_result\":null,\"safety_ratings\":null,\"url_context_metadata\":null}],\"create_time\":null,\"model_version\":\"gemini-3.1-pro-preview\",\"prompt_feedback\":null,\"response_id\":\"UUe4aba8EvyP28oPgPGi8Ac\",\"usage_metadata\":{\"cache_tokens_details\":null,\"cached_content_token_count\":null,\"candidates_token_count\":56,\"candidates_tokens_details\":null,\"prompt_token_count\":1428,\"prompt_tokens_details\":[{\"modality\":\"IMAGE\",\"token_count\":1092},{\"modality\":\"TEXT\",\"token_count\":336}],\"thoughts_token_count\":null,\"tool_use_prompt_token_count\":null,\"tool_use_prompt_tokens_details\":null,\"total_token_count\":1484,\"traffic_type\":null},\"automatic_function_calling_history\":[],\"parsed\":{\"metadata\":{\"send_date\":[\"1932-12-19\"],\"letter_title\":[\"Betr. Personenschiffahrt\"],\"sender_persons\":null,\"receiver_persons\":[\"M. Vischer - von Planta\"]}}}"}, "scoring": {"f1_macro": 0.63, "f1_micro": 0.66, "cost_summary": {"total_input_tokens": 126168, "total_output_tokens": 3862, "total_tokens": 130030, "input_cost_usd": 0.25233599999999984, "output_cost_usd": 0.04634399999999999, "total_cost_usd": 0.29868000000000006}}, "normalized_score": 63.0}