AI & XML / LLM test suite / Results / Test cases / TeiFullDocument

Test case description

This test checks whether a model can generate a complete TEI P5 document. It requires a correctly structured teiHeader with all essential metadata and a text body with typical TEI structures such as paragraphs, quotations, notes and verse. Correct use of the TEI namespace and established TEI practice is also evaluated.

Source file

TeiFullDocument.txt

Series

1

Categories

xml, tei, structure

Evaluation

LLM judge

Prompt SHA-256

a3a43cc7789b0b42d30f195ae045915a7ac8dfdec01daec118d62c1b78723e2f

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 TEI P5 document with a complete header and prose, quotation, note and verse material.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Check the TEI P5 namespace, header structure and the required text types.

Must be satisfied

  • The output is well-formed XML with no explanatory prose outside the XML.

  • The root element is TEI in the namespace http://www.tei-c.org/ns/1.0.

  • teiHeader contains fileDesc with titleStmt, publicationStmt and sourceDesc, each meaningfully populated.

  • text contains body with at least one div and several p elements.

  • quote and note are present and semantically well placed.

  • Verse material is marked up as lg with at least two l elements.

  • The xml:id values and references used are consistent.

Error criteria

  • The TEI namespace is missing or incorrect.

  • An essential header section is missing.

  • The quotation, note or verse is missing or mentioned only as plain text.

  • The structure is not TEI P5 valid.

Prompt

Erstelle unter content ein vollständiges TEI P5 XML Dokument.
Verwende den TEI Namensraum:
http://www.tei-c.org/ns/1.0

Erforderliche Bestandteile
teiHeader mit
  fileDesc
  titleStmt
  publicationStmt
  sourceDesc

Textkörper mit
  mehreren div Elementen
  Absätzen
  einem Zitat (quote)
  einer Note (note)
  einem Versbeispiel (lg und l)

Achte auf korrekte TEI Struktur und Praxis.
Gib ausschließlich das TEI Dokument zurück.

# content

699 Runs 1366 evaluated 49.5 % Score 25.1 % 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

x

back to top