AI search
Overview
Searches images that are already indexed and collects the matches into a dataset.
There are two modes. AI Search ranks images by how well they match a text prompt you write, for example a red car at night. Diverse takes no prompt and spreads the selection across a dataset instead, by one of three methods. Point Already labeled at the images you have labeled so far, and Diverse skips them and favours what they do not cover yet, which is how it picks the next batch for labeling.
Every rerun writes a new version of the node’s own hidden dataset, LAST_RUN, holding that run’s matches, and the badge on the node shows how many images were selected and opens it. Pick a destination dataset when you want the matches to stay somewhere permanent.
Prerequisites
How it works
Resolves which embeddings to search, using the model you picked or, on Auto, the first indexed model that covers the images in scope.
Selects the matches: AI Search ranks images against your prompt and keeps those clearing the confidence threshold, while Diverse first leaves out the already labeled images and then spreads the selection over the rest with the chosen method. When no image is left, Diverse stops the flow instead of failing.
FAQ
Do I have to pick a source dataset?
Only for Diverse and for object search, which both refuse to run without one. AI Search over whole images works without a source dataset and then searches every indexed image in the workspace.
What does object search return?
The images the matching objects sit in, not the objects themselves. An image that holds several matching objects is still returned once.
Which embedding model should I choose?
Leave Auto unless you indexed the same images several times and want a specific one searched. Auto prefers PE-Core, then SigLIP 2, then CLIP, and settles on the first of them that actually covers the images in scope. Choosing a model the images were never indexed with stops the run.
Which Diverse method should I choose?
It depends mostly on how many images you select. k-means representatives groups the images and takes the most typical one of each group. It is the best choice for small batches, a few dozen images, and the default. D-optimal design picks the images that together span the most of the dataset’s main directions of variation and pulls ahead from about a hundred images. Farthest point keeps adding the image least like everything picked so far. It reaches unusual images and edge cases first, which also makes it the most sensitive to junk such as blurred or broken images, so it pays to filter those out first. On a PCB dataset of about a thousand images, the gap between the methods and a random pick was a few percentage points of explained variance at most, so the main gain comes from Already labeled.
What does Already labeled change?
Its images are never selected again. k-means representatives takes the groups none of them sits in before the rest, Farthest point measures every image against them as if they had been picked already, and D-optimal design counts the directions they span as covered. The images do not need to be in the source dataset, but they need to be indexed with the same embedding model. Unindexed ones are left out of the comparison.
What happens when Diverse asks for more images than the dataset holds?
Every image comes back, because there is nothing left to spread the selection over.
Why does a run stop with an error?
The usual reasons are an empty text prompt in AI Search, or no embeddings covering the images you asked for. Index the dataset first and the search finds it. An empty source dataset in Diverse, or one whose images are all already labeled, is not an error: the node selects nothing and stops the flow.
Does this node change the source dataset?
No. Images and their annotations are added to the new datasets and the source dataset stays as it was.
Inputs
Source dataset the search runs over. Leave empty to search every indexed image in the workspace, which only AI Search over images can do. Key: DATASET.
Destination dataset the matches are added to. Leave empty to keep them only in the node’s own Last run dataset. Key: DST_DATASET.
AI Search ranks indexed images by how closely they match your text prompt. Diverse instead spreads the selection across the dataset, by the method chosen below. Key: SEARCH_MODE.
Options:
- AI Search (
ai_search) - Diverse (
diverse)
How Diverse spreads the selection. k-means representatives takes the most typical image of each group of similar ones and suits small batches. Farthest point keeps adding the image least like everything picked so far, so it reaches unusual images first. D-optimal design picks the images that together span the most of the dataset’s main directions of variation, and pays off from about a hundred images. Visible when SEARCH_MODE is diverse. Key: DIVERSE_METHOD.
Options:
- k-means representatives (
kmeans) - Farthest point (
farthest_point) - D-optimal design (
d_optimal)
Whole images matched against your prompt, or the individual annotated objects inside them. Object search returns the images those objects sit in and needs a source dataset. Visible when SEARCH_MODE is ai_search. Key: ENTITY_MODE.
Options:
- Images only (
images) - Objects only (
objects)
What you are looking for, in plain words, for example a red car at night. AI Search fails when it is empty. Visible when SEARCH_MODE is ai_search. Key: TEXT_PROMPT.
Lowest match score an image needs to be returned. Raise it for fewer but closer matches. Minimum: 0. Maximum: 1. Step: 0.01. Visible when SEARCH_MODE is ai_search. Key: CONFIDENCE_THRESHOLD.
Most images AI Search returns. Fewer come back when not enough of them clear the confidence threshold. Minimum: 1. Maximum: 10000. Step: 1. Visible when SEARCH_MODE is ai_search. Key: TOP_K.
Number of images Diverse selects. Fewer come back when the source dataset holds fewer images that are not already labeled. Minimum: 1. Step: 1. Visible when SEARCH_MODE is diverse. Key: DIVERSE_TOP_K.
Images that are already labeled, usually the labeling pool. They are never selected, and Diverse favours what they do not cover yet. Leave empty to spread the selection across the source dataset alone. Visible when SEARCH_MODE is diverse. Key: REFERENCE_DATASET.
Model whose embeddings are searched, which has to be one the images were already indexed with. Auto uses whichever indexed model covers them, preferring PE-Core, then SigLIP 2, then CLIP. Key: EMBEDDING_MODEL.
Options:
- Auto (
auto) - CLIP (
clip) - PE-Core (
pecore) - SigLIP 2 (
siglip2)
Outputs
Key: DATASET.
Hidden dataset containing matches from this run. A rerun writes a new version of it. Shown as an artifact. Key: LAST_RUN.
Number of image assets attached to the new dataset. Shown on the node as a badge. Selecting the badge opens LAST_RUN. Key: SELECTED_IMAGES.
JSON config
Machine-readable node interface for automation and advanced usage.