{"_id": {"$oid": "6a8456c1ef0a19c343227d1a"}, "test_id": "T1500", "benchmark": "library_cards", "date": "2026-08-14", "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": "huggingface", "model": "swiss-ai/Apertus-v1.5-8B:publicai", "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\":\"Wolters\",\"first_name\":\"Maria\"},\"publication\":{\"title\":\"Ueber die 'Bedeutung der Verebung in der Pathogenese der Dystrophia adiposa-genitalis.\",\"year\":\"1936\",\"place\":\"\",\"pages\":\"31\",\"publisher\":\"\",\"format\":\"8\u00b0\",\"editor\":\"Boss.\"},\"library_reference\":{\"shelfmark\":\"Diss. 1937, 8, 597\",\"subjects\":\"\"}}", "model": "swiss-ai/apertus-v1.5-8b", "provider": "huggingface", "finish_reason": "stop", "usage": {"input_tokens": 2744, "output_tokens": 140, "total_tokens": 2884, "input_cost_usd": 0.0002744, "output_cost_usd": 2.8e-05, "estimated_cost_usd": 0.0003024}, "duration": 14.528399229049683, "timestamp": "2026-08-14T16:15:04.396647", "parsed": {"type": {"type": "Dissertation or thesis"}, "author": {"last_name": "Wolters", "first_name": "Maria"}, "publication": {"title": "Ueber die 'Bedeutung der Verebung in der Pathogenese der Dystrophia adiposa-genitalis.", "year": "1936", "place": "", "pages": "31", "publisher": "", "format": "8\u00b0", "editor": "Boss."}, "library_reference": {"shelfmark": "Diss. 1937, 8, 597", "subjects": ""}}, "conversation_id": "90e4088b-750d-4703-8876-e0fa668671ee", "score": {"f1_score": 0.63, "precision": 0.6666666666666666, "recall": 0.6, "true_positives": 6, "false_positives": 3, "false_negatives": 4, "field_scores": {"publication.place": {"response": null, "ground_truth": "Kleve", "score": 0.0}, "author.last_name": {"response": "Wolters", "ground_truth": "Wolters", "score": 1.0}, "type.type": {"response": "Dissertation or thesis", "ground_truth": "Dissertation or thesis", "score": 1.0}, "library_reference.shelfmark": {"response": "Diss. 1937, 8, 597", "ground_truth": "DN:B 1937, 8, 597", "score": 0.8}, "author.first_name": {"response": "Maria", "ground_truth": "Maria", "score": 1.0}, "publication.year": {"response": "1936", "ground_truth": 1937, "score": 0.75}, "publication.editor": {"response": "Boss.", "ground_truth": null, "score": 0.0}, "publication.publisher": {"response": null, "ground_truth": "Boss", "score": 0.0}, "library_reference.subjects": {"response": null, "ground_truth": null, "score": 1.0}, "publication.format": {"response": "8\u00b0", "ground_truth": "8\u00b0", "score": 1.0}, "publication.pages": {"response": "31", "ground_truth": "31", "score": 1.0}, "publication.title": {"response": "Ueber die 'Bedeutung der Verebung in der Pathogenese der Dystrophia adiposa-genitalis.", "ground_truth": "Ueber die Bedeutung der Vererbung in der Pathogenese der Dystrophia adiposo-genitalis", "score": 0.9707602339181287}}, "total_fields": 12}, "raw_response": "{\"id\":\"chatcmpl-e0fe6a7d-4dc8-47ba-9de9-6b0e6355d911\",\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"logprobs\":null,\"message\":{\"content\":\"{\\\"author\\\": {\\\"first_name\\\": \\\"Maria\\\", \\\"last_name\\\": \\\"Wolters\\\"}, \\\"library_reference\\\": {\\\"shelfmark\\\": \\\"Diss. 1937, 8, 597\\\", \\\"subjects\\\": \\\"\\\"}, \\\"publication\\\": {\\\"editor\\\": \\\"Boss.\\\", \\\"format\\\": \\\"8\u00b0\\\", \\\"pages\\\": \\\"31\\\", \\\"place\\\": \\\"\\\", \\\"publisher\\\": \\\"\\\", \\\"title\\\": \\\"Ueber die 'Bedeutung der Verebung in der Pathogenese der Dystrophia adiposa-genitalis.\\\", \\\"year\\\":  \\\"1936\\\"}, \\\"type\\\": {\\\"type\\\": \\\"Dissertation or thesis\\\"}}\",\"refusal\":null,\"role\":\"assistant\",\"annotations\":null,\"audio\":null,\"function_call\":null,\"tool_calls\":null,\"parsed\":{\"type\":{\"type\":\"Dissertation or thesis\"},\"author\":{\"last_name\":\"Wolters\",\"first_name\":\"Maria\"},\"publication\":{\"title\":\"Ueber die 'Bedeutung der Verebung in der Pathogenese der Dystrophia adiposa-genitalis.\",\"year\":\"1936\",\"place\":\"\",\"pages\":\"31\",\"publisher\":\"\",\"format\":\"8\u00b0\",\"editor\":\"Boss.\"},\"library_reference\":{\"shelfmark\":\"Diss. 1937, 8, 597\",\"subjects\":\"\"}},\"provider_specific_fields\":{\"refusal\":null,\"reasoning\":null}},\"provider_specific_fields\":{\"routed_experts\":null,\"token_ids\":null,\"stop_reason\":null}}],\"created\":1786716901,\"model\":\"swiss-ai/apertus-v1.5-8b\",\"object\":\"chat.completion\",\"service_tier\":null,\"system_fingerprint\":\"vllm-0.23.1rc1.dev1029+ga601a9d99-2d880180\",\"usage\":{\"completion_tokens\":140,\"prompt_tokens\":2744,\"total_tokens\":2884,\"completion_tokens_details\":null,\"prompt_tokens_details\":{\"audio_tokens\":null,\"cached_tokens\":0,\"multimodal_tokens\":{\"image\":2301}}}}"}, "scoring": {"f1_micro": 0.4875217643644805, "f1_macro": 0.4866539923954372, "micro_precision": 0.45751633986928103, "micro_recall": 0.5217391304347826, "total_instances": 263, "total_tp": 1260, "total_fp": 1494, "total_fn": 1155, "cost_summary": {"total_input_tokens": 794788, "total_output_tokens": 40149, "total_tokens": 834937, "input_cost_usd": 0.0794787999999999, "output_cost_usd": 0.008029800000000007, "total_cost_usd": 0.08750859999999996}}, "normalized_score": 48.665399239543724}