> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/data/embeddings-similarity-and-outliers.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Similarity search and outliers

Use the Embedding view to find similar images, duplicates, rare cases and outliers in your data.

The **Embedding** view places visually similar files close together on a map. Use it to find duplicates, rare cases and broken files much faster than scrolling through thumbnails. It works for image and video data.

![Find Similar results for a selected image](https://storage.ghost.io/c/48/f4/48f4b614-5c29-430d-9cb3-e0b3f34395f3/content/images/2026/08/clean-find-similar-results.webp)

## What you can find

| Goal                 | How                                                                            |
| -------------------- | ------------------------------------------------------------------------------ |
| **Similar images**   | Pick an image and search for its nearest neighbors.                            |
| **Search by text**   | Type a description, such as *red truck at night*.                              |
| **Duplicates**       | Look for dense clusters of nearly identical files.                             |
| **Outliers**         | Look for isolated points: rare cases, errors or files from a different source. |
| **A diverse sample** | Pick a few files from each cluster instead of many from one.                   |

## Explore the map

1. Open **Assets** or a folder, and switch to **Embedding** view.
2. Look at the whole map first to see the overall shape of your data.
3. Drag to select a region. Its thumbnails appear next to the map.
4. Open a few files to check what the cluster really contains.
5. Select the files you want, then tag them, add them to a Collection or create a dataset.

{% hint style="info" %}
Two points close on the map are visually similar, but not always the same thing. Always open a few files before you remove or label a whole cluster.
{% endhint %}

## Decide what to do with results

| Result                        | Typical action                                                                      |
| ----------------------------- | ----------------------------------------------------------------------------------- |
| **Duplicates**                | Keep one, or keep them on purpose and note why.                                     |
| **Outliers**                  | Check each one: corrupted file, rare but valid case, or data from the wrong source. |
| **Under-represented cluster** | Add more of these files to your dataset.                                            |

## Use your own embeddings

With the Python SDK you can create your own embedding space, upload vectors for files or video frames, and search by vector. This lets you use your own model in the Unitlab interface. See the [SDK documentation](https://docs.unitlab.ai/api-sdk-cli).

## Related

[Curate and filter data](https://docs.unitlab.ai/documentation/data/data-curation.md) · [Project data QA](https://docs.unitlab.ai/documentation/projects/project-data-qa.md) · [Find Similar](https://docs.unitlab.ai/documentation/auto-labeling/find-similar.md)
