{"_id": {"$oid": "69d4eb12b877594bc5718a45"}, "test_id": "T0440", "benchmark": "library_cards", "date": "2025-11-25", "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": "mistral", "model": "mistral-small-2506", "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": "{\n  \"type\": {\n    \"type\": \"Dissertation or thesis\"\n  },\n  \"author\": {\n    \"last_name\": \"M\u00fcller\",\n    \"first_name\": \"Hans\"\n  },\n  \"publication\": {\n    \"title\": \"Die Entwicklung der deutschen Sprache im Mittelalter\",\n    \"year\": 1985,\n    \"place\": \"Berlin\",\n    \"pages\": \"345\",\n    \"publisher\": \"Universit\u00e4tsverlag\",\n    \"format\": \"8\u00b0\"\n  },\n  \"library_reference\": {\n    \"shelfmark\": \"Diss. 12345\",\n    \"subjects\": \"German Language, Medieval Studies\"\n  }\n}", "model": "mistral-small-2506", "provider": "mistral", "finish_reason": "stop", "usage": {"input_tokens": 968, "output_tokens": 148, "total_tokens": 1116, "input_cost_usd": 9.680000000000001e-05, "output_cost_usd": 4.4399999999999995e-05, "estimated_cost_usd": 0.00014120000000000002}, "duration": 1.5655930042266846, "timestamp": "2025-11-25T10:49:37.278572", "score": {"f1_score": 0.0, "precision": 0.0, "recall": 0.0, "true_positives": 0, "false_positives": 0, "false_negatives": 9, "field_scores": {"": {"response": null, "ground_truth": null, "score": 1.0}, "publication.publisher": {"response": null, "ground_truth": "Geest & Portig", "score": 0.0}, "publication.format": {"response": null, "ground_truth": "8'", "score": 0.0}, "publication.pages": {"response": null, "ground_truth": null, "score": 1.0}, "library_reference.shelfmark": {"response": null, "ground_truth": "AT Berlin 2 Jg.1957", "score": 0.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.title": {"response": null, "ground_truth": "Zur Ethologie des Rotfuchses (Vulpes vulpes L.) unter besonderer Ber\u00fccksichtigung der Fortpflanzung", "score": 0.0}, "publication.year": {"response": null, "ground_truth": 1957, "score": 0.0}, "publication.place": {"response": null, "ground_truth": "Leipzig", "score": 0.0}, "type.type": {"response": null, "ground_truth": "Dissertation or thesis", "score": 0.0}, "author.last_name": {"response": null, "ground_truth": "Tembrock", "score": 0.0}, "author.first_name": {"response": null, "ground_truth": "G\u00fcnter", "score": 0.0}}, "total_fields": 12}, "raw_response": "{\"id\":\"9e5a656ed3d64c0e8b9afc761cb8ed8f\",\"object\":\"chat.completion\",\"model\":\"mistral-small-2506\",\"usage\":{\"prompt_tokens\":968,\"completion_tokens\":148,\"total_tokens\":1116},\"created\":1764064175,\"choices\":[{\"index\":0,\"message\":{\"content\":\"{\\n  \\\"type\\\": {\\n    \\\"type\\\": \\\"Dissertation or thesis\\\"\\n  },\\n  \\\"author\\\": {\\n    \\\"last_name\\\": \\\"M\u00fcller\\\",\\n    \\\"first_name\\\": \\\"Hans\\\"\\n  },\\n  \\\"publication\\\": {\\n    \\\"title\\\": \\\"Die Entwicklung der deutschen Sprache im Mittelalter\\\",\\n    \\\"year\\\": 1985,\\n    \\\"place\\\": \\\"Berlin\\\",\\n    \\\"pages\\\": \\\"345\\\",\\n    \\\"publisher\\\": \\\"Universit\u00e4tsverlag\\\",\\n    \\\"format\\\": \\\"8\u00b0\\\"\\n  },\\n  \\\"library_reference\\\": {\\n    \\\"shelfmark\\\": \\\"Diss. 12345\\\",\\n    \\\"subjects\\\": \\\"German Language, Medieval Studies\\\"\\n  }\\n}\",\"tool_calls\":null,\"prefix\":false,\"role\":\"assistant\"},\"finish_reason\":\"stop\"}]}"}, "scoring": {"f1_micro": 0.0, "f1_macro": 0.0, "micro_precision": 0.0, "micro_recall": 0.0, "total_instances": 263, "total_tp": 0, "total_fp": 0, "total_fn": 2415, "cost_summary": {"total_input_tokens": 254584, "total_output_tokens": 41283, "total_tokens": 295867, "input_cost_usd": 0.02545840000000006, "output_cost_usd": 0.012384899999999968, "total_cost_usd": 0.03784329999999996}}, "normalized_score": 0}