Use JSON objects to preserve field names, units and candidate identifiers.
Reference state fields
A backticked field name in an instruction can point a reader to its evidence. Keep IDs stable across requests and supply all referenced values in the state.
{
"model": "ngila-judge",
"state": {
"note": "Send invoices to [email protected]. For delivery contact [email protected].",
"candidates": {
"a": "[email protected]",
"b": "[email protected]"
}
},
"questions": {
"address": {
"type": "choice",
"instructions": "Which candidate receives invoices?",
"criteria": {
"a": "",
"b": "",
"neither": ""
}
}
}
}Keep the result machine-readable
Use short category IDs as Choice keys. Put long explanations in their values. For a Score, order the criteria from lowest to highest and archive that order with the score.
| Question | Structured value |
|---|---|
| All question types | Use an object or array in instructions to separate the task from examples and constraints. |
| Choice | Use stable option names as keys and structured descriptions as their values. |
| Score | Supply an ordered list of levels, each with its own description and examples. |
| Noul | Describe positive and negative cases under true and false criteria. |
Define positive and negative cases
Use Noul criteria when the boundary is easy to misread. This example distinguishes an existing refund from a promise to issue one.
{
"type": "noul",
"instructions": {
"task": "Check whether the refund has already been issued."
},
"criteria": {
"true": {
"evidence": [
"A posted credit",
"A completed refund receipt"
]
},
"false": {
"evidence": [
"A promise to refund",
"A pending request"
]
}
}
}