{"_id": {"$oid": "6ab1687f1481417a2aae4cf0"}, "test_id": "T1107", "benchmark": "library_cards", "date": "2026-06-08", "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": "x-ai", "model": "grok-4.3", "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\":\"Reference\"},\"author\":{\"last_name\":\"Montaghemi\",\"first_name\":\"Nourhomadeh\"},\"publication\":{\"title\":\"\",\"year\":\"\",\"place\":\"\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":\"\"},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"\"}}", "model": "grok-4.3", "provider": "x-ai", "finish_reason": "stop", "usage": {"input_tokens": 1735, "output_tokens": 108, "total_tokens": 2669, "cached_tokens": 128, "input_cost_usd": 0.00216875, "output_cost_usd": 0.00027, "estimated_cost_usd": 0.00450375, "reasoning_tokens": 826, "reasoning_cost_usd": 0.002065}, "duration": 10.623641014099121, "timestamp": "2026-06-08T11:42:11.014271", "parsed": {"type": {"type": "Reference"}, "author": {"last_name": "Montaghemi", "first_name": "Nourhomadeh"}, "publication": {"title": "", "year": "", "place": "", "pages": "", "publisher": "", "format": "", "editor": ""}, "library_reference": {"shelfmark": "", "subjects": ""}}, "conversation_id": "a91051ac-45e6-4fb3-8c6b-564eea55819b", "score": {"f1_score": 0.33, "precision": 0.3333333333333333, "recall": 0.3333333333333333, "true_positives": 1, "false_positives": 2, "false_negatives": 2, "field_scores": {"author.first_name": {"response": "Nourhomadeh", "ground_truth": null, "score": 0.0}, "publication.place": {"response": null, "ground_truth": null, "score": 1.0}, "publication.format": {"response": null, "ground_truth": null, "score": 1.0}, "author.last_name": {"response": "Montaghemi", "ground_truth": "Sonnenbichler", "score": 0.34782608695652173}, "publication.title": {"response": null, "ground_truth": "Montaghemi, Nourhomadeh", "score": 0.0}, "publication.pages": {"response": null, "ground_truth": null, "score": 1.0}, "type.type": {"response": "Reference", "ground_truth": "Reference", "score": 1.0}, "publication.editor": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.year": {"response": null, "ground_truth": null, "score": 1.0}, "publication.publisher": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": null, "ground_truth": null, "score": 1.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"9412bd49-26fb-9cb5-8c35-caf3027e771a\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Reference\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"Montaghemi\\\",\\n    \\\"first_name\\\": \\\"Nourhomadeh\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"\\\",\\n    \\\"year\\\":  \\\"\\\",\\n    \\\"place\\\": \\\"\\\",\\n    \\\"pages\\\": \\\"\\\",\\n    \\\"publisher\\\": \\\"\\\",\\n    \\\"format\\\": \\\"\\\"\\n  ,\\n  \\\"editor\\\": \\\"\\\"\\n},\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"\\\",\\n    \\\"subjects\\\": \\\"\\\"\\n  }\\n}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":null,\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Reference\"},\"author\":{\"last_name\":\"Montaghemi\",\"first_name\":\"Nourhomadeh\"},\"publication\":{\"title\":\"\",\"year\":\"\",\"place\":\"\",\"pages\":\"\",\"publisher\":\"\",\"format\":\"\",\"editor\":\"\"},\"library_reference\":{\"shelfmark\":\"\",\"subjects\":\"\"}},\"reasoning_content\":\"The task is to extract bibliographic information from an index card image and return it as a structured JSON object.\\n\"}}],\"created\":1780911721,\"model\":\"grok-4.3\",\"object\":\"chat.completion\",\"service_tier\":\"default\",\"system_fingerprint\":\"fp_eb3c003fc66c14ed\",\"usage\":{\"completion_tokens\":108,\"prompt_tokens\":1735,\"total_tokens\":2669,\"completion_tokens_details\":{\"accepted_prediction_tokens\":0,\"audio_tokens\":0,\"reasoning_tokens\":826,\"rejected_prediction_tokens\":0},\"prompt_tokens_details\":{\"audio_tokens\":0,\"cached_tokens\":128,\"text_tokens\":1144,\"image_tokens\":591},\"num_sources_used\":0,\"cost_in_usd_ticks\":43693500}}"}, "scoring": {"f1_micro": 0.8566707971912432, "f1_macro": 0.8455893536121672, "micro_precision": 0.8545529460238979, "micro_recall": 0.8587991718426501, "total_instances": 263, "total_tp": 2074, "total_fp": 353, "total_fn": 341, "cost_summary": {"total_input_tokens": 468076, "total_output_tokens": 41331, "total_tokens": 509407, "input_cost_usd": 0.5850950000000005, "output_cost_usd": 0.10332750000000002, "total_cost_usd": 1.175745, "total_reasoning_tokens": 194929, "reasoning_cost_usd": 0.4873225}}, "pricing": {"bucket_date": "2026-06-05", "age_days": 3, "input_price_per_million": 1.25, "output_price_per_million": 2.5}, "timing": {"total_response_s": 166125.17, "mean_response_s": 631.65, "slowest_response_s": 1819.58, "inputs_timed": 263, "inputs_stored": 263, "span_s": 9146.89}, "normalized_score": 84.55893536121673}