AI & XML / LLM test suite / Results / Test cases / ComplexSemanticAnimals-Docbook
Test case description
DocBook variant of the complex semantic animal prompt.
Source file | ComplexSemanticAnimalsDocbook.txt |
|---|---|
Series | 1 |
Categories | xml, docbook, semantics, reasoning |
Evaluation | LLM judge |
Prompt SHA-256 | cf286a76396933833e42e814840d2237de4e0bb04e0ceaf73255144250a13207 |
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
After removing only leading and trailing whitespace, the entire output consists of exactly the decimal number 63.
Expectation in the catalog | No |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Compare the trimmed answer exactly with 63. Accept no explanation, formatting, unit, punctuation, code fences or markup. The source is structured in DocBook, but the required answer itself is plain text.
Must be satisfied
The entire visible output is exactly 63; only outer whitespace before or after the number may be ignored.
The three individual sums are dog 14 + 7 = 21, cat 9 + 11 = 20 and parrot 6 + 5 = 11.
The highest individual sum is 21 and there are 3 animals, giving the target value 21 × 3 = 63.
The output contains neither XML or HTML nor a repetition of the structured input.
Error criteria
The trimmed output is not exactly 63.
The answer contains explanations such as Der Zielwert ist, a unit, calculation steps or further numbers.
The number is surrounded by Markdown, code fences, bold formatting, quotation marks, XML or HTML tags, or other markup.
The answer contains punctuation such as 63. or an alternative numeric notation such as 63,0.
Judge note: Despite answer_mode llm_judge_rule, this case must be evaluated deterministically. Only trimming outer Unicode whitespace is allowed; the rest of the answer string must be 63. The DocBook format applies only to the prompt and does not justify markup in the answer.
Prompt
<book xmlns="http://docbook.org/ns/docbook" version="5.2">
<chapter>
<title>Abschnitt A Inhaltliche Einordnung</title>
<para>Hund: Fellpunkte 14, Ruheindex 7</para>
<para>Katze: Fellpunkte 9, Ruheindex 11</para>
<para>Papagei: Fellpunkte 6, Ruheindex 5</para>
</chapter>
<chapter>
<title>Abschnitt B Semantische Regeln</title>
<para>1. Addiere für jedes Tier Fellpunkte und Ruheindex.</para>
<para>2. Vergleiche alle berechneten Summen.</para>
<para>3. Finde die höchste Summe.</para>
<para>4. Zielwert ist höchste Summe mal Anzahl der Tiere.</para>
</chapter>
<chapter>
<title>Abschnitt C Ausgabeformat</title>
<para>Gib ausschließlich den Zielwert aus.</para>
<para>Keine Begründung. Kein Text. Keine Einheit.</para>
<para>Jede Abweichung ist ein Fehler.</para>
</chapter>
<chapter>
<title>Abschnitt D Beispiel</title>
<para>Anzahl Tiere ist 3.</para>
<para>Höchste Summe ist Hund mit 14 plus 7 ergibt 21.</para>
<para>Zielwert ist 21 mal 3 ergibt 63.</para>
</chapter>
<chapter>
<title>Aufgabe</title>
<para>Ermittle den Zielwert exakt nach Abschnitt B und gib ihn gemäß Abschnitt C zurück.</para>
</chapter>
</book>821 Runs 811 evaluated 21.1 % Score 14.9 % 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