{"_id": {"$oid": "69d4eb12b877594bc5718cbb"}, "test_id": "T0674", "benchmark": "library_cards", "date": "2026-03-16", "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-preview", "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\":\"Wiedemann\",\"first_name\":\"August\"},\"publication\":{\"title\":\"Drei bemerkenswerthe F\u00e4lle von Spina bifida\",\"year\":\"1872\",\"place\":\"Breslau\",\"pages\":\"30\",\"publisher\":\"\",\"format\":\"8.\",\"editor\":null},\"library_reference\":{\"shelfmark\":\"Breslau. Diss. med. 1872\",\"subjects\":\"\"}}", "model": "gemini-3.1-flash-lite-preview", "provider": "genai", "finish_reason": "STOP", "usage": {"input_tokens": 1546, "output_tokens": 164, "total_tokens": 1710, "input_cost_usd": 0.0003865, "output_cost_usd": 0.000246, "estimated_cost_usd": 0.0006325}, "duration": 1.6756362915039062, "timestamp": "2026-03-16T19:09:08.261429", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Wiedemann", "first_name": "August"}, "publication": {"title": "Drei bemerkenswerthe F\u00e4lle von Spina bifida", "year": "1872", "place": "Breslau", "pages": "30", "publisher": "", "format": "8."}, "library_reference": {"shelfmark": "Breslau. Diss. med. 1872", "subjects": ""}}, "conversation_id": "85b69be4-17b2-459e-99cf-60af776d5615", "score": {"f1_score": 0.88, "precision": 0.7777777777777778, "recall": 1.0, "true_positives": 7, "false_positives": 2, "false_negatives": 0, "field_scores": {"publication.pages": {"response": "30", "ground_truth": "30", "score": 1.0}, "author.last_name": {"response": "Wiedemann", "ground_truth": "Wiedemann", "score": 1.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": "Breslau. Diss. med. 1872", "ground_truth": null, "score": 0.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "publication.place": {"response": "Breslau", "ground_truth": "Breslau", "score": 1.0}, "publication.format": {"response": "8.", "ground_truth": null, "score": 0.0}, "publication.year": {"response": "1872", "ground_truth": 1872, "score": 1.0}, "author.first_name": {"response": "August", "ground_truth": "August", "score": 1.0}, "publication.title": {"response": "Drei bemerkenswerthe F\u00e4lle von Spina bifida", "ground_truth": "Drei bemerkenswerte F\u00e4lle von Spina bifida", "score": 0.9882352941176471}}, "total_fields": 11}, "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:15 GMT\",\"server\":\"scaffolding on HTTPServer2\",\"x-xss-protection\":\"0\",\"x-frame-options\":\"SAMEORIGIN\",\"x-content-type-options\":\"nosniff\",\"server-timing\":\"gfet4t7; dur=1665\",\"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\\\": \\\"Wiedemann\\\",\\n    \\\"first_name\\\": \\\"August\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Drei bemerkenswerthe F\u00e4lle von Spina bifida\\\",\\n    \\\"year\\\": \\\"1872\\\",\\n    \\\"place\\\": \\\"Breslau\\\",\\n    \\\"pages\\\": \\\"30\\\",\\n    \\\"publisher\\\": \\\"\\\",\\n    \\\"format\\\": \\\"8.\\\"\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"Breslau. Diss. med. 1872\\\",\\n    \\\"subjects\\\": \\\"\\\"\\n  }\\n}\",\"thought\":null,\"thought_signature\":\"EjQKMgG-Pvb7qyvBND9lk_lMwS9U_WNXXyF5HBQntFVOEgqDaLkiPltAmA_ENGY9vilRuu1T\",\"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-flash-lite-preview\",\"prompt_feedback\":null,\"response_id\":\"S0e4abyYBJ_pxN8P-Kr0wAw\",\"usage_metadata\":{\"cache_tokens_details\":null,\"cached_content_token_count\":null,\"candidates_token_count\":164,\"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\":1710,\"traffic_type\":null},\"automatic_function_calling_history\":[],\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Wiedemann\",\"first_name\":\"August\"},\"publication\":{\"title\":\"Drei bemerkenswerthe F\u00e4lle von Spina bifida\",\"year\":\"1872\",\"place\":\"Breslau\",\"pages\":\"30\",\"publisher\":\"\",\"format\":\"8.\"},\"library_reference\":{\"shelfmark\":\"Breslau. Diss. med. 1872\",\"subjects\":\"\"}}}"}, "scoring": {"f1_micro": 0.8885782747603834, "f1_macro": 0.8809125475285171, "micro_precision": 0.8580794446586965, "micro_recall": 0.9213250517598344, "total_instances": 263, "total_tp": 2225, "total_fp": 368, "total_fn": 190, "cost_summary": {"total_input_tokens": 406240, "total_output_tokens": 47779, "total_tokens": 454019, "input_cost_usd": 0.10155999999999975, "output_cost_usd": 0.07166850000000002, "total_cost_usd": 0.1732285}}, "normalized_score": 88.09125475285171}