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

Test case description

This test checks whether a model can generate a complete DITA Topic document. It requires a valid topic element with metadata, prose, a table and example, plus a correct task structure with steps, stepresult and infos. Correct use of DITA namespaces is also evaluated.

Source file

DitaFullTopic.txt

Series

1

Categories

xml, dita, structure

Evaluation

LLM judge

Prompt SHA-256

244568a89919abfb83f637e4957141a6f206a27737468ec7711f69d25d234955

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 DITA 1.3 solution representing generic topic content and a genuine task structure according to the standard.

Expectation in the catalog

No

Correct result in the catalog

Yes

Judge instruction

Account for the contradiction in the short description. Accept either a valid task topic with all reasonably permitted content or a dita container with separate topic and task. Do not require an invented DITA default namespace.

Must be satisfied

  • Output is well-formed XML without explanatory prose outside XML.

  • The output can be validated as DITA using an appropriate DITA 1.3 DOCTYPE, schema declaration or valid DITA document type shell.

  • Variant A is permitted: root task with id, title, shortdesc and taskbody containing context, steps, at least two step elements with cmd, plus info and stepresult, supplemented by required tables and examples where the chosen grammar permits them.

  • Variant B is permitted: root dita with a separate topic and task. The topic contains title, shortdesc, body, several p elements, table and example. The task contains taskbody, steps, step, cmd, info and stepresult.

  • IDs are unique and references consistent.

Error criteria

  • A task is incorrectly nested as a child of a generic topic.

  • An invented DITA default namespace is used as evidence of conformance.

  • steps, cmd, info or stepresult are missing.

  • The output cannot be validated against a DITA 1.3 grammar.

Prompt

Erstelle unter content ein vollständiges DITA Topic Dokument.
Verwende die offiziellen DITA Namensräume
http://dita.oasis-open.org/architecture/2005/

Erforderliche Bestandteile
topic mit id
title
shortdesc
body mit mehreren Absätzen
Tabelle
Beispiel (example)
am Ende eine task Struktur mit
  steps
  stepresult
  info oder infos

Achte auf gültige DITA Struktur.
Gib ausschließlich das DITA Dokument zurück.

# content

764 Runs 750 evaluated 12.2 % Score 2.0 % 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