Examplary
Start for free
Developer docs

Grade answers that contain files

Question types that collect a file — an uploaded document, an image, a voice recording — used to hand the grading AI nothing but the file's URL as text. Now the file itself can go into the prompt.

Add fileInputs to a question type's grading object: a JSONata expression that starts with = and resolves to a file URL or an array of URLs. It has the submitted answer and the question configuration in scope, just like responseProcessing.condition.

{
  "grading": {
    "enabled": true,
    "fileInputs": "=answer.value"
  }
}

The files are fetched and attached to the end of the grading prompt, so the AI reads the document, image or audio directly instead of guessing from a link. Only files hosted on the Examplary media CDN are attached; any other URL is skipped. See the grading docs for the details.