> For the complete documentation index, see [llms.txt](https://docs.imerit.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit.net/plugins/first-party-ango-plugins/captioning-qa.md).

# Captioning QA

## Overview

The Captioning QA plugin is a model plugin that creates visual QA attachments for captioning or description review workflows.

Use this plugin when a task contains bounding boxes with descriptions or OCR text and you want compact image attachments showing each crop next to its text.

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center">Captioning QA</td><td data-object-fit="contain"><a href="/files/wERfrNsqiSaux0I8A5eb">/files/wERfrNsqiSaux0I8A5eb</a></td></tr></tbody></table>

## Plugin Functionality

The Captioning QA plugin reads the current task annotations, generates summary images, uploads those images to S3, and attaches them back to the asset.

For each image in the asset, the plugin creates an attachment containing cropped bounding-box regions and their corresponding text. The text is taken from:

* OCR text on the bounding-box annotation, when present.
* A nested classification titled `description`, when OCR text is not present.

For multi-image assets, the plugin can also create a correspondence attachment. It looks for a nested classification titled `corresponding id` and uses that value to group related object IDs across the first two images.

{% hint style="info" %}
If the task has no tool annotations, the plugin finishes without adding attachments.
{% endhint %}

### Supported Data Types

* Image
* Multi-Image Assets

### Supported Annotation Tools

* Bounding Box
* OCR text on bounding boxes
* Nested classifications named `description`
* Nested classifications named `corresponding id` for correspondence views

## Plugin Configuration

By default, the plugin uploads generated QA attachments to an Ango-managed S3 location. You can provide your own storage settings in the **Config JSON** field.

```json
{
  "storage_id": "",
  "bucket_name": "",
  "folder": ""
}
```

* **"storage\_id":** Storage integration ID used to upload the generated QA images.
  * Example:
    * <kbd>"storage\_id": "storage\_id\_here"</kbd>

* **"bucket\_name":** Name of the S3 bucket where the generated images should be uploaded.
  * Example:
    * <kbd>"bucket\_name": "acme-qa-attachments"</kbd>

* **"folder":** Folder prefix where generated images should be uploaded.
  * Example:
    * <kbd>"folder": "captioning-qa/"</kbd>

{% hint style="warning" %}
If you provide custom storage settings, make sure the storage integration has permission to upload files and that generated attachment URLs can be accessed by Ango Hub users who need to review them.
{% endhint %}
