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

Test case description

This test checks whether a model can correctly generate a complete DocBook 5 document. It should produce a complete book element with metadata, several chapters, nested sections, a code example and a table. It also evaluates whether the correct DocBook version and official namespace are used.

Source file

DocbookFullBook.txt

Series

1

Categories

xml, docbook, structure

Evaluation

LLM judge

Prompt SHA-256

525e7f077a338f77c32caab53f001350cc212727b7b4e3a7e0048e0e78767590

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 DocBook 5.2 book with metadata, several chapters, nested sections, a code example and a table.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Check a genuine DocBook 5.2 document in the DocBook namespace, rather than merely XML with similarly named elements.

Must be satisfied

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

  • The root element is book in the namespace http://docbook.org/ns/docbook and version='5.2' is specified.

  • book contains info with title and author.

  • There are at least two chapter elements.

  • At least one chapter contains nested section elements at two or more levels.

  • A programlisting contains a plausible code example.

  • A DocBook table contains a valid CALS structure with tgroup, thead, tbody, row and entry.

Error criteria

  • The DocBook namespace or version is missing.

  • Obsolete section elements are used that invalidate DocBook 5.2.

  • Chapters, code example or table are missing.

  • The output cannot be validated against a DocBook 5.2 grammar.

Prompt

Erzeuge unter content ein vollständiges DocBook 5 Dokument.
Root Element ist book.
Verwende DocBook 5.2 und den offiziellen DocBook Namensraum.

Erforderliche Bestandteile
info
title
author
mehrere Kapitel mit sect1 und sect2
ein Beispielcodeblock mit programlisting
eine Tabelle mit table, tgroup, thead und tbody

Achte auf valide Struktur gemäß DocBook 5.2.
Gib ausschließlich das DocBook Dokument zurück.

# content

757 Runs 740 evaluated 23.6 % Score 10.3 % 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