---
title: Content-based Image Retrieval
type: templates
category: Ranking and Scoring
cat: ranking-and-scoring
order: 425
meta_title: Content-based Image Retrieval Data Labeling Template
meta_description: Template for labeling data for content-based image retrieval tasks with Label Studio for your machine learning and data science projects.
---
If you want to train a machine learning model on content-based image retrieval computer vision tasks, use this template. This labeling configuration displays an image and prompts annotators to select a choice corresponding to one or more similar images.
## Interactive Template Preview
## Labeling Configuration
```html
```
## About the labeling configuration
All labeling configurations must be wrapped in [View](/tags/view.html) tags.
Use an [Image](/tags/image.html) object tag to specify the location of the image to use for the query:
```xml
```
You can add a [header](/tags/header.html) to provide instructions to the annotator:
```xml
```
Use styling in the [View](/tags/view.html) tag to wrap multiple [Image](/tags/image.html) object tags to display multiple images in a grid:
```xml
```
Use the [Choices](/tags/choices.html) control tag to display choices that apply to the original image, require a response, and allow annotators to select multiple choices:
```xml
```
Use the [Style](/tags/style.html) tag to apply additional CSS styles to the div form classes used on the labeling interface to further enhance the grid:
```xml
```
The `[dataneedsupdate]` option associates the styling with the object tags used in the labeling configuration.
## Related tags
- [Image](/tags/image.html)
- [Header](/tags/header.html)
- [View](/tags/view.html)
- [Choices](/tags/choices.html)
- [Style](/tags/style.html)