The model receives the review as JSON and, if given, context: the
question the model addresses, the costs of different errors, how its
predictions will be used. It never receives the data. Without context, the
assessment states that usefulness cannot be judged.
The model answers in a declared structure whose codes are restricted to the
review's findings, and the answer is checked: an answer that does not match
the structure, or cites a code that is not a finding of the review, is an
error. The returned object records the model, the provider, the
temperature, the full prompt, a SHA-256 hash of the review sent and the
time, so the assessment can be audited and, as far as the model allows,
reproduced.
The written assessment is an interpretation of the review, which remains
the evidence; read them together. write_text writes both as Markdown.
Requires the rtemis.llm package and access to a model.