AI & XML / LLM test suite / Results / Test cases / Marc21XmlRecord
Test case description
This test checks whether a model can generate a complete MARC21 XML record. It requires leader, several controlfield elements and datafield structures with valid tags, indicators and subfields for core bibliographic data.
Source file | Marc21XmlRecord.txt |
|---|---|
Series | 1 |
Categories | xml, marc21, structure |
Evaluation | LLM judge |
Prompt SHA-256 | 53a5af73b55ff1594f5dac6bc005eb489c2e18608672da154f87772f67248dd1 |
LLM judge: The answer is evaluated with LLM support. A judge model compares the model’s answer with the domain expectation and decides whether its content meets it.
Expected result
Valid MARCXML record with leader, control fields and bibliographic data fields.
Expectation in the catalog | No |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Check MARCXML syntax, field codes, indicators and subfields, and the plausibility of the leader and control fields.
Must be satisfied
The output is well-formed XML with no explanatory prose outside the XML.
record or collection/record uses the MARCXML namespace http://www.loc.gov/MARC21/slim.
leader is exactly 24 characters long and plausible as a bibliographic leader.
controlfield elements with tags 001, 003 and 005 are present; 005 has a plausible MARC timestamp format.
datafield 100, 245 and either 260 or 264 are present.
Each datafield has single-character ind1 and ind2 values and appropriate subfield codes.
Author, title and publication details are semantically complete and assigned to the correct MARC fields.
Error criteria
MARCXML namespace, leader or required fields are missing.
The leader length is not 24 characters.
Indicators or subfield codes are missing or clearly invalid.
Bibliographic content is in the wrong fields.
Prompt
Erstelle unter content einen vollständigen MARC21 XML Datensatz.
Erforderliche Bestandteile
record als Root
leader
mehrere controlfield Elemente, z. B.
001
003
005
datafield Elemente für
100 Person (Subfield a)
245 Titel (Subfields a und b)
260 oder 264 Publikation mit
Subfield a Erscheinungsort
Subfield b Verlag
Subfield c Erscheinungsjahr
Verwende gültige MARC21 Tag Nummern,
korrekte ind Attribute und Subfield Codes.
Nutze den MARCXML Namensraum
http://www.loc.gov/MARC21/slim
Gib ausschließlich den MARC21 XML Datensatz zurück.
# content715 Runs 705 evaluated 30.8 % Score 14.6 % exactly correct
Help on evaluation, score and exact correctness
Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.
Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.
Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.
Model Category Access route